summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-01-10 16:51:52 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-01-17 11:38:16 -0500
commit98ce3c3e85a4bb2e1822bf8ab2a1c2ab9e3dd61d (patch)
treed17e98c3a72723608257db1aa2b537d268be3e8a /src/conf_macros.m4
parenteb54e05c9658a7274e3238813c54dd0c6577d3ec (diff)
downloadsssd-98ce3c3e85a4bb2e1822bf8ab2a1c2ab9e3dd61d.tar.gz
sssd-98ce3c3e85a4bb2e1822bf8ab2a1c2ab9e3dd61d.tar.xz
sssd-98ce3c3e85a4bb2e1822bf8ab2a1c2ab9e3dd61d.zip
Add a configure switch to specify 3rd party app libraries location
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m419
1 files changed, 18 insertions, 1 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index fc5dec674..537b9857a 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -383,4 +383,21 @@ AC_DEFUN([WITH_UNICODE_LIB],
AM_CONDITIONAL([WITH_LIBUNISTRING], test x"$unicode_lib" = x"libunistring")
AM_CONDITIONAL([WITH_GLIB], test x"$unicode_lib" = x"glib2")
- ]) \ No newline at end of file
+ ])
+
+AC_DEFUN([WITH_APP_LIBS],
+ [ AC_ARG_WITH([app-libs],
+ [AC_HELP_STRING([--with-app-libs=<path>],
+ [Path to the 3rd party application plugins [/usr/lib/sssd/modules]]
+ )
+ ]
+ )
+ appmodpath="${libdir}/sssd/modules"
+ config_appmodpath="\"LIBDIR\"/sssd/modules"
+ if test x"$with_app_libs" != x; then
+ appmodpath=$with_app_libs
+ config_appmodpath=$with_app_libs
+ fi
+ AC_SUBST(appmodpath)
+ AC_DEFINE_UNQUOTED(APP_MODULES_PATH, "$config_appmodpath", [Path to the 3rd party modules])
+ ])