]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/pathnames.h
Get the plugins from the right directory when DESTDIR isn't /usr.
[ppp.git] / pppd / pathnames.h
index 555f40f33d41937e2b16eaf50384a819320d966b..f070b43617087f0f1a3ee272c8f9ec2d8917b262 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * define path names
  *
- * $Id: pathnames.h,v 1.16 2004/11/13 12:02:22 paulus Exp $
+ * $Id: pathnames.h,v 1.17 2005/07/10 11:19:10 paulus Exp $
  */
 
 #ifdef HAVE_PATHS_H
 #endif /* __STDC__ */
 
 #ifdef PLUGIN
-#define _PATH_PLUGIN   "/usr/lib/pppd/" VERSION
+#ifdef __STDC__
+#define _PATH_PLUGIN   DESTDIR "/lib/pppd/" VERSION
+#else /* __STDC__ */
+#define _PATH_PLUGIN   "/usr/lib/pppd"
+#endif /* __STDC__ */
+
 #endif /* PLUGIN */