conf_macros.m4 revision 2b490bc947dbe0094417304840bd721417a162d9
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantzAC_DEFUN([WITH_DB_PATH],
08cb74ca432a8c24e39f17dedce527e6a47b8001jerenkrantz [ AC_ARG_WITH([db-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-db-path=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Path to the SSSD databases [/var/lib/sss/db]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_dbpath="\"SSS_STATEDIR\"/db"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes dbpath="${localstatedir}/lib/sss/db"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_db_path" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_dbpath=$with_db_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes dbpath=$with_db_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(dbpath)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(DB_PATH, "$config_dbpath", [Path to the SSSD databases])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_PLUGIN_PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([plugin-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-plugin-path=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Path to the SSSD data provider plugins [/usr/lib/sssd]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes pluginpath="${libdir}/sssd"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_pluginpath="\"LIBDIR\"/sssd"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_plugin_path" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes pluginpath=$with_plugin_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_pluginpath=$with_plugin_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(pluginpath)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(DATA_PROVIDER_PLUGINS_PATH, "$config_pluginpath", [Path to the SSSD data provider plugins])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
5c0419d51818eb02045cf923a9fe456127a44c60wrowe
5c0419d51818eb02045cf923a9fe456127a44c60wroweAC_DEFUN([WITH_PID_PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([pid-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-pid-path=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Where to store pid files for the SSSD [/var/run]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton config_pidpath="\"VARDIR\"/run"
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton pidpath="${localstatedir}/run"
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton if test x"$with_pid_path" != x; then
d266c3777146d36a4c23c17aad6f153aebea1bf4jorton config_pidpath=$with_pid_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes pidpath=$with_pid_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(pidpath)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(PID_PATH, "$config_pidpath", [Where to store pid files for the SSSD])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_LOG_PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([log-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-log-path=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Where to store log files for the SSSD [/var/log/sssd]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
0568280364eb026393be492ebc732795c4934643jorton )
0568280364eb026393be492ebc732795c4934643jorton config_logpath="\"VARDIR\"/log/sssd"
0568280364eb026393be492ebc732795c4934643jorton logpath="${localstatedir}/log/sssd"
0568280364eb026393be492ebc732795c4934643jorton if test x"$with_log_path" != x; then
0568280364eb026393be492ebc732795c4934643jorton config_logpath=$with_log_path
0568280364eb026393be492ebc732795c4934643jorton logpath=$with_log_path
0568280364eb026393be492ebc732795c4934643jorton fi
0568280364eb026393be492ebc732795c4934643jorton AC_SUBST(logpath)
0568280364eb026393be492ebc732795c4934643jorton AC_DEFINE_UNQUOTED(LOG_PATH, "$config_logpath", [Where to store log files for the SSSD])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_PUBCONF_PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([pubconf-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-pubconf-path=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Where to store pubconf files for the SSSD [/var/lib/sss/pubconf]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
796e4a7141265d8ed7036e4628161c6eafb2a789jorton config_pubconfpath="\"SSS_STATEDIR\"/pubconf"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes pubconfpath="${localstatedir}/lib/sss/pubconf"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_pubconf_path" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_pubconfpath=$with_pubconf_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes pubconfpath=$with_pubconf_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(pubconfpath)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(PUBCONF_PATH, "$config_pubconfpath", [Where to store pubconf files for the SSSD])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_PIPE_PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([pipe-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-pipe-path=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Where to store pipe files for the SSSD interconnects [/var/lib/sss/pipes]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_pipepath="\"SSS_STATEDIR\"/pipes"
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe pipepath="${localstatedir}/lib/sss/pipes"
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe if test x"$with_pipe_path" != x; then
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe config_pipepath=$with_pipe_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes pipepath=$with_pipe_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(pipepath)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(PIPE_PATH, "$config_pipepath", [Where to store pipe files for the SSSD interconnects])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_MCACHE_PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([mcache-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-mcache-path=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Where to store mmap cache files for the SSSD interconnects [/var/lib/sss/mc]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_mcpath="\"SSS_STATEDIR\"/mc"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes mcpath="${localstatedir}/lib/sss/mc"
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe if test x"$with_mcache_path" != x; then
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe config_mcpath=$with_mcache_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes mcpath=$with_mcache_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(mcpath)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(MCACHE_PATH, "$config_mcpath", [Where to store mmap cache files for the SSSD interconnects])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_INITSCRIPT],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([initscript],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-initscript=INITSCRIPT_TYPE],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Type of your init script (sysv|systemd). [sysv]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes default_initscript=sysv
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe if test x"$with_initscript" = x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes with_initscript=$default_initscript
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_initscript" = xsysv || \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes test x"$with_initscript" = xsystemd; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes initscript=$with_initscript
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes else
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_ERROR([Illegal value -$with_initscript- for option --with-initscript])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([HAVE_SYSV], [test x"$initscript" = xsysv])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([HAVE_SYSTEMD_UNIT], [test x"$initscript" = xsystemd])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_NOTICE([Will use init script type: $initscript])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_SYSLOG],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([syslog],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-syslog=SYSLOG_TYPE],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Type of your system logger (syslog|journald). [syslog]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_syslog="syslog"]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_syslog" = xsyslog || \
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe test x"$with_syslog" = xjournald; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes syslog=$with_syslog
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes else
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_ERROR([Uknown syslog type, supported types are syslog and journald])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([WITH_JOURNALD], [test x"$syslog" = xjournald])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_ENVIRONMENT_FILE],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([environment_file],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-environment-file=PATH], [Path to environment file [/etc/sysconfig/sssd]])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ENVIRONMENT_FILE_PATH="${sysconfdir}/sysconfig/sssd"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_environment_file" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ENVIRONMENT_FILE_PATH=$with_environment_file
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(environment_file, [$ENVIRONMENT_FILE_PATH])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_INIT_DIR],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([init-dir],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-init-dir=DIR],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Where to store init script for sssd [/etc/rc.d/init.d]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes initdir="${sysconfdir}/rc.d/init.d"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x$osname == xgentoo; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes initdir="${sysconfdir}/init.d"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_init_dir" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes initdir=$with_init_dir
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(initdir)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholesdnl A macro to configure the directory to install the systemd unit files to
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_SYSTEMD_UNIT_DIR],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([systemdunitdir],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_HELP_STRING([--with-systemdunitdir=DIR],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Directory for systemd service files [Auto]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ),
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_systemdunitdir" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes systemdunitdir=$with_systemdunitdir
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes else
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes systemdunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$systemdunitdir" = x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_ERROR([Could not detect systemd unit directory])
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe fi
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(systemdunitdir)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesdnl A macro to configure the directory to install the systemd unit file
54d22ed1c429b903b029bbd62621f11a9e286137minfrindnl overrides to
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholesAC_DEFUN([WITH_SYSTEMD_CONF_DIR],
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes [ AC_ARG_WITH([systemdconfdir],
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes [ AC_HELP_STRING([--with-systemdconfdir=DIR],
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes [Directory for systemd service file overrides [Auto]]
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ),
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin )
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if test x"$with_systemdconfdir" != x; then
54d22ed1c429b903b029bbd62621f11a9e286137minfrin systemdconfdir=$with_systemdconfdir
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes else
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes systemdconfdir=$($PKG_CONFIG --variable=systemdsystemconfdir systemd)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$systemdconfdir" = x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_ERROR([Could not detect systemd config directory])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(systemdconfdir, [$systemdconfdir/sssd.service.d])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_MANPAGES],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([manpages],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-manpages],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to regenerate man pages from DocBook sources [yes]]
54d22ed1c429b903b029bbd62621f11a9e286137minfrin )
81965264d92dd8c9ca21d058420f6f6da34b3032minfrin ],
81965264d92dd8c9ca21d058420f6f6da34b3032minfrin [],
81965264d92dd8c9ca21d058420f6f6da34b3032minfrin with_manpages=yes
81965264d92dd8c9ca21d058420f6f6da34b3032minfrin )
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if test x"$with_manpages" = xyes; then
54d22ed1c429b903b029bbd62621f11a9e286137minfrin HAVE_MANPAGES=1
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AC_SUBST(HAVE_MANPAGES)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin fi
81965264d92dd8c9ca21d058420f6f6da34b3032minfrin ])
54d22ed1c429b903b029bbd62621f11a9e286137minfrinAM_CONDITIONAL([BUILD_MANPAGES], [test x$with_manpages = xyes])
e18ba90a1e610b43062e90cfa8bf0c1edcad7a49bnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_XML_CATALOG],
560fd0658902ab57754616c172d8953e69fc4722bnicholes [ AC_ARG_WITH([xml-catalog-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-xml-catalog-path=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Where to look for XML catalog [/etc/xml/catalog]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes SGML_CATALOG_FILES="/etc/xml/catalog"
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if test x"$with_xml_catalog_path" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes SGML_CATALOG_FILES="$with_xml_catalog_path"
54d22ed1c429b903b029bbd62621f11a9e286137minfrin fi
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AC_SUBST([SGML_CATALOG_FILES])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrinAC_DEFUN([WITH_KRB5_PLUGIN_PATH],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [ AC_ARG_WITH([krb5-plugin-path],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [AC_HELP_STRING([--with-krb5-plugin-path=PATH],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [Path to kerberos plugin store [/usr/lib/krb5/plugins/libkrb5]]
54d22ed1c429b903b029bbd62621f11a9e286137minfrin )
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ]
54d22ed1c429b903b029bbd62621f11a9e286137minfrin )
54d22ed1c429b903b029bbd62621f11a9e286137minfrin krb5pluginpath="${libdir}/krb5/plugins/libkrb5"
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if test x"$with_krb5_plugin_path" != x; then
54d22ed1c429b903b029bbd62621f11a9e286137minfrin krb5pluginpath=$with_krb5_plugin_path
54d22ed1c429b903b029bbd62621f11a9e286137minfrin fi
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AC_SUBST(krb5pluginpath)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrinAC_DEFUN([WITH_CIFS_PLUGIN_PATH],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [ AC_ARG_WITH([cifs-plugin-path],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [AC_HELP_STRING([--with-cifs-plugin-path=PATH],
81965264d92dd8c9ca21d058420f6f6da34b3032minfrin [Path to cifs-utils plugin store [/usr/lib/cifs-utils]]
e1cc1ac970d0aa2910027f1f20445a16207a6deeminfrin )
e1cc1ac970d0aa2910027f1f20445a16207a6deeminfrin ]
e1cc1ac970d0aa2910027f1f20445a16207a6deeminfrin )
e1cc1ac970d0aa2910027f1f20445a16207a6deeminfrin cifspluginpath="${libdir}/cifs-utils"
e1cc1ac970d0aa2910027f1f20445a16207a6deeminfrin if test x"$with_cifs_plugin_path" != x; then
e1cc1ac970d0aa2910027f1f20445a16207a6deeminfrin cifspluginpath=$with_cifs_plugin_path
e1cc1ac970d0aa2910027f1f20445a16207a6deeminfrin fi
e1cc1ac970d0aa2910027f1f20445a16207a6deeminfrin AC_SUBST(cifspluginpath)
e1cc1ac970d0aa2910027f1f20445a16207a6deeminfrin ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_KRB5_RCACHE_DIR],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([krb5-rcache-dir],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-krb5-rcache-dir=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Path to store Kerberos replay caches [__LIBKRB5_DEFAULTS__]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
7add8f7fb048534390571801b7794f71cd9e127abnicholes krb5rcachedir="__LIBKRB5_DEFAULTS__"
7add8f7fb048534390571801b7794f71cd9e127abnicholes if test x"$with_krb5_rcache_dir" != x; then
141e1368614dc7564e1627671361b01b4869b491bnicholes krb5rcachedir=$with_krb5_rcache_dir
141e1368614dc7564e1627671361b01b4869b491bnicholes fi
7add8f7fb048534390571801b7794f71cd9e127abnicholes AC_SUBST(krb5rcachedir)
7add8f7fb048534390571801b7794f71cd9e127abnicholes AC_DEFINE_UNQUOTED(KRB5_RCACHE_DIR, "$krb5rcachedir", [Directory used for storing Kerberos replay caches])
7add8f7fb048534390571801b7794f71cd9e127abnicholes ])
7add8f7fb048534390571801b7794f71cd9e127abnicholes
7add8f7fb048534390571801b7794f71cd9e127abnicholesAC_DEFUN([WITH_DEFAULT_CCACHE_DIR],
7add8f7fb048534390571801b7794f71cd9e127abnicholes [ AC_ARG_WITH([default-ccache-dir],
7add8f7fb048534390571801b7794f71cd9e127abnicholes [AC_HELP_STRING([--with-default-ccache-dir=CCACHEDIR],
7add8f7fb048534390571801b7794f71cd9e127abnicholes [The default value of krb5_ccachedir [/tmp]]
7add8f7fb048534390571801b7794f71cd9e127abnicholes )
7add8f7fb048534390571801b7794f71cd9e127abnicholes ]
7add8f7fb048534390571801b7794f71cd9e127abnicholes )
7add8f7fb048534390571801b7794f71cd9e127abnicholes config_def_ccache_dir="/tmp"
7add8f7fb048534390571801b7794f71cd9e127abnicholes if test x"$with_default_ccache_dir" != x; then
7add8f7fb048534390571801b7794f71cd9e127abnicholes config_def_ccache_dir=$with_default_ccache_dir
7add8f7fb048534390571801b7794f71cd9e127abnicholes fi
7add8f7fb048534390571801b7794f71cd9e127abnicholes AC_SUBST(config_def_ccache_dir)
7add8f7fb048534390571801b7794f71cd9e127abnicholes AC_DEFINE_UNQUOTED(DEFAULT_CCACHE_DIR, "$config_def_ccache_dir", [The default value of krb5_ccachedir])
7add8f7fb048534390571801b7794f71cd9e127abnicholes ])
7add8f7fb048534390571801b7794f71cd9e127abnicholes
7add8f7fb048534390571801b7794f71cd9e127abnicholesAC_DEFUN([WITH_DEFAULT_CCNAME_TEMPLATE],
7add8f7fb048534390571801b7794f71cd9e127abnicholes [ AC_ARG_WITH([default-ccname-template],
141e1368614dc7564e1627671361b01b4869b491bnicholes [AC_HELP_STRING([--with-default-ccname-template=CCACHE],
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes [The default fallback value of krb5_ccname_template [FILE:%d/krb5cc_%U_XXXXXX]]
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes )
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes ]
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes )
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes config_def_ccname_template="FILE:%d/krb5cc_%U_XXXXXX"
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes if test x"$with_default_ccname_template" != x; then
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes config_def_ccname_template=$with_default_ccname_template
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes fi
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes AC_SUBST(config_def_ccname_template)
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes AC_DEFINE_UNQUOTED(DEFAULT_CCNAME_TEMPLATE, "$config_def_ccname_template", [The default value of krb5_ccname_template])
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes ])
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholesAC_DEFUN([WITH_KRB5AUTHDATA_PLUGIN_PATH],
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes [ AC_ARG_WITH([krb5authdata-plugin-path],
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes [AC_HELP_STRING([--with-krb5authdata-plugin-path=PATH],
3dfeb02cfb853d8717ca0cc259b59fea610173f5bnicholes [Path to kerberos authdata plugin store [/usr/lib/krb5/plugins/authdata]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes krb5authdatapluginpath="${libdir}/krb5/plugins/authdata"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_krb5authdata_plugin_path" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes krb5authdatapluginpath=$with_krb5authdata_plugin_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(krb5authdatapluginpath)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_KRB5_CONF],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([krb5_conf],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-krb5-conf=PATH], [Path to krb5.conf file [/etc/krb5.conf]])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ]
54d22ed1c429b903b029bbd62621f11a9e286137minfrin )
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrin KRB5_CONF_PATH="\"SYSCONFDIR\"/krb5.conf"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_krb5_conf" != x; then
54d22ed1c429b903b029bbd62621f11a9e286137minfrin KRB5_CONF_PATH=$with_krb5_conf
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED([KRB5_CONF_PATH], ["$KRB5_CONF_PATH"], [KRB5 configuration file])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
54d22ed1c429b903b029bbd62621f11a9e286137minfrinAC_DEFUN([WITH_PYTHON2_BINDINGS],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([python2-bindings],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-python2-bindings],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to build python2 bindings [yes]])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_python2_bindings=yes]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_python2_bindings" = xyes; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST([HAVE_PYTHON2_BINDINGS], [1])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED([HAVE_PYTHON2_BINDINGS], [1],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Build with python2 bindings])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin fi
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AM_CONDITIONAL([BUILD_PYTHON2_BINDINGS],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [test x"$with_python2_bindings" = xyes])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrinAC_DEFUN([WITH_PYTHON3_BINDINGS],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [ AC_ARG_WITH([python3-bindings],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [AC_HELP_STRING([--with-python3-bindings],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [Whether to build python3 bindings [yes]])
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe ],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [],
8a03cd420b800a2428f49f4617293de9b2387b20jorton [with_python3_bindings=yes]
54d22ed1c429b903b029bbd62621f11a9e286137minfrin )
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if test x"$with_python3_bindings" = xyes; then
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AC_SUBST([HAVE_PYTHON3_BINDINGS], [1])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AC_DEFINE_UNQUOTED([HAVE_PYTHON3_BINDINGS], [1],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [Build with python3 bindings])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin fi
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AM_CONDITIONAL([BUILD_PYTHON3_BINDINGS],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [test x"$with_python3_bindings" = xyes])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrinAC_DEFUN([WITH_SELINUX],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [ AC_ARG_WITH([selinux],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [AC_HELP_STRING([--with-selinux],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [Whether to build with SELinux support [yes]]
54d22ed1c429b903b029bbd62621f11a9e286137minfrin )
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ],
54d22ed1c429b903b029bbd62621f11a9e286137minfrin [],
edc346c3223efd41e6a2057c37cea69744b73dccwrowe with_selinux=yes
edc346c3223efd41e6a2057c37cea69744b73dccwrowe )
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if test x"$with_selinux" = xyes; then
54d22ed1c429b903b029bbd62621f11a9e286137minfrin HAVE_SELINUX=1
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AC_SUBST(HAVE_SELINUX)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AC_DEFINE_UNQUOTED(HAVE_SELINUX, 1, [Build with SELinux support])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin fi
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AM_CONDITIONAL([BUILD_SELINUX], [test x"$with_selinux" = xyes])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_TEST_DIR],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([test-dir],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-test-dir=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Directory used for make check temporary files [$builddir]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [TEST_DIR=$withval],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [TEST_DIR="."]
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe )
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe AC_SUBST(TEST_DIR)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(TEST_DIR, "$TEST_DIR", [Directory used for 'make check' temporary files])
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe ])
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe
8113dac419143273351446c3ad653f3fe5ba5cfdwroweAC_DEFUN([WITH_IPA_GETKEYTAB],
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe [ AC_ARG_WITH([ipa_getkeytab],
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe [AC_HELP_STRING([--with-ipa-getkeytab=PATH],
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe [Path to ipa_getkeytab binary to retrieve keytabs from FreeIPA server [/usr/sbin/ipa-getkeytab]]
54d22ed1c429b903b029bbd62621f11a9e286137minfrin )
560fd0658902ab57754616c172d8953e69fc4722bnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes IPA_GETKEYTAB_PATH="/usr/sbin/ipa-getkeytab"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_ipa_getkeytab" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes IPA_GETKEYTAB_PATH=$with_ipa_getkeytab
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(IPA_GETKEYTAB_PATH, "$IPA_GETKEYTAB_PATH", [The path to the ipa-getkeytab utility])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_NSCD],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [ AC_ARG_WITH([nscd],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [AC_HELP_STRING([--with-nscd=PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Path to nscd binary to attempt to flush nscd cache after local domain operations [/usr/sbin/nscd]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
560fd0658902ab57754616c172d8953e69fc4722bnicholes NSCD_PATH="/usr/sbin/nscd"
560fd0658902ab57754616c172d8953e69fc4722bnicholes if test x"$with_nscd" != x; then
560fd0658902ab57754616c172d8953e69fc4722bnicholes NSCD_PATH=$with_nscd
560fd0658902ab57754616c172d8953e69fc4722bnicholes AC_SUBST(NSCD_PATH)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(HAVE_NSCD, $NSCD_PATH, [flush nscd cache after local domain operations])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_NSCD_CONF],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([nscd_conf],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-nscd-conf=PATH], [Path to nscd.conf file [/etc/nscd.conf]])
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe ]
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe )
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe NSCD_CONF_PATH="/etc/nscd.conf"
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe if test x"$with_nscd_conf" != x; then
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe NSCD_CONF_PATH=$with_nscd_conf
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe fi
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe AC_DEFINE_UNQUOTED([NSCD_CONF_PATH], ["$NSCD_CONF_PATH"], [NSCD configuration file])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_SEMANAGE],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([semanage],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-semanage],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to build with SELinux user management support [yes]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes with_semanage=yes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_semanage" = xyes; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes HAVE_SEMANAGE=1
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(HAVE_SEMANAGE)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(HAVE_SEMANAGE, 1, [Build with SELinux support])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([BUILD_SEMANAGE], [test x"$with_semanage" = xyes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_GPO_CACHE_PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([gpo-cache-path],
560fd0658902ab57754616c172d8953e69fc4722bnicholes [AC_HELP_STRING([--with-gpo-cache-path=PATH],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [Where to store GPO policy files [/var/lib/sss/gpo_cache]]
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_gpocachepath="\"SSS_STATEDIR\"/gpo_cache"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes gpocachepath="${localstatedir}/lib/sss/gpo_cache"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_gpo_cache_path" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_gpocachepath=$with_gpo_cache_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes gpocachepath=$with_gpo_cache_path
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(gpocachepath)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(GPO_CACHE_PATH, "$config_gpocachepath", [Where to store GPO policy files])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_LIBNL],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([libnl],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-libnl],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to build with libnetlink support (libnl3, libnl1, no) [auto]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes with_libnl=yes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_libnl" = xyes; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CHECK_LIBNL3
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$HAVE_LIBNL" != x1; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CHECK_LIBNL1
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$HAVE_LIBNL" != x1; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_WARN([Building without netlink])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes elif test x"$with_libnl" = xlibnl3; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CHECK_LIBNL3
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$HAVE_LIBNL" != x1; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_ERROR([Libnl3 required, but not available])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes elif test x"$with_libnl" = xlibnl1; then
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AM_CHECK_LIBNL1
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrin if test x"$HAVE_LIBNL" != x1; then
54d22ed1c429b903b029bbd62621f11a9e286137minfrin AC_MSG_ERROR([Libnl required, but not available])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin fi
560fd0658902ab57754616c172d8953e69fc4722bnicholes fi
54d22ed1c429b903b029bbd62621f11a9e286137minfrin ])
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrinAC_DEFUN([WITH_CRYPTO],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([crypto],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-crypto=CRYPTO_LIB],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [The cryptographic library to use (nss|libcrypto). The default is nss.]
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes with_crypto=nss
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes cryptolib=""
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_crypto" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_crypto" = xnss || \
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes test x"$with_crypto" = xlibcrypto; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes cryptolib="$with_crypto";
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes else
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_ERROR([Illegal value -$with_crypto- for option --with-crypto])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([HAVE_NSS], [test x"$cryptolib" = xnss])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([HAVE_LIBCRYPTO], [test x"$cryptolib" = xlibcrypto])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_NOLOGIN_SHELL],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [ AC_ARG_WITH([nologin-shell],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [AC_HELP_STRING([--with-nologin-shell=PATH],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [The shell used to deny access to users [/sbin/nologin]]
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe )
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes nologin_shell="/sbin/nologin"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_nologin_shell" != x; then
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe nologin_shell=$with_nologin_shell
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe fi
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe AC_DEFINE_UNQUOTED(NOLOGIN_SHELL, "$nologin_shell", [The shell used to deny access to users])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_ARG_ENABLE([all-experimental-features],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AS_HELP_STRING([--enable-all-experimental-features],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [build all experimental features])],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [build_all_experimental_features=$enableval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [build_all_experimental_features=no])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_UNICODE_LIB],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [ AC_ARG_WITH([unicode-lib],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [AC_HELP_STRING([--with-unicode-lib=<library>],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [Which library to use for unicode processing (libunistring, glib2) [glib2]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes unicode_lib="glib2"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_unicode_lib" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes unicode_lib=$with_unicode_lib
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$unicode_lib" != x"libunistring" -a x"$unicode_lib" != x"glib2"; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_ERROR([Unsupported unicode library])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([WITH_LIBUNISTRING], test x"$unicode_lib" = x"libunistring")
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([WITH_GLIB], test x"$unicode_lib" = x"glib2")
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_APP_LIBS],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([app-libs],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-app-libs=<path>],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Path to the 3rd party application plugins [/usr/lib/sssd/modules]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes appmodpath="${libdir}/sssd/modules"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_appmodpath="\"LIBDIR\"/sssd/modules"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_app_libs" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes appmodpath=$with_app_libs
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes config_appmodpath=$with_app_libs
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(appmodpath)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(APP_MODULES_PATH, "$config_appmodpath", [Path to the 3rd party modules])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_SUDO],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([sudo],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-sudo],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to build with sudo support [yes]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_sudo=$withval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes with_sudo=yes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_sudo" = xyes; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE(BUILD_SUDO, 1, [whether to build with SUDO support])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([BUILD_SUDO], [test x"$with_sudo" = xyes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_SUDO_LIB_PATH],
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholes [ AC_ARG_WITH([sudo-lib-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-sudo-lib-path=<path>],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Path to the sudo library [/usr/lib/]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe sudolibpath="${libdir}"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_sudo_lib_path" != x; then
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe sudolibpath=$with_sudo_lib_path
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe fi
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe AC_SUBST(sudolibpath)
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe ])
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholesAC_DEFUN([WITH_AUTOFS],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([autofs],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-autofs],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to build with autofs support [yes]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_autofs=$withval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes with_autofs=yes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_autofs" = xyes; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE(BUILD_AUTOFS, 1, [whether to build with AUTOFS support])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([BUILD_AUTOFS], [test x"$with_autofs" = xyes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_SSH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([ssh],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-ssh],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to build with SSH support [yes]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_ssh=$withval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes with_ssh=yes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe if test x"$with_ssh" = xyes; then
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe AC_DEFINE(BUILD_SSH, 1, [whether to build with SSH support])
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe fi
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe AM_CONDITIONAL([BUILD_SSH], [test x"$with_ssh" = xyes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_IFP],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([infopipe],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-infopipe],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to build with InfoPipe support [yes]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_infopipe=$withval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes with_infopipe=yes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_infopipe" = xyes; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE(BUILD_IFP, 1, [whether to build with InfoPipe support])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([BUILD_IFP], [test x"$with_infopipe" = xyes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_LIBWBCLIENT],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([libwbclient],
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe [AC_HELP_STRING([--with-libwbclient],
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe [Whether to build SSSD implementation of libwbclient [yes]]
8113dac419143273351446c3ad653f3fe5ba5cfdwrowe )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_libwbclient=$withval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes with_libwbclient=yes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_libwbclient" = xyes; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE(BUILD_LIBWBCLIENT, 1, [whether to build SSSD implementation of libwbclient])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes libwbclient_version="0.12"
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe AC_SUBST(libwbclient_version)
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe libwbclient_version_info="12:0:12"
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(libwbclient_version_info)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([BUILD_LIBWBCLIENT], [test x"$with_libwbclient" = xyes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_SAMBA],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([samba],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-samba],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to build with samba4 libraries [yes]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_samba=$withval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_samba=yes]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_samba" = xyes; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE(BUILD_SAMBA, 1, [whether to build with samba support])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([BUILD_SAMBA], [test x"$with_samba" = xyes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwroweAC_ARG_ENABLE([dbus-tests],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AS_HELP_STRING([--enable-dbus-tests],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [enable running tests using a dbus server instance [default=yes]])],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [build_dbus_tests=$enableval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [build_dbus_tests=yes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAM_CONDITIONAL([BUILD_DBUS_TESTS], [test x$build_dbus_tests = xyes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_ARG_ENABLE([sss-default-nss-plugin],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AS_HELP_STRING([--enable-sss-default-nss-plugin],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [This option change standard behaviour of sss nss
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes plugin. If this option is enabled the sss nss
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes plugin will behave as it was not in
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes nsswitch.conf when sssd is not running.
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [default=no]])],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [enable_sss_default_nss_plugin=$enableval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [enable_sss_default_nss_plugin=no])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAS_IF([test x$enable_sss_default_nss_plugin = xyes],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED([NONSTANDARD_SSS_NSS_BEHAVIOUR], [1],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [whether to build sssd nss plugin with nonstandard glibc behaviour]))
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_NFS],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([nfsv4-idmapd-plugin],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-nfsv4-idmapd-plugin],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [Whether to build with NFSv4 IDMAP support [yes]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_nfsv4_idmap=$withval],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [with_nfsv4_idmap=yes]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_nfsv4_idmap" = xyes; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE(BUILD_NFS_IDMAP, 1, [whether to build with NFSv4 IDMAP support])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([BUILD_NFS_IDMAP], [test x"$with_nfsv4_idmap" = xyes])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_NFS_LIB_PATH],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [ AC_ARG_WITH([nfs-lib-path],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AC_HELP_STRING([--with-nfs-lib-path=<path>],
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholes [Path to the nfs library [${libdir}]]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes nfslibpath="${libdir}"
bb07ee33bce1a448bcc60ca43720b1ab1c413f87minfrin if test x"$with_nfs_lib_path" != x; then
bb07ee33bce1a448bcc60ca43720b1ab1c413f87minfrin nfslibpath=$with_nfs_lib_path
bb07ee33bce1a448bcc60ca43720b1ab1c413f87minfrin fi
bb07ee33bce1a448bcc60ca43720b1ab1c413f87minfrin AC_SUBST(nfslibpath)
bb07ee33bce1a448bcc60ca43720b1ab1c413f87minfrin ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholesAC_DEFUN([WITH_SSSD_USER],
f43b67c5a9d29b572eac916f8335cedc80c908bebnicholes [ AC_ARG_WITH([sssd-user],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [AS_HELP_STRING([--with-sssd-user=<user>],
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes [User for running SSSD (root)]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes SSSD_USER=root
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_sssd_user" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes SSSD_USER=$with_sssd_user
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(SSSD_USER)
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe AC_DEFINE_UNQUOTED(SSSD_USER, "$SSSD_USER", ["The default user to run SSSD as"])
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe AM_CONDITIONAL([SSSD_USER], [test x"$with_sssd_user" != x])
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe ])
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe AC_DEFUN([WITH_AD_GPO_DEFAULT],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [ AC_ARG_WITH([ad-gpo-default],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [AS_HELP_STRING([--with-ad-gpo-default=[enforcing|permissive]],
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe [Default enforcing level for AD GPO access-control (enforcing)]
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe )
482f676c6c19b1c5bb5cca04dad11509c1da3a4cwrowe ]
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes )
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes GPO_DEFAULT=enforcing
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test x"$with_ad_gpo_default" != x; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes if test ! "$with_ad_gpo_default" = "enforcing" -a ! "$with_ad_gpo_default" = "permissive"; then
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_MSG_ERROR("GPO Default must be either "enforcing" or "permissive")
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes else
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes GPO_DEFAULT=$with_ad_gpo_default
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes fi
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_SUBST(GPO_DEFAULT)
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AC_DEFINE_UNQUOTED(AD_GPO_ACCESS_MODE_DEFAULT, "$GPO_DEFAULT", ["The default enforcing level for AD GPO access-control"])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes AM_CONDITIONAL([GPO_DEFAULT_ENFORCING], [test x"$GPO_DEFAULT" = xenforcing])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes ])
d5b12fe8ae917e654a33247fd4e59dc9e75170aebnicholes