Make sure that gearman, is libtool'ized correctly.
[m6w6/libmemcached] / libtest / has.cc
index 52e1d405b26f90a91e6f70c711c61332ba34dea0..10e61cb60d1137d53445dc1eb19e6e0059392570 100644 (file)
@@ -82,7 +82,7 @@ bool has_gearmand()
   {
     std::stringstream arg_buffer;
 
-    if (getenv("PWD"))
+    if (getenv("PWD") and strcmp(MEMCACHED_BINARY, "gearmand/gearmand") == 0)
     {
       arg_buffer << getenv("PWD");
       arg_buffer << "/";