diff options
Diffstat (limited to 'kdpkg-install/install.cpp')
-rw-r--r-- | kdpkg-install/install.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kdpkg-install/install.cpp b/kdpkg-install/install.cpp index 3c78386..043342b 100644 --- a/kdpkg-install/install.cpp +++ b/kdpkg-install/install.cpp @@ -17,7 +17,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#else +#define PREFIX "/usr" +#endif #include <kgenericfactory.h> #include <tdelocale.h> @@ -70,7 +74,7 @@ install::install( const TQString &url, TQWidget *parent, const char *name, const if ((pipe_prefix = popen(prefixcommand.c_str(), "r")) == NULL) { - m_kdePrefix = "/usr"; + m_kdePrefix = PREFIX; } else { fgets(prefix_result, 2048, pipe_prefix); |