~ubuntu-branches/ubuntu/saucy/sssd/saucy

« back to all changes in this revision

Viewing changes to server/conf_macros.m4

  • Committer: Stéphane Graber
  • Date: 2011-06-15 16:23:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: stgraber@ubuntu.com-20110615162314-rbhoppnpaxfqo5q7
Merge 1.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_DEFUN([WITH_DB_PATH],
2
 
  [ AC_ARG_WITH([db-path],
3
 
                [AC_HELP_STRING([--with-db-path=PATH],
4
 
                                [Path to the SSSD databases [/var/lib/sss/db]]
5
 
                               )
6
 
                ]
7
 
               )
8
 
    config_dbpath="\"VARDIR\"/lib/sss/db"
9
 
    dbpath="${localstatedir}/lib/sss/db"
10
 
    if test x"$with_db_path" != x; then
11
 
        config_dbpath=$with_db_path
12
 
        dbpath=$with_db_path
13
 
    fi
14
 
    AC_SUBST(dbpath)
15
 
    AC_DEFINE_UNQUOTED(DB_PATH, "$config_dbpath", [Path to the SSSD databases])
16
 
  ])
17
 
 
18
 
AC_DEFUN([WITH_PLUGIN_PATH],
19
 
  [ AC_ARG_WITH([plugin-path],
20
 
                [AC_HELP_STRING([--with-plugin-path=PATH],
21
 
                                [Path to the SSSD data provider plugins [/usr/lib/sssd]]
22
 
                               )
23
 
                ]
24
 
               )
25
 
    pluginpath="${libdir}/sssd"
26
 
    config_pluginpath="\"LIBDIR\"/sssd"
27
 
    if test x"$with_plugin_path" != x; then
28
 
        pluginpath=$with_plugin_path
29
 
        config_pluginpath=$with_plugin_path
30
 
    fi
31
 
    AC_SUBST(pluginpath)
32
 
    AC_DEFINE_UNQUOTED(DATA_PROVIDER_PLUGINS_PATH, "$config_pluginpath", [Path to the SSSD data provider plugins])
33
 
  ])
34
 
 
35
 
AC_DEFUN([WITH_PID_PATH],
36
 
  [ AC_ARG_WITH([pid-path],
37
 
                [AC_HELP_STRING([--with-pid-path=PATH],
38
 
                                [Where to store pid files for the SSSD [/var/run]]
39
 
                               )
40
 
                ]
41
 
               )
42
 
    config_pidpath="\"VARDIR\"/run"
43
 
    pidpath="${localstatedir}/run"
44
 
    if test x"$with_pid_path" != x; then
45
 
        config_pidpath=$with_pid_path
46
 
        pidpath=$with_pid_path
47
 
    fi
48
 
    AC_SUBST(pidpath)
49
 
    AC_DEFINE_UNQUOTED(PID_PATH, "$config_pidpath", [Where to store pid files for the SSSD])
50
 
  ])
51
 
 
52
 
AC_DEFUN([WITH_LOG_PATH],
53
 
  [ AC_ARG_WITH([log-path],
54
 
                [AC_HELP_STRING([--with-log-path=PATH],
55
 
                                [Where to store log files for the SSSD [/var/log/sssd]]
56
 
                               )
57
 
                ]
58
 
               )
59
 
    config_logpath="\"VARDIR\"/log/sssd"
60
 
    logpath="${localstatedir}/log/sssd"
61
 
    if test x"$with_log_path" != x; then
62
 
        config_logpath=$with_log_path
63
 
        logpath=$with_log_path
64
 
    fi
65
 
    AC_SUBST(logpath)
66
 
    AC_DEFINE_UNQUOTED(LOG_PATH, "$config_logpath", [Where to store log files for the SSSD])
67
 
  ])
68
 
 
69
 
AC_DEFUN([WITH_PUBCONF_PATH],
70
 
  [ AC_ARG_WITH([pubconf-path],
71
 
                [AC_HELP_STRING([--with-pubconf-path=PATH],
72
 
                                [Where to store pubconf files for the SSSD [/var/lib/sss/pubconf]]
73
 
                               )
74
 
                ]
75
 
               )
76
 
    config_pubconfpath="\"VARDIR\"/lib/sss/pubconf"
77
 
    pubconfpath="${localstatedir}/lib/sss/pubconf"
78
 
    if test x"$with_pubconf_path" != x; then
79
 
        config_pubconfpath=$with_pubconf_path
80
 
        pubconfpath=$with_pubconf_path
81
 
    fi
82
 
    AC_SUBST(pubconfpath)
83
 
    AC_DEFINE_UNQUOTED(PUBCONF_PATH, "$config_pubconfpath", [Where to store pubconf files for the SSSD])
84
 
  ])
85
 
 
86
 
AC_DEFUN([WITH_PIPE_PATH],
87
 
  [ AC_ARG_WITH([pipe-path],
88
 
                [AC_HELP_STRING([--with-pipe-path=PATH],
89
 
                                [Where to store pipe files for the SSSD interconnects [/var/lib/sss/pipes]]
90
 
                               )
91
 
                ]
92
 
               )
93
 
    config_pipepath="\"VARDIR\"/lib/sss/pipes"
94
 
    pipepath="${localstatedir}/lib/sss/pipes"
95
 
    if test x"$with_pipe_path" != x; then
96
 
        config_pipepath=$with_pipe_path
97
 
        pipepath=$with_pipe_path
98
 
    fi
99
 
    AC_SUBST(pipepath)
100
 
    AC_DEFINE_UNQUOTED(PIPE_PATH, "$config_pipepath", [Where to store pipe files for the SSSD interconnects])
101
 
  ])
102
 
 
103
 
AC_DEFUN([WITH_INIT_DIR],
104
 
  [ AC_ARG_WITH([init-dir],
105
 
                [AC_HELP_STRING([--with-init-dir=DIR],
106
 
                                [Where to store init script for sssd [/etc/rc.d/init.d]]
107
 
                               )
108
 
                ]
109
 
               )
110
 
    initdir="${sysconfdir}/rc.d/init.d"
111
 
    if test x"$with_init_dir" != x; then
112
 
        initdir=$with_init_dir
113
 
    fi
114
 
    AC_SUBST(initdir)
115
 
  ])
116
 
 
117
 
AC_DEFUN([WITH_SHADOW_UTILS_PATH],
118
 
  [ AC_ARG_WITH([shadow-utils-path],
119
 
                [AC_HELP_STRING([--with-shadow-utils-path=PATH],
120
 
                                [Where to look for shadow-utils binaries [/usr/sbin]]
121
 
                               )
122
 
                ]
123
 
               )
124
 
    shadow_utils_path="${sbindir}"
125
 
    if test x"$with_shadow_utils_path" != x; then
126
 
        shadow_utils_path=$with_shadow_utils_path
127
 
    fi
128
 
    AC_SUBST(shadow_utils_path)
129
 
  ])
130
 
 
131
 
AC_DEFUN([WITH_MANPAGES],
132
 
  [ AC_ARG_WITH([manpages],
133
 
                [AC_HELP_STRING([--with-manpages],
134
 
                                [Whether to regenerate man pages from DocBook sources [yes]]
135
 
                               )
136
 
                ],
137
 
                [],
138
 
                with_manpages=yes
139
 
               )
140
 
    if test x"$with_manpages" == xyes; then
141
 
        HAVE_MANPAGES=1
142
 
        AC_SUBST(HAVE_MANPAGES)
143
 
    fi
144
 
  ])
145
 
AM_CONDITIONAL([BUILD_MANPAGES], [test x$with_manpages = xyes])
146
 
 
147
 
AC_DEFUN([WITH_XML_CATALOG],
148
 
  [ AC_ARG_WITH([xml-catalog-path],
149
 
                [AC_HELP_STRING([--with-xml-catalog-path=PATH],
150
 
                                [Where to look for XML catalog [/etc/xml/catalog]]
151
 
                               )
152
 
                ]
153
 
               )
154
 
    SGML_CATALOG_FILES="/etc/xml/catalog"
155
 
    if test x"$with_xml_catalog_path" != x; then
156
 
        SGML_CATALOG_FILES="$with_xml_catalog_path"
157
 
    fi
158
 
    AC_SUBST([SGML_CATALOG_FILES])
159
 
  ])
160
 
 
161
 
AC_DEFUN([WITH_KRB5_PLUGIN_PATH],
162
 
  [ AC_ARG_WITH([krb5-plugin-path],
163
 
                [AC_HELP_STRING([--with-krb5-plugin-path=PATH],
164
 
                                [Path to kerberos plugin store [/usr/lib/krb5/plugins/libkrb5]]
165
 
                               )
166
 
                ]
167
 
               )
168
 
    krb5pluginpath="${libdir}/krb5/plugins/libkrb5"
169
 
    if test x"$with_krb5_plugin_path" != x; then
170
 
        krb5pluginpath=$with_krb5_plugin_path
171
 
    fi
172
 
    AC_SUBST(krb5pluginpath)
173
 
  ])
174
 
 
175
 
AC_DEFUN([WITH_PYTHON_BINDINGS],
176
 
  [ AC_ARG_WITH([python-bindings],
177
 
                [AC_HELP_STRING([--with-python-bindings],
178
 
                                [Whether to build python bindings [yes]]
179
 
                               )
180
 
                ],
181
 
                [],
182
 
                with_python_bindings=yes
183
 
               )
184
 
    if test x"$with_python_bindings" == xyes; then
185
 
        HAVE_PYTHON_BINDINGS=1
186
 
        AC_SUBST(HAVE_PYTHON_BINDINGS)
187
 
    fi
188
 
    AM_CONDITIONAL([BUILD_PYTHON_BINDINGS], [test x"$with_python_bindings" = xyes])
189
 
  ])
190
 
 
191
 
AC_DEFUN([WITH_SELINUX],
192
 
  [ AC_ARG_WITH([selinux],
193
 
                [AC_HELP_STRING([--with-selinux],
194
 
                                [Whether to build with SELinux support [yes]]
195
 
                               )
196
 
                ],
197
 
                [],
198
 
                with_selinux=yes
199
 
               )
200
 
    if test x"$with_selinux" == xyes; then
201
 
        HAVE_SELINUX=1
202
 
        AC_SUBST(HAVE_SELINUX)
203
 
        AC_DEFINE_UNQUOTED(HAVE_SELINUX, 1, [Build with SELinux support])
204
 
    fi
205
 
    AM_CONDITIONAL([BUILD_SELINUX], [test x"$with_selinux" = xyes])
206
 
  ])
207