diff --git a/configure b/configure
index 360bc9c..b3781a0 100755
--- a/configure
+++ b/configure
@@ -5118,7 +5118,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libcurl version is recent enough" >&5
 $as_echo_n "checking if libcurl version is recent enough... " >&6; }
-CURL_VERSION=`$curlpath/curl-config --checkfor 7.21.7`
+CURL_VERSION=`curl-config --checkfor 7.21.7`
 if test "${CURL_VERSION}" != "" ; then
     echo ${CURL_VERSION}
     as_fn_error $? "libcurl version too old, please upgrade" "$LINENO" 5
@@ -5130,7 +5130,7 @@ $as_echo "yes" >&6; }
 # See: http://lists.debian.org/debian-devel-announce/2006/09/msg00018.html
 
 
-    vars="`$curlpath/curl-config --libs|sed \
+    vars="`curl-config --libs|sed \
     -e 's/\-lkrb5\>//g' \
     -e 's/\-lgssapi_krb5//g' \
     -e 's/\-lk5crypto//g' \
diff --git a/configure.in b/configure.in
index 951d9b6..8d759d0 100755
--- a/configure.in
+++ b/configure.in
@@ -127,7 +127,7 @@ AC_ARG_WITH(libcurl,
  ])
 
 AC_MSG_CHECKING([if libcurl version is recent enough])
-CURL_VERSION=`$curlpath/curl-config --checkfor 7.21.7`
+CURL_VERSION=`curl-config --checkfor 7.21.7`
 if test "${CURL_VERSION}" != "" ; then
     echo ${CURL_VERSION}
     AC_MSG_ERROR([libcurl version too old, please upgrade])
@@ -137,7 +137,7 @@ AC_MSG_RESULT(yes)
 # We need to modify this original line to strip a few things
 # See: http://lists.debian.org/debian-devel-announce/2006/09/msg00018.html
 
-TEA_ADD_LIBS([`$curlpath/curl-config --libs|sed \
+TEA_ADD_LIBS([`curl-config --libs|sed \
     -e 's/\-lkrb5\>//g' \
     -e 's/\-lgssapi_krb5//g' \
     -e 's/\-lk5crypto//g' \