libnfsidmap: Added new --with-pluginpath configuration flag
Subsystems (2)
PATCH 1/1 libnfsidmap: Added new --with-pluginpath configuration flag
Added new configuration flage so the plugin path
can be redefined when the library is built.
Signed-off-by Steve Dickson <[email protected]>
--- configure.in | 13 +++++++++++++ libnfsidmap.c | 2 ++ 2 files changed, 15 insertions(+), 0 deletions(-)
configure.in +13 -0
@@ -36,7 +36,20 @@ if test "x$enable_gums" = "xyes" ; then fi AM_CONDITIONAL(ENABLE_GUMS, test "x$enable_gums" = "xyes") +#Where do the Plugins live +AC_ARG_WITH(pluginpath, + [AS_HELP_STRING([--with-pluginpath=/foo],[Causes the library to look in /foo instead of /usr/lib/libnfsidmap for plugins + ])], + path_plugins=$withval, + path_plugins="" + ) +if test -n "$path_plugins" ; then + AC_DEFINE_UNQUOTED(PATH_PLUGINS, "$path_plugins", + [Define this to change the plugins path]) +fi +AM_CONDITIONAL(PATH_PLUGINS, test -n "$path_plugins") +AC_CONFIG_HEADERS([./config.h]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h unistd.h errno.h])
libnfsidmap.c +2 -0
@@ -36,6 +36,8 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" +#include <sys/types.h> #include <errno.h> #include <unistd.h>
Signature · 1 line
1.7.3.3
Quoted 4 lines · Steve Dickson
Added new configuration flage so the plugin path
can be redefined when the library is built.Signed-off-by Steve Dickson <[email protected]>
Committed....
steved.
Quoted 43 lines
--- configure.in | 13 +++++++++++++ libnfsidmap.c | 2 ++ 2 files changed, 15 insertions(+), 0 deletions(-)configure.in +13
-0@@ -36,7 +36,20 @@ if test "x$enable_gums" = "xyes" ; then fi AM_CONDITIONAL(ENABLE_GUMS, test "x$enable_gums" = "xyes") +#Where do the Plugins live +AC_ARG_WITH(pluginpath, + [AS_HELP_STRING([--with-pluginpath=/foo],[Causes the library to look in /foo instead of /usr/lib/libnfsidmap for plugins + ])], + path_plugins=$withval, + path_plugins="" + ) +if test -n "$path_plugins" ; then + AC_DEFINE_UNQUOTED(PATH_PLUGINS, "$path_plugins", + [Define this to change the plugins path]) +fi +AM_CONDITIONAL(PATH_PLUGINS, test -n "$path_plugins") +AC_CONFIG_HEADERS([./config.h]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h unistd.h errno.h])libnfsidmap.c +2
-0@@ -36,6 +36,8 @@* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include "config.h" +#include <sys/types.h> #include <errno.h> #include <unistd.h>