--- a/src/hugin1/hugin/AutoCtrlPointCreator.cpp
+++ b/src/hugin1/hugin/AutoCtrlPointCreator.cpp
@@ -167,7 +167,7 @@
             return cps;
         }
     }
-#elif (defined __WXMAC__)
+#elif (defined __WXMAC__) && defined HUGIN_OSX_BUNDLED
     wxString autopanoExe = wxConfigBase::Get()->Read(wxT("/AutoPanoSift/AutopanoExe"), wxT(HUGIN_APSIFT_EXE));
     
     //if the autopano-sift front end specified in preference does not exist: