]>
Commit | Line | Data |
---|---|---|
f2c2d395 MW |
1 | dnl configure.in for linux strongSwan |
2 | dnl Copyright (C) 2006 Martin Willi | |
3 | dnl Hochschule fuer Technik Rapperswil | |
4 | dnl | |
5 | dnl This program is free software; you can redistribute it and/or modify it | |
6 | dnl under the terms of the GNU General Public License as published by the | |
7 | dnl Free Software Foundation; either version 2 of the License, or (at your | |
8 | dnl option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. | |
9 | dnl | |
10 | dnl This program is distributed in the hope that it will be useful, but | |
11 | dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
12 | dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 | dnl for more details. | |
14 | ||
15 | dnl =========================== | |
16 | dnl initialize & set some vars | |
17 | dnl =========================== | |
18 | ||
f032a690 | 19 | AC_INIT(strongSwan,4.3.1) |
5e5f0bd4 | 20 | AM_INIT_AUTOMAKE(tar-ustar) |
f2c2d395 | 21 | AC_C_BIGENDIAN |
f2c2d395 | 22 | AC_SUBST(confdir, '${sysconfdir}') |
a47486b5 | 23 | PKG_PROG_PKG_CONFIG |
f2c2d395 | 24 | |
db26d00e MW |
25 | dnl ================================= |
26 | dnl check --enable-xxx & --with-xxx | |
27 | dnl ================================= | |
28 | ||
db26d00e | 29 | AC_ARG_WITH( |
6b9290ff MW |
30 | [default-pkcs11], |
31 | AS_HELP_STRING([--with-default-pkcs11=lib],[set the default PKCS11 library other than "/usr/lib/opensc-pkcs11.so"]), | |
32 | [AC_DEFINE_UNQUOTED(PKCS11_DEFAULT_LIB, "$withval")], | |
33 | [AC_DEFINE_UNQUOTED(PKCS11_DEFAULT_LIB, "/usr/lib/opensc-pkcs11.so")] | |
db26d00e MW |
34 | ) |
35 | ||
195307b5 | 36 | AC_ARG_WITH( |
6b9290ff MW |
37 | [xauth-module], |
38 | AS_HELP_STRING([--with-xauth-module=lib],[set the path to the XAUTH module]), | |
39 | [AC_DEFINE_UNQUOTED(XAUTH_DEFAULT_LIB, "$withval")], | |
195307b5 AS |
40 | ) |
41 | ||
db26d00e | 42 | AC_ARG_WITH( |
6b9290ff MW |
43 | [random-device], |
44 | AS_HELP_STRING([--with-random-device=dev],[set the device for real random data other than "/dev/random"]), | |
45 | [AC_DEFINE_UNQUOTED(DEV_RANDOM, "$withval")], | |
46 | [AC_DEFINE_UNQUOTED(DEV_RANDOM, "/dev/random")] | |
db26d00e | 47 | ) |
c60c7694 | 48 | AC_ARG_WITH( |
6b9290ff | 49 | [resolv-conf], |
adc25ec2 | 50 | AS_HELP_STRING([--with-resolv-conf=file],[set the file to use in DNS handler plugin other than "sysconfdir/resolv.conf"]), |
8cc16c9d AS |
51 | [AC_SUBST(resolv_conf, "$withval")], |
52 | [AC_SUBST(resolv_conf, "${sysconfdir}/resolv.conf")] | |
c60c7694 | 53 | ) |
db26d00e | 54 | |
ff867d06 MW |
55 | AC_ARG_WITH( |
56 | [strongswan-conf], | |
57 | AS_HELP_STRING([--with-strongswan-conf=file],[strongswan.conf file other than "sysconfdir/strongswan.conf"]), | |
8cc16c9d AS |
58 | [AC_SUBST(strongswan_conf, "$withval")], |
59 | [AC_SUBST(strongswan_conf, "${sysconfdir}/strongswan.conf")] | |
ff867d06 MW |
60 | ) |
61 | ||
db26d00e | 62 | AC_ARG_WITH( |
6b9290ff MW |
63 | [urandom-device], |
64 | AS_HELP_STRING([--with-urandom-device=dev],[set the device for pseudo random data other than "/dev/urandom"]), | |
65 | [AC_DEFINE_UNQUOTED(DEV_URANDOM, "$withval")], | |
66 | [AC_DEFINE_UNQUOTED(DEV_URANDOM, "/dev/urandom")] | |
db26d00e | 67 | ) |
f2c2d395 | 68 | |
dfc14c84 | 69 | AC_ARG_WITH( |
6b9290ff MW |
70 | [piddir], |
71 | AS_HELP_STRING([--with-piddir=dir],[path for PID and UNIX socket files other than "/var/run"]), | |
72 | [AC_SUBST(piddir, "$withval")], | |
73 | [AC_SUBST(piddir, "/var/run")] | |
dfc14c84 AS |
74 | ) |
75 | ||
f27f6296 | 76 | AC_ARG_WITH( |
6b9290ff MW |
77 | [ipsecdir], |
78 | AS_HELP_STRING([--with-ipsecdir=dir],[installation path for ipsec tools other than "libexecdir/ipsec"]), | |
79 | [AC_SUBST(ipsecdir, "$withval")], | |
c5ebb635 | 80 | [AC_SUBST(ipsecdir, "${libexecdir%/}/ipsec")] |
f27f6296 | 81 | ) |
c5ebb635 | 82 | AC_SUBST(plugindir, "${ipsecdir%/}/plugins") |
f27f6296 MW |
83 | |
84 | AC_ARG_WITH( | |
6b9290ff MW |
85 | [plugindir], |
86 | AS_HELP_STRING([--with-plugindir=dir],[installation path for plugins other than "ipsecdir/plugins"]), | |
87 | [AC_SUBST(plugindir, "$withval")], | |
c5ebb635 | 88 | [AC_SUBST(plugindir, "${ipsecdir%/}/plugins")] |
f27f6296 MW |
89 | ) |
90 | ||
d560c849 | 91 | AC_ARG_WITH( |
6b9290ff MW |
92 | [sim-reader], |
93 | AS_HELP_STRING([--with-sim-reader=library.so],[library containing the sim_run_alg()/sim_get_triplet() function for EAP-SIM]), | |
94 | [AC_SUBST(simreader, "$withval")], | |
c5ebb635 | 95 | [AC_SUBST(simreader, "${plugindir%/}/libeapsim-file.so")] |
d560c849 MW |
96 | ) |
97 | ||
04a7b6d8 | 98 | AC_ARG_WITH( |
6b9290ff MW |
99 | [linux-headers], |
100 | AS_HELP_STRING([--with-linux-headers=dir],[use the linux header files in dir instead of the supplied ones in "src/include"]), | |
507f26f6 | 101 | [AC_SUBST(linuxdir, "$withval")], [AC_SUBST(linuxdir, "\${top_srcdir}/src/include")] |
04a7b6d8 MW |
102 | ) |
103 | AC_SUBST(LINUX_HEADERS) | |
104 | ||
4e411c83 | 105 | AC_ARG_WITH( |
6b9290ff MW |
106 | [routing-table], |
107 | AS_HELP_STRING([--with-routing-table=num],[use routing table for IPsec routes (default: 220)]), | |
108 | [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, $withval) AC_SUBST(IPSEC_ROUTING_TABLE, "$withval")], | |
109 | [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE, 220) AC_SUBST(IPSEC_ROUTING_TABLE, "220")] | |
0739cca9 MW |
110 | ) |
111 | ||
112 | AC_ARG_WITH( | |
6b9290ff MW |
113 | [routing-table-prio], |
114 | AS_HELP_STRING([--with-routing-table-prio=prio],[priority for IPsec routing table (default: 220)]), | |
115 | [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE_PRIO, $withval) AC_SUBST(IPSEC_ROUTING_TABLE_PRIO, "$withval")], | |
116 | [AC_DEFINE_UNQUOTED(IPSEC_ROUTING_TABLE_PRIO, 220) AC_SUBST(IPSEC_ROUTING_TABLE_PRIO, "220")] | |
4e411c83 MW |
117 | ) |
118 | ||
6874bf69 | 119 | AC_ARG_WITH( |
25b12c69 | 120 | [uid],,[AC_MSG_ERROR([--with-uid is gone, use --with-user instead!])] |
6874bf69 MW |
121 | ) |
122 | ||
123 | AC_ARG_WITH( | |
25b12c69 MW |
124 | [gid],,[AC_MSG_ERROR([--with-gid is gone, use --with-group instead!])] |
125 | ) | |
126 | ||
127 | AC_ARG_WITH( | |
128 | [user], | |
129 | AS_HELP_STRING([--with-user=user],[change user of the daemons to "user" after startup (default is 0).]), | |
130 | [AC_DEFINE_UNQUOTED(IPSEC_USER, "$withval") AC_SUBST(ipsecuser, "$withval")], | |
131 | [AC_SUBST(ipsecuser, "root")] | |
132 | ) | |
133 | ||
134 | AC_ARG_WITH( | |
135 | [group], | |
136 | AS_HELP_STRING([--with-group=group],[change group of the daemons to "group" after startup (default is 0).]), | |
137 | [AC_DEFINE_UNQUOTED(IPSEC_GROUP, "$withval") AC_SUBST(ipsecgroup, "$withval")], | |
138 | [AC_SUBST(ipsecgroup, "root")] | |
6874bf69 MW |
139 | ) |
140 | ||
eb3e2705 MW |
141 | dnl Will be extended to --with-capabilities=libcap|libcap2 |
142 | AC_ARG_WITH( | |
143 | [capabilities], | |
144 | AS_HELP_STRING([--with-capabilities=libcap],[capability dropping using libcap. Currenlty only the value "libcap" is supported (default is NO).]), | |
145 | [capabilities="$withval"], | |
146 | [capabilities=no] | |
147 | ) | |
148 | ||
f2c2d395 | 149 | AC_ARG_ENABLE( |
6b9290ff MW |
150 | [curl], |
151 | AS_HELP_STRING([--enable-curl],[enable CURL fetcher plugin to fetch files via libcurl (default is NO). Requires libcurl.]), | |
152 | [if test x$enableval = xyes; then | |
153 | curl=true | |
154 | fi] | |
f2c2d395 | 155 | ) |
f2c2d395 MW |
156 | |
157 | AC_ARG_ENABLE( | |
6b9290ff MW |
158 | [ldap], |
159 | AS_HELP_STRING([--enable-ldap],[enable LDAP fetching plugin to fetch files via libldap (default is NO). Requires openLDAP.]), | |
160 | [if test x$enableval = xyes; then | |
161 | ldap=true | |
162 | fi] | |
f2c2d395 | 163 | ) |
552cc11b MW |
164 | |
165 | AC_ARG_ENABLE( | |
6b9290ff MW |
166 | [aes], |
167 | AS_HELP_STRING([--disable-aes],[disable own AES software implementation plugin. (default is NO).]), | |
168 | [if test x$enableval = xyes; then | |
169 | aes=true | |
170 | else | |
171 | aes=false | |
172 | fi], | |
173 | aes=true | |
552cc11b | 174 | ) |
552cc11b MW |
175 | |
176 | AC_ARG_ENABLE( | |
6b9290ff MW |
177 | [des], |
178 | AS_HELP_STRING([--disable-des],[disable own DES/3DES software implementation plugin. (default is NO).]), | |
179 | [if test x$enableval = xyes; then | |
180 | des=true | |
181 | else | |
182 | des=false | |
183 | fi], | |
184 | des=true | |
552cc11b | 185 | ) |
552cc11b | 186 | |
1e0d1ae2 AS |
187 | AC_ARG_ENABLE( |
188 | [md4], | |
189 | AS_HELP_STRING([--enable-md4],[enable MD4 software implementation plugin (default is NO).]), | |
190 | [if test x$enableval = xyes; then | |
191 | md4=true | |
192 | fi] | |
193 | ) | |
194 | ||
552cc11b | 195 | AC_ARG_ENABLE( |
6b9290ff MW |
196 | [md5], |
197 | AS_HELP_STRING([--disable-md5],[disable own MD5 software implementation plugin. (default is NO).]), | |
198 | [if test x$enableval = xyes; then | |
199 | md5=true | |
200 | else | |
201 | md5=false | |
202 | fi], | |
203 | md5=true | |
552cc11b | 204 | ) |
552cc11b MW |
205 | |
206 | AC_ARG_ENABLE( | |
6b9290ff MW |
207 | [sha1], |
208 | AS_HELP_STRING([--disable-sha1],[disable own SHA1 software implementation plugin. (default is NO).]), | |
209 | [if test x$enableval = xyes; then | |
210 | sha1=true | |
211 | else | |
212 | sha1=false | |
213 | fi], | |
214 | sha1=true | |
552cc11b | 215 | ) |
552cc11b MW |
216 | |
217 | AC_ARG_ENABLE( | |
6b9290ff MW |
218 | [sha2], |
219 | AS_HELP_STRING([--disable-sha2],[disable own SHA256/SHA384/SHA512 software implementation plugin. (default is NO).]), | |
220 | [if test x$enableval = xyes; then | |
221 | sha2=true | |
222 | else | |
223 | sha2=false | |
224 | fi], | |
225 | sha2=true | |
552cc11b | 226 | ) |
552cc11b MW |
227 | |
228 | AC_ARG_ENABLE( | |
6b9290ff MW |
229 | [fips-prf], |
230 | AS_HELP_STRING([--disable-fips-prf],[disable FIPS PRF software implementation plugin. (default is NO).]), | |
231 | [if test x$enableval = xyes; then | |
232 | fips_prf=true | |
233 | else | |
234 | fips_prf=false | |
235 | fi], | |
236 | fips_prf=true | |
552cc11b | 237 | ) |
552cc11b MW |
238 | |
239 | AC_ARG_ENABLE( | |
6b9290ff MW |
240 | [gmp], |
241 | AS_HELP_STRING([--disable-gmp],[disable own GNU MP (libgmp) based crypto implementation plugin. (default is NO).]), | |
242 | [if test x$enableval = xyes; then | |
243 | gmp=true | |
244 | else | |
245 | gmp=false | |
246 | fi], | |
247 | gmp=true | |
552cc11b | 248 | ) |
552cc11b | 249 | |
6a365f07 MW |
250 | AC_ARG_ENABLE( |
251 | [random], | |
252 | AS_HELP_STRING([--disable-random],[disable RNG implementation on top of /dev/(u)random. (default is NO).]), | |
253 | [if test x$enableval = xyes; then | |
254 | random=true | |
255 | else | |
256 | random=false | |
257 | fi], | |
258 | random=true | |
259 | ) | |
260 | ||
552cc11b | 261 | AC_ARG_ENABLE( |
6b9290ff MW |
262 | [x509], |
263 | AS_HELP_STRING([--disable-x509],[disable own X509 certificate implementation plugin. (default is NO).]), | |
264 | [if test x$enableval = xyes; then | |
265 | x509=true | |
266 | else | |
267 | x509=false | |
268 | fi], | |
269 | x509=true | |
552cc11b | 270 | ) |
552cc11b | 271 | |
affd7a90 MW |
272 | AC_ARG_ENABLE( |
273 | [pubkey], | |
274 | AS_HELP_STRING([--disable-pubkey],[disable RAW public key support plugin. (default is NO).]), | |
275 | [if test x$enableval = xyes; then | |
276 | pubkey=true | |
277 | else | |
278 | pubkey=false | |
279 | fi], | |
280 | pubkey=true | |
281 | ) | |
282 | ||
552cc11b | 283 | AC_ARG_ENABLE( |
6b9290ff MW |
284 | [hmac], |
285 | AS_HELP_STRING([--disable-hmac],[disable HMAC crypto implementation plugin. (default is NO).]), | |
286 | [if test x$enableval = xyes; then | |
287 | hmac=true | |
288 | else | |
289 | hmac=false | |
290 | fi], | |
291 | hmac=true | |
552cc11b | 292 | ) |
552cc11b | 293 | |
27d04e05 MW |
294 | AC_ARG_ENABLE( |
295 | [xcbc], | |
296 | AS_HELP_STRING([--disable-xcbc],[disable xcbc crypto implementation plugin. (default is NO).]), | |
297 | [if test x$enableval = xyes; then | |
298 | xcbc=true | |
299 | else | |
300 | xcbc=false | |
301 | fi], | |
302 | xcbc=true | |
303 | ) | |
304 | ||
552cc11b | 305 | AC_ARG_ENABLE( |
6b9290ff MW |
306 | [mysql], |
307 | AS_HELP_STRING([--enable-mysql],[enable MySQL database support (default is NO). Requires libmysqlclient_r.]), | |
308 | [if test x$enableval = xyes; then | |
309 | mysql=true | |
310 | fi] | |
552cc11b | 311 | ) |
552cc11b MW |
312 | |
313 | AC_ARG_ENABLE( | |
6b9290ff MW |
314 | [sqlite], |
315 | AS_HELP_STRING([--enable-sqlite],[enable SQLite database support (default is NO). Requires libsqlite3.]), | |
316 | [if test x$enableval = xyes; then | |
317 | sqlite=true | |
318 | fi] | |
552cc11b | 319 | ) |
f2c2d395 | 320 | |
cbfb2aff | 321 | AC_ARG_ENABLE( |
6b9290ff MW |
322 | [stroke], |
323 | AS_HELP_STRING([--disable-stroke],[disable charons stroke (pluto compatibility) configuration backend. (default is NO).]), | |
324 | [if test x$enableval = xyes; then | |
325 | stroke=true | |
326 | else | |
327 | stroke=false | |
328 | fi], | |
329 | stroke=true | |
cbfb2aff | 330 | ) |
cbfb2aff | 331 | |
552cc11b | 332 | AC_ARG_ENABLE( |
5b7ec6d4 | 333 | [medsrv], |
9529fb68 | 334 | AS_HELP_STRING([--enable-medsrv],[enable mediation server web frontend and daemon plugin (default is NO).]), |
6b9290ff | 335 | [if test x$enableval = xyes; then |
5b7ec6d4 | 336 | medsrv=true |
6b9290ff | 337 | fi] |
552cc11b | 338 | ) |
552cc11b | 339 | |
782db7ed MW |
340 | AC_ARG_ENABLE( |
341 | [medcli], | |
342 | AS_HELP_STRING([--enable-medcli],[enable mediation client configuration database plugin (default is NO).]), | |
343 | [if test x$enableval = xyes; then | |
344 | medcli=true | |
345 | fi] | |
346 | ) | |
347 | ||
a84fb01b | 348 | AC_ARG_ENABLE( |
6b9290ff MW |
349 | [smp], |
350 | AS_HELP_STRING([--enable-smp],[enable SMP configuration and control interface (default is NO). Requires libxml.]), | |
351 | [if test x$enableval = xyes; then | |
352 | smp=true | |
353 | fi] | |
a84fb01b | 354 | ) |
a84fb01b MW |
355 | |
356 | AC_ARG_ENABLE( | |
6b9290ff MW |
357 | [sql], |
358 | AS_HELP_STRING([--enable-sql],[enable SQL database configuration backend (default is NO).]), | |
359 | [if test x$enableval = xyes; then | |
360 | sql=true | |
361 | fi] | |
a84fb01b | 362 | ) |
a84fb01b | 363 | |
8f561d44 | 364 | AC_ARG_ENABLE( |
6b9290ff MW |
365 | [smartcard], |
366 | AS_HELP_STRING([--enable-smartcard],[enable smartcard support (default is NO).]), | |
367 | [if test x$enableval = xyes; then | |
368 | smartcard=true | |
369 | fi] | |
8f561d44 | 370 | ) |
8f561d44 | 371 | |
f2c2d395 | 372 | AC_ARG_ENABLE( |
6b9290ff MW |
373 | [cisco-quirks], |
374 | AS_HELP_STRING([--enable-cisco-quirks],[enable support of Cisco VPN client (default is NO).]), | |
375 | [if test x$enableval = xyes; then | |
376 | cisco_quirks=true | |
377 | fi] | |
f2c2d395 | 378 | ) |
f2c2d395 | 379 | |
2df45a73 | 380 | AC_ARG_ENABLE( |
6b9290ff MW |
381 | [leak-detective], |
382 | AS_HELP_STRING([--enable-leak-detective],[enable malloc hooks to find memory leaks (default is NO).]), | |
383 | [if test x$enableval = xyes; then | |
384 | leak_detective=true | |
385 | fi] | |
2df45a73 | 386 | ) |
2df45a73 | 387 | |
02140125 MW |
388 | AC_ARG_ENABLE( |
389 | [lock-profiler], | |
fc3ef71f | 390 | AS_HELP_STRING([--enable-lock-profiler],[enable lock/mutex profiling code (default is NO).]), |
02140125 MW |
391 | [if test x$enableval = xyes; then |
392 | lock_profiler=true | |
393 | fi] | |
394 | ) | |
395 | ||
f2c2d395 | 396 | AC_ARG_ENABLE( |
6b9290ff MW |
397 | [unit-tests], |
398 | AS_HELP_STRING([--enable-unit-tests],[enable unit tests on IKEv2 daemon startup (default is NO).]), | |
399 | [if test x$enableval = xyes; then | |
400 | unittest=true | |
401 | fi] | |
f2c2d395 | 402 | ) |
f2c2d395 | 403 | |
0fd6e955 MW |
404 | AC_ARG_ENABLE( |
405 | [load-tests], | |
406 | AS_HELP_STRING([--enable-load-tests],[enable load testing plugin for IKEv2 daemon (default is NO).]), | |
407 | [if test x$enableval = xyes; then | |
408 | loadtest=true | |
409 | fi] | |
410 | ) | |
411 | ||
552cc11b | 412 | AC_ARG_ENABLE( |
6b9290ff MW |
413 | [eap-sim], |
414 | AS_HELP_STRING([--enable-eap-sim],[build SIM authenication module for EAP (default is NO).]), | |
415 | [if test x$enableval = xyes; then | |
416 | eap_sim=true | |
417 | fi] | |
552cc11b | 418 | ) |
552cc11b | 419 | |
79a87846 MW |
420 | AC_ARG_ENABLE( |
421 | [eap-sim-file], | |
422 | AS_HELP_STRING([--enable-eap-sim-file],[build EAP-SIM backend based on a triplet file (default is NO).]), | |
423 | [if test x$enableval = xyes; then | |
424 | eap_sim_file=true | |
425 | fi] | |
426 | ) | |
427 | ||
b0f24449 | 428 | AC_ARG_ENABLE( |
6b9290ff MW |
429 | [eap-identity], |
430 | AS_HELP_STRING([--enable-eap-identity],[build EAP module providing EAP-Identity helper (default is NO).]), | |
431 | [if test x$enableval = xyes; then | |
432 | eap_identity=true | |
433 | fi] | |
b0f24449 | 434 | ) |
cbfb2aff MW |
435 | |
436 | AC_ARG_ENABLE( | |
6b9290ff MW |
437 | [eap-md5], |
438 | AS_HELP_STRING([--enable-eap-md5],[build MD5 (CHAP) authenication module for EAP (default is NO).]), | |
439 | [if test x$enableval = xyes; then | |
440 | eap_md5=true | |
441 | fi] | |
cbfb2aff | 442 | ) |
26e24676 | 443 | |
1caa265c MW |
444 | AC_ARG_ENABLE( |
445 | [eap-gtc], | |
446 | AS_HELP_STRING([--enable-eap-gtc],[build PAM based GTC authenication module for EAP (default is NO).]), | |
447 | [if test x$enableval = xyes; then | |
448 | eap_gtc=true | |
449 | fi] | |
450 | ) | |
451 | ||
26e24676 | 452 | AC_ARG_ENABLE( |
6b9290ff MW |
453 | [eap-aka], |
454 | AS_HELP_STRING([--enable-eap-aka],[build AKA authentication module for EAP (default is NO).]), | |
455 | [if test x$enableval = xyes; then | |
456 | eap_aka=true | |
457 | fi] | |
26e24676 | 458 | ) |
b0f24449 | 459 | |
f98cdf7a TB |
460 | AC_ARG_ENABLE( |
461 | [eap-mschapv2], | |
462 | AS_HELP_STRING([--enable-eap-mschapv2],[build MS-CHAPv2 authenication module for EAP (default is NO).]), | |
463 | [if test x$enableval = xyes; then | |
464 | eap_mschapv2=true | |
465 | fi] | |
466 | ) | |
467 | ||
4a6b84a9 MW |
468 | AC_ARG_ENABLE( |
469 | [eap-radius], | |
470 | AS_HELP_STRING([--enable-eap-radius],[build RADIUS proxy authenication module for EAP (default is NO).]), | |
471 | [if test x$enableval = xyes; then | |
472 | eap_radius=true | |
473 | fi] | |
474 | ) | |
475 | ||
09d7ef26 AS |
476 | AC_ARG_ENABLE( |
477 | [kernel-netlink], | |
478 | AS_HELP_STRING([--disable-kernel-netlink],[disable the netlink kernel interface. (default is NO).]), | |
479 | [if test x$enableval = xyes; then | |
480 | kernel_netlink=true | |
481 | else | |
482 | kernel_netlink=false | |
483 | fi], | |
484 | kernel_netlink=true | |
485 | ) | |
486 | ||
1adaa02b TB |
487 | AC_ARG_ENABLE( |
488 | [kernel-pfkey], | |
489 | AS_HELP_STRING([--enable-kernel-pfkey],[enable the PF_KEY kernel interface. (default is NO).]), | |
490 | [if test x$enableval = xyes; then | |
491 | kernel_pfkey=true | |
492 | fi] | |
493 | ) | |
494 | ||
ea625fab TB |
495 | AC_ARG_ENABLE( |
496 | [kernel-klips], | |
497 | AS_HELP_STRING([--enable-kernel-klips],[enable the KLIPS kernel interface. (default is NO).]), | |
498 | [if test x$enableval = xyes; then | |
499 | kernel_klips=true | |
500 | fi] | |
501 | ) | |
502 | ||
7b0c588a | 503 | AC_ARG_ENABLE( |
6b9290ff MW |
504 | [nat-transport], |
505 | AS_HELP_STRING([--enable-nat-transport],[enable NAT traversal with IPsec transport mode (default is NO).]), | |
506 | [if test x$enableval = xyes; then | |
507 | nat_transport=true | |
508 | fi] | |
7b0c588a | 509 | ) |
7b0c588a AS |
510 | |
511 | AC_ARG_ENABLE( | |
6b9290ff MW |
512 | [vendor-id], |
513 | AS_HELP_STRING([--disable-vendor-id],[disable the sending of the strongSwan vendor ID (default is NO).]), | |
514 | [if test x$enableval = xyes; then | |
515 | vendor_id=true | |
516 | else | |
517 | vendor_id=false | |
518 | fi], | |
519 | vendor_id=true | |
7b0c588a | 520 | ) |
7b0c588a | 521 | |
0e307360 | 522 | AC_ARG_ENABLE( |
6b9290ff MW |
523 | [xauth-vid], |
524 | AS_HELP_STRING([--disable-xauth-vid],[disable the sending of the XAUTH vendor ID (default is NO).]), | |
525 | [if test x$enableval = xyes; then | |
526 | xauth_vid=true | |
527 | else | |
528 | xauth_vid=false | |
529 | fi], | |
530 | xauth_vid=true | |
0e307360 | 531 | ) |
0e307360 | 532 | |
fd4ded97 | 533 | AC_ARG_ENABLE( |
6b9290ff MW |
534 | [dumm], |
535 | AS_HELP_STRING([--enable-dumm],[build the DUMM UML test framework (default is NO).]), | |
536 | [if test x$enableval = xyes; then | |
537 | dumm=true | |
538 | fi] | |
fd4ded97 | 539 | ) |
fd4ded97 | 540 | |
552cc11b | 541 | AC_ARG_ENABLE( |
6b9290ff MW |
542 | [fast], |
543 | AS_HELP_STRING([--enable-fast],[build libfast (FastCGI Application Server w/ templates (default is NO).]), | |
544 | [if test x$enableval = xyes; then | |
545 | fast=true | |
546 | fi] | |
552cc11b | 547 | ) |
552cc11b | 548 | |
b8c7453a | 549 | AC_ARG_ENABLE( |
6b9290ff MW |
550 | [manager], |
551 | AS_HELP_STRING([--enable-manager],[build web management console (default is NO).]), | |
552 | [if test x$enableval = xyes; then | |
553 | manager=true | |
554 | xml=true | |
555 | fi] | |
b8c7453a | 556 | ) |
b8c7453a | 557 | |
d5cc1758 | 558 | AC_ARG_ENABLE( |
6b9290ff MW |
559 | [mediation], |
560 | AS_HELP_STRING([--enable-mediation],[enable IKEv2 Mediation Extension (default is NO).]), | |
561 | [if test x$enableval = xyes; then | |
562 | me=true | |
563 | fi] | |
d5cc1758 | 564 | ) |
d5cc1758 | 565 | |
9ee1111d | 566 | AC_ARG_ENABLE( |
6b9290ff MW |
567 | [integrity-test], |
568 | AS_HELP_STRING([--enable-integrity-test],[enable the integrity test of the crypto library (default is NO).]), | |
569 | [if test x$enableval = xyes; then | |
570 | integrity_test=true | |
571 | fi] | |
9ee1111d | 572 | ) |
9ee1111d AS |
573 | |
574 | AC_ARG_ENABLE( | |
6b9290ff MW |
575 | [self-test], |
576 | AS_HELP_STRING([--disable-self-test],[disable the self-test of the crypto library (default is NO).]), | |
577 | [if test x$enableval = xyes; then | |
578 | self_test=true | |
579 | else | |
580 | self_test=false | |
581 | fi], | |
582 | self_test=true | |
9ee1111d | 583 | ) |
9ee1111d | 584 | |
733f336a | 585 | AC_ARG_ENABLE( |
6b9290ff MW |
586 | [pluto], |
587 | AS_HELP_STRING([--disable-pluto],[disable the IKEv1 keying daemon pluto. (default is NO).]), | |
588 | [if test x$enableval = xyes; then | |
589 | pluto=true | |
590 | else | |
591 | pluto=false | |
592 | fi], | |
593 | pluto=true | |
cbfb2aff | 594 | ) |
cbfb2aff | 595 | |
6905f794 MW |
596 | AC_ARG_ENABLE( |
597 | [threads], | |
598 | AS_HELP_STRING([--disable-threads],[disable the use of threads in pluto. Charon always uses threads. (default is NO).]), | |
599 | [if test x$enableval = xyes; then | |
600 | threads=true | |
601 | else | |
602 | threads=false | |
603 | fi], | |
604 | threads=true | |
605 | ) | |
606 | ||
cbfb2aff | 607 | AC_ARG_ENABLE( |
6b9290ff MW |
608 | [charon], |
609 | AS_HELP_STRING([--disable-charon],[disable the IKEv2 keying daemon charon. (default is NO).]), | |
610 | [if test x$enableval = xyes; then | |
611 | charon=true | |
612 | else | |
613 | charon=false | |
614 | fi], | |
615 | charon=true | |
cbfb2aff | 616 | ) |
cbfb2aff MW |
617 | |
618 | AC_ARG_ENABLE( | |
6b9290ff MW |
619 | [tools], |
620 | AS_HELP_STRING([--disable-tools],[disable additional utilities (openac and scepclient). (default is NO).]), | |
621 | [if test x$enableval = xyes; then | |
622 | tools=true | |
623 | else | |
624 | tools=false | |
625 | fi], | |
626 | tools=true | |
733f336a | 627 | ) |
733f336a | 628 | |
1e9c46f1 MW |
629 | AC_ARG_ENABLE( |
630 | [updown], | |
ad3af574 | 631 | AS_HELP_STRING([--disable-updown],[disable updown firewall script plugin. (default is NO).]), |
1e9c46f1 MW |
632 | [if test x$enableval = xyes; then |
633 | updown=true | |
634 | else | |
635 | updown=false | |
636 | fi], | |
637 | updown=true | |
638 | ) | |
639 | ||
adc25ec2 MW |
640 | AC_ARG_ENABLE( |
641 | [attr], | |
642 | AS_HELP_STRING([--disable-attr],[disable strongswan.conf based configuration attribute plugin. (default is NO).]), | |
643 | [if test x$enableval = xyes; then | |
644 | attr=true | |
645 | else | |
646 | attr=false | |
647 | fi], | |
648 | attr=true | |
649 | ) | |
650 | ||
651 | AC_ARG_ENABLE( | |
652 | [resolv-conf], | |
653 | AS_HELP_STRING([--disable-resolv-conf],[disable resolv.conf DNS handler plugin. (default is NO).]), | |
654 | [if test x$enableval = xyes; then | |
655 | resolvconf=true | |
656 | else | |
657 | resolvconf=false | |
658 | fi], | |
659 | resolvconf=true | |
660 | ) | |
661 | ||
36d62fac MW |
662 | AC_ARG_ENABLE( |
663 | [padlock], | |
664 | AS_HELP_STRING([--enable-padlock],[enables VIA Padlock crypto plugin. (default is NO).]), | |
665 | [if test x$enableval = xyes; then | |
666 | padlock=true | |
667 | else | |
668 | padlock=false | |
669 | fi], | |
670 | ) | |
671 | ||
17353034 TB |
672 | AC_ARG_ENABLE( |
673 | [openssl], | |
674 | AS_HELP_STRING([--enable-openssl],[enables the OpenSSL crypto plugin. (default is NO).]), | |
675 | [if test x$enableval = xyes; then | |
676 | openssl=true | |
677 | else | |
678 | openssl=false | |
679 | fi], | |
680 | ) | |
681 | ||
21c95463 MW |
682 | AC_ARG_ENABLE( |
683 | [agent], | |
684 | AS_HELP_STRING([--enable-agent],[enables the ssh-agent signing plugin. (default is NO).]), | |
685 | [if test x$enableval = xyes; then | |
686 | agent=true | |
687 | else | |
688 | agent=false | |
689 | fi], | |
690 | ) | |
691 | ||
61c46386 MW |
692 | AC_ARG_ENABLE( |
693 | [uci], | |
694 | AS_HELP_STRING([--enable-uci],[enable OpenWRT UCI configuration plugin (default is NO).]), | |
695 | [if test x$enableval = xyes; then | |
696 | uci=true | |
697 | fi] | |
698 | ) | |
699 | ||
6dbce9c8 MW |
700 | AC_ARG_ENABLE( |
701 | [nm], | |
702 | AS_HELP_STRING([--enable-nm],[enable NetworkManager plugin (default is NO).]), | |
703 | [if test x$enableval = xyes; then | |
704 | nm=true | |
705 | fi] | |
706 | ) | |
707 | ||
f2c2d395 MW |
708 | dnl ========================= |
709 | dnl check required programs | |
710 | dnl ========================= | |
711 | ||
712 | AC_PROG_INSTALL | |
713 | AC_PROG_LIBTOOL | |
714 | AC_PROG_LEX | |
715 | AC_PROG_YACC | |
4986554f | 716 | AC_PROG_CC() |
298b06c2 MW |
717 | AC_PATH_PROG([GPERF], [gperf], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) |
718 | AC_PATH_PROG([PERL], [perl], [], [$PATH:/bin:/usr/bin:/usr/local/bin]) | |
f2c2d395 | 719 | |
6b9290ff MW |
720 | dnl ========================= |
721 | dnl dependency calculation | |
722 | dnl ========================= | |
f2c2d395 | 723 | |
6b9290ff MW |
724 | if test x$pluto = xtrue; then |
725 | gmp=true; | |
726 | fi | |
727 | ||
728 | if test x$tools = xtrue; then | |
729 | gmp=true; | |
730 | fi | |
552cc11b | 731 | |
6b9290ff MW |
732 | if test x$smp = xtrue; then |
733 | xml=true | |
734 | fi | |
735 | ||
736 | if test x$manager = xtrue; then | |
737 | fast=true | |
738 | fi | |
739 | ||
782db7ed MW |
740 | if test x$medsrv = xtrue; then |
741 | me=true | |
9529fb68 | 742 | fast=true |
782db7ed MW |
743 | fi |
744 | ||
745 | if test x$medcli = xtrue; then | |
746 | me=true | |
747 | fi | |
748 | ||
6b9290ff MW |
749 | dnl ========================================== |
750 | dnl check required libraries and header files | |
751 | dnl ========================================== | |
752 | ||
753 | AC_HAVE_LIBRARY(dl) | |
4986554f | 754 | AC_CHECK_FUNCS(backtrace) |
552cc11b | 755 | AC_CHECK_FUNCS(dladdr) |
e696757c | 756 | |
efd0fe21 MW |
757 | AC_MSG_CHECKING([for gcc atomic operations]) |
758 | AC_TRY_RUN( | |
759 | [ | |
760 | int main() { | |
761 | volatile int ref = 1; | |
762 | __sync_fetch_and_add (&ref, 1); | |
763 | __sync_sub_and_fetch (&ref, 1); | |
764 | /* Make sure test fails if operations are not supported */ | |
765 | __sync_val_compare_and_swap(&ref, 1, 0); | |
766 | return ref; | |
767 | } | |
768 | ], | |
769 | [AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_GCC_ATOMIC_OPERATIONS)], | |
bb835afa | 770 | [AC_MSG_RESULT([no])], |
efd0fe21 MW |
771 | [AC_MSG_RESULT([no])]) |
772 | ||
d25ce370 TB |
773 | AC_CHECK_FUNC( |
774 | [register_printf_function], | |
775 | [AC_DEFINE(HAVE_PRINTF_HOOKS)], | |
776 | [ | |
777 | AC_MSG_NOTICE([printf does not support custom format specifiers!]) | |
778 | AC_HAVE_LIBRARY([vstr],[LIBS="$LIBS"]; vstr=true,[AC_MSG_ERROR([Vstr string library not found])]) | |
779 | ]) | |
780 | ||
6b9290ff | 781 | if test x$gmp = xtrue; then |
f8277a83 | 782 | AC_HAVE_LIBRARY([gmp],[LIBS="$LIBS"],[AC_MSG_ERROR([GNU Multi Precision library gmp not found])]) |
6b9290ff MW |
783 | AC_MSG_CHECKING([gmp.h version >= 4.1.4]) |
784 | AC_TRY_COMPILE( | |
785 | [#include "gmp.h"], | |
786 | [ | |
787 | #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL) < 414 | |
788 | #error bad gmp | |
789 | #endif | |
790 | ], | |
791 | [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([No usable gmp.h found!])] | |
792 | ) | |
f2c2d395 | 793 | fi |
6b9290ff MW |
794 | |
795 | if test x$ldap = xtrue; then | |
796 | AC_HAVE_LIBRARY([ldap],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library ldap not found])]) | |
797 | AC_HAVE_LIBRARY([lber],[LIBS="$LIBS"],[AC_MSG_ERROR([LDAP library lber not found])]) | |
798 | AC_CHECK_HEADER([ldap.h],,[AC_MSG_ERROR([LDAP header ldap.h not found!])]) | |
f2c2d395 MW |
799 | fi |
800 | ||
6b9290ff MW |
801 | if test x$curl = xtrue; then |
802 | AC_HAVE_LIBRARY([curl],[LIBS="$LIBS"],[AC_MSG_ERROR([CURL library curl not found])]) | |
803 | AC_CHECK_HEADER([curl/curl.h],,[AC_MSG_ERROR([CURL header curl/curl.h not found!])]) | |
804 | fi | |
805 | ||
806 | if test x$xml = xtrue; then | |
a47486b5 | 807 | PKG_CHECK_MODULES(xml, [libxml-2.0]) |
f2d6355e MW |
808 | AC_SUBST(xml_CFLAGS) |
809 | AC_SUBST(xml_LIBS) | |
810 | fi | |
811 | ||
a47486b5 MW |
812 | if test x$dumm = xtrue; then |
813 | PKG_CHECK_MODULES(gtk, [gtk+-2.0 vte]) | |
814 | AC_SUBST(gtk_CFLAGS) | |
815 | AC_SUBST(gtk_LIBS) | |
816 | fi | |
817 | ||
6b9290ff MW |
818 | if test x$fast = xtrue; then |
819 | AC_HAVE_LIBRARY([neo_cgi],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_cgi not found!])]) | |
820 | AC_HAVE_LIBRARY([neo_utl],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver library neo_utl not found!])]) | |
821 | AC_HAVE_LIBRARY([z],[LIBS="$LIBS"],[AC_MSG_ERROR([ClearSilver dependency zlib not found!])]) | |
822 | dnl autoconf does not like CamelCase!? How to fix this? | |
823 | dnl AC_CHECK_HEADER([ClearSilver/ClearSilver.h],,[AC_MSG_ERROR([ClearSilver header file ClearSilver/ClearSilver.h not found!])]) | |
824 | ||
825 | AC_HAVE_LIBRARY([fcgi],[LIBS="$LIBS"],[AC_MSG_ERROR([FastCGI library fcgi not found!])]) | |
826 | AC_CHECK_HEADER([fcgiapp.h],,[AC_MSG_ERROR([FastCGI header file fcgiapp.h not found!])]) | |
a84fb01b MW |
827 | fi |
828 | ||
6b9290ff MW |
829 | if test x$mysql = xtrue; then |
830 | AC_HAVE_LIBRARY([mysqlclient_r],[LIBS="$LIBS"],[AC_MSG_ERROR([MySQL library mysqlclient_r not found])]) | |
831 | AC_CHECK_HEADER([mysql/mysql.h],,[AC_MSG_ERROR([MySQL header mysql/mysql.h not found!])]) | |
832 | fi | |
f2c2d395 | 833 | |
f8277a83 | 834 | if test x$sqlite = xtrue; then |
6b9290ff MW |
835 | AC_HAVE_LIBRARY([sqlite3],[LIBS="$LIBS"],[AC_MSG_ERROR([SQLite library sqlite3 not found])]) |
836 | AC_CHECK_HEADER([sqlite3.h],,[AC_MSG_ERROR([SQLite header sqlite3.h not found!])]) | |
f8277a83 MW |
837 | AC_MSG_CHECKING([sqlite3_prepare_v2]) |
838 | AC_TRY_COMPILE( | |
839 | [#include <sqlite3.h>], | |
840 | [ | |
841 | void *test = sqlite3_prepare_v2; | |
842 | ], | |
843 | [AC_MSG_RESULT([yes])]; AC_DEFINE_UNQUOTED(HAVE_SQLITE3_PREPARE_V2, 1), [AC_MSG_RESULT([no])]) | |
7da767f7 MW |
844 | AC_MSG_CHECKING([sqlite3.h version >= 3.3.1]) |
845 | AC_TRY_COMPILE( | |
846 | [#include <sqlite3.h>], | |
847 | [ | |
848 | #if SQLITE_VERSION_NUMBER < 3003001 | |
849 | #error bad sqlite | |
850 | #endif | |
851 | ], | |
852 | [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); AC_MSG_ERROR([SQLite version >= 3.3.1 required!])]) | |
6b9290ff | 853 | fi |
f2c2d395 | 854 | |
17353034 | 855 | if test x$openssl = xtrue; then |
e581a31d | 856 | AC_HAVE_LIBRARY([crypto],[LIBS="$LIBS"],[AC_MSG_ERROR([OpenSSL crypto library not found])]) |
17353034 TB |
857 | AC_CHECK_HEADER([openssl/evp.h],,[AC_MSG_ERROR([OpenSSL header openssl/evp.h not found!])]) |
858 | fi | |
859 | ||
61c46386 MW |
860 | if test x$uci = xtrue; then |
861 | AC_HAVE_LIBRARY([uci],[LIBS="$LIBS"],[AC_MSG_ERROR([UCI library libuci not found])]) | |
862 | AC_CHECK_HEADER([uci.h],,[AC_MSG_ERROR([UCI header uci.h not found!])]) | |
863 | fi | |
864 | ||
6dbce9c8 MW |
865 | if test x$nm = xtrue; then |
866 | PKG_CHECK_MODULES(nm, [NetworkManager libnm_glib_vpn gthread-2.0]) | |
867 | AC_SUBST(nm_CFLAGS) | |
868 | AC_SUBST(nm_LIBS) | |
869 | fi | |
870 | ||
1caa265c MW |
871 | if test x$eap_gtc = xtrue; then |
872 | AC_HAVE_LIBRARY([pam],[LIBS="$LIBS"],[AC_MSG_ERROR([PAM library not found])]) | |
873 | AC_CHECK_HEADER([security/pam_appl.h],,[AC_MSG_ERROR([PAM header security/pam_appl.h not found!])]) | |
874 | fi | |
875 | ||
eb3e2705 MW |
876 | if test x$capabilities = xlibcap; then |
877 | AC_HAVE_LIBRARY([cap],[LIBS="$LIBS"],[AC_MSG_ERROR([libcap library not found])]) | |
878 | AC_CHECK_HEADER([sys/capability.h],,[AC_MSG_ERROR([libcap header sys/capability.h not found!])]) | |
879 | fi | |
880 | ||
1ba62b55 MW |
881 | dnl ====================================== |
882 | dnl collect all plugins for libstrongswan | |
883 | dnl ====================================== | |
884 | ||
885 | libstrongswan_plugins= | |
886 | ||
887 | if test x$curl = xtrue; then | |
29727a44 | 888 | libstrongswan_plugins=${libstrongswan_plugins}" curl" |
1ba62b55 MW |
889 | fi |
890 | if test x$ldap = xtrue; then | |
29727a44 | 891 | libstrongswan_plugins=${libstrongswan_plugins}" ldap" |
1ba62b55 MW |
892 | fi |
893 | if test x$aes = xtrue; then | |
29727a44 | 894 | libstrongswan_plugins=${libstrongswan_plugins}" aes" |
1ba62b55 MW |
895 | fi |
896 | if test x$des = xtrue; then | |
29727a44 | 897 | libstrongswan_plugins=${libstrongswan_plugins}" des" |
1ba62b55 | 898 | fi |
1ba62b55 | 899 | if test x$sha1 = xtrue; then |
29727a44 | 900 | libstrongswan_plugins=${libstrongswan_plugins}" sha1" |
1ba62b55 MW |
901 | fi |
902 | if test x$sha2 = xtrue; then | |
29727a44 | 903 | libstrongswan_plugins=${libstrongswan_plugins}" sha2" |
1ba62b55 | 904 | fi |
1e0d1ae2 AS |
905 | if test x$md4 = xtrue; then |
906 | libstrongswan_plugins=${libstrongswan_plugins}" md4" | |
907 | fi | |
e577ad39 MW |
908 | if test x$md5 = xtrue; then |
909 | libstrongswan_plugins=${libstrongswan_plugins}" md5" | |
910 | fi | |
1ba62b55 | 911 | if test x$fips_prf = xtrue; then |
29727a44 | 912 | libstrongswan_plugins=${libstrongswan_plugins}" fips-prf" |
1ba62b55 | 913 | fi |
1ba62b55 | 914 | if test x$random = xtrue; then |
29727a44 | 915 | libstrongswan_plugins=${libstrongswan_plugins}" random" |
1ba62b55 MW |
916 | fi |
917 | if test x$x509 = xtrue; then | |
29727a44 | 918 | libstrongswan_plugins=${libstrongswan_plugins}" x509" |
1ba62b55 MW |
919 | fi |
920 | if test x$pubkey = xtrue; then | |
29727a44 | 921 | libstrongswan_plugins=${libstrongswan_plugins}" pubkey" |
1ba62b55 | 922 | fi |
1ba62b55 | 923 | if test x$xcbc = xtrue; then |
29727a44 | 924 | libstrongswan_plugins=${libstrongswan_plugins}" xcbc" |
1ba62b55 | 925 | fi |
e577ad39 MW |
926 | if test x$hmac = xtrue; then |
927 | libstrongswan_plugins=${libstrongswan_plugins}" hmac" | |
928 | fi | |
1ba62b55 | 929 | if test x$mysql = xtrue; then |
29727a44 | 930 | libstrongswan_plugins=${libstrongswan_plugins}" mysql" |
1ba62b55 MW |
931 | fi |
932 | if test x$sqlite = xtrue; then | |
29727a44 | 933 | libstrongswan_plugins=${libstrongswan_plugins}" sqlite" |
1ba62b55 MW |
934 | fi |
935 | if test x$padlock = xtrue; then | |
29727a44 | 936 | libstrongswan_plugins=${libstrongswan_plugins}" padlock" |
1ba62b55 MW |
937 | fi |
938 | if test x$openssl = xtrue; then | |
29727a44 | 939 | libstrongswan_plugins=${libstrongswan_plugins}" openssl" |
1ba62b55 | 940 | fi |
21c95463 MW |
941 | if test x$agent = xtrue; then |
942 | libstrongswan_plugins=${libstrongswan_plugins}" agent" | |
943 | fi | |
e577ad39 MW |
944 | if test x$gmp = xtrue; then |
945 | libstrongswan_plugins=${libstrongswan_plugins}" gmp" | |
946 | fi | |
1ba62b55 MW |
947 | |
948 | AC_SUBST(libstrongswan_plugins) | |
949 | ||
6b9290ff MW |
950 | dnl ========================= |
951 | dnl set Makefile.am vars | |
952 | dnl ========================= | |
f2c2d395 | 953 | |
1ba62b55 MW |
954 | dnl libstrongswan plugins |
955 | dnl ===================== | |
6b9290ff MW |
956 | AM_CONDITIONAL(USE_CURL, test x$curl = xtrue) |
957 | AM_CONDITIONAL(USE_LDAP, test x$ldap = xtrue) | |
958 | AM_CONDITIONAL(USE_AES, test x$aes = xtrue) | |
959 | AM_CONDITIONAL(USE_DES, test x$des = xtrue) | |
1e0d1ae2 | 960 | AM_CONDITIONAL(USE_MD4, test x$md4 = xtrue) |
6b9290ff MW |
961 | AM_CONDITIONAL(USE_MD5, test x$md5 = xtrue) |
962 | AM_CONDITIONAL(USE_SHA1, test x$sha1 = xtrue) | |
963 | AM_CONDITIONAL(USE_SHA2, test x$sha2 = xtrue) | |
964 | AM_CONDITIONAL(USE_FIPS_PRF, test x$fips_prf = xtrue) | |
965 | AM_CONDITIONAL(USE_GMP, test x$gmp = xtrue) | |
6a365f07 | 966 | AM_CONDITIONAL(USE_RANDOM, test x$random = xtrue) |
6b9290ff | 967 | AM_CONDITIONAL(USE_X509, test x$x509 = xtrue) |
affd7a90 | 968 | AM_CONDITIONAL(USE_PUBKEY, test x$pubkey = xtrue) |
6b9290ff | 969 | AM_CONDITIONAL(USE_HMAC, test x$hmac = xtrue) |
27d04e05 | 970 | AM_CONDITIONAL(USE_XCBC, test x$xcbc = xtrue) |
6b9290ff MW |
971 | AM_CONDITIONAL(USE_MYSQL, test x$mysql = xtrue) |
972 | AM_CONDITIONAL(USE_SQLITE, test x$sqlite = xtrue) | |
1ba62b55 MW |
973 | AM_CONDITIONAL(USE_PADLOCK, test x$padlock = xtrue) |
974 | AM_CONDITIONAL(USE_OPENSSL, test x$openssl = xtrue) | |
21c95463 | 975 | AM_CONDITIONAL(USE_AGENT, test x$agent = xtrue) |
1ba62b55 MW |
976 | |
977 | dnl charon plugins | |
978 | dnl ============== | |
6b9290ff | 979 | AM_CONDITIONAL(USE_STROKE, test x$stroke = xtrue) |
5b7ec6d4 | 980 | AM_CONDITIONAL(USE_MEDSRV, test x$medsrv = xtrue) |
782db7ed | 981 | AM_CONDITIONAL(USE_MEDCLI, test x$medcli = xtrue) |
6dbce9c8 | 982 | AM_CONDITIONAL(USE_NM, test x$nm = xtrue) |
61c46386 | 983 | AM_CONDITIONAL(USE_UCI, test x$uci = xtrue) |
6b9290ff MW |
984 | AM_CONDITIONAL(USE_SMP, test x$smp = xtrue) |
985 | AM_CONDITIONAL(USE_SQL, test x$sql = xtrue) | |
ad3af574 | 986 | AM_CONDITIONAL(USE_UPDOWN, test x$updown = xtrue) |
adc25ec2 MW |
987 | AM_CONDITIONAL(USE_ATTR, test x$attr = xtrue) |
988 | AM_CONDITIONAL(USE_RESOLV_CONF, test x$resolvconf = xtrue) | |
6b9290ff | 989 | AM_CONDITIONAL(USE_UNIT_TESTS, test x$unittest = xtrue) |
0fd6e955 | 990 | AM_CONDITIONAL(USE_LOAD_TESTS, test x$loadtest = xtrue) |
6b9290ff | 991 | AM_CONDITIONAL(USE_EAP_SIM, test x$eap_sim = xtrue) |
79a87846 | 992 | AM_CONDITIONAL(USE_EAP_SIM_FILE, test x$eap_sim_file = xtrue) |
6b9290ff MW |
993 | AM_CONDITIONAL(USE_EAP_IDENTITY, test x$eap_identity = xtrue) |
994 | AM_CONDITIONAL(USE_EAP_MD5, test x$eap_md5 = xtrue) | |
1caa265c | 995 | AM_CONDITIONAL(USE_EAP_GTC, test x$eap_gtc = xtrue) |
6b9290ff | 996 | AM_CONDITIONAL(USE_EAP_AKA, test x$eap_aka = xtrue) |
f98cdf7a | 997 | AM_CONDITIONAL(USE_EAP_MSCHAPV2, test x$eap_mschapv2 = xtrue) |
4a6b84a9 | 998 | AM_CONDITIONAL(USE_EAP_RADIUS, test x$eap_radius = xtrue) |
09d7ef26 | 999 | AM_CONDITIONAL(USE_KERNEL_NETLINK, test x$kernel_netlink = xtrue) |
1adaa02b | 1000 | AM_CONDITIONAL(USE_KERNEL_PFKEY, test x$kernel_pfkey = xtrue) |
ea625fab | 1001 | AM_CONDITIONAL(USE_KERNEL_KLIPS, test x$kernel_klips = xtrue) |
1ba62b55 MW |
1002 | |
1003 | dnl other options | |
1004 | dnl ============= | |
1005 | AM_CONDITIONAL(USE_SMARTCARD, test x$smartcard = xtrue) | |
1006 | AM_CONDITIONAL(USE_CISCO_QUIRKS, test x$cisco_quirks = xtrue) | |
1007 | AM_CONDITIONAL(USE_LEAK_DETECTIVE, test x$leak_detective = xtrue) | |
02140125 | 1008 | AM_CONDITIONAL(USE_LOCK_PROFILER, test x$lock_profiler = xtrue) |
6b9290ff MW |
1009 | AM_CONDITIONAL(USE_NAT_TRANSPORT, test x$nat_transport = xtrue) |
1010 | AM_CONDITIONAL(USE_VENDORID, test x$vendor_id = xtrue) | |
1011 | AM_CONDITIONAL(USE_XAUTH_VID, test x$xauth_vid = xtrue) | |
1012 | AM_CONDITIONAL(USE_DUMM, test x$dumm = xtrue) | |
1013 | AM_CONDITIONAL(USE_FAST, test x$fast = xtrue) | |
1014 | AM_CONDITIONAL(USE_MANAGER, test x$manager = xtrue) | |
1015 | AM_CONDITIONAL(USE_ME, test x$me = xtrue) | |
1016 | AM_CONDITIONAL(USE_INTEGRITY_TEST, test x$integrity_test = xtrue) | |
1017 | AM_CONDITIONAL(USE_SELF_TEST, test x$self_test = xtrue) | |
eb3e2705 | 1018 | AM_CONDITIONAL(USE_CAPABILITIES, test x$capabilities = xlibcap) |
6b9290ff | 1019 | AM_CONDITIONAL(USE_PLUTO, test x$pluto = xtrue) |
6905f794 | 1020 | AM_CONDITIONAL(USE_THREADS, test x$threads = xtrue) |
6b9290ff MW |
1021 | AM_CONDITIONAL(USE_CHARON, test x$charon = xtrue) |
1022 | AM_CONDITIONAL(USE_TOOLS, test x$tools = xtrue) | |
4985ad6e | 1023 | AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$pluto = xtrue -o x$tools = xtrue) |
6b9290ff | 1024 | AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue) |
d25ce370 | 1025 | AM_CONDITIONAL(USE_VSTR, test x$vstr = xtrue) |
f2c2d395 | 1026 | |
9e72d3bc MW |
1027 | dnl ============================== |
1028 | dnl set global definitions | |
1029 | dnl ============================== | |
1030 | ||
1031 | if test x$me = xtrue; then | |
1032 | AC_DEFINE(ME) | |
1033 | fi | |
eb3e2705 MW |
1034 | if test x$capabilities = xlibcap; then |
1035 | AC_DEFINE(CAPABILITIES) | |
1036 | fi | |
9e72d3bc | 1037 | |
f2c2d395 MW |
1038 | dnl ============================== |
1039 | dnl build Makefiles | |
1040 | dnl ============================== | |
1041 | ||
1042 | AC_OUTPUT( | |
1043 | Makefile | |
1044 | src/Makefile | |
04a7b6d8 | 1045 | src/include/Makefile |
f2c2d395 | 1046 | src/libstrongswan/Makefile |
552cc11b MW |
1047 | src/libstrongswan/plugins/aes/Makefile |
1048 | src/libstrongswan/plugins/des/Makefile | |
1e0d1ae2 | 1049 | src/libstrongswan/plugins/md4/Makefile |
552cc11b MW |
1050 | src/libstrongswan/plugins/md5/Makefile |
1051 | src/libstrongswan/plugins/sha1/Makefile | |
1052 | src/libstrongswan/plugins/sha2/Makefile | |
1053 | src/libstrongswan/plugins/fips_prf/Makefile | |
1054 | src/libstrongswan/plugins/gmp/Makefile | |
6a365f07 | 1055 | src/libstrongswan/plugins/random/Makefile |
552cc11b | 1056 | src/libstrongswan/plugins/hmac/Makefile |
27d04e05 | 1057 | src/libstrongswan/plugins/xcbc/Makefile |
552cc11b | 1058 | src/libstrongswan/plugins/x509/Makefile |
affd7a90 | 1059 | src/libstrongswan/plugins/pubkey/Makefile |
552cc11b MW |
1060 | src/libstrongswan/plugins/curl/Makefile |
1061 | src/libstrongswan/plugins/ldap/Makefile | |
1062 | src/libstrongswan/plugins/mysql/Makefile | |
1063 | src/libstrongswan/plugins/sqlite/Makefile | |
36d62fac | 1064 | src/libstrongswan/plugins/padlock/Makefile |
17353034 | 1065 | src/libstrongswan/plugins/openssl/Makefile |
21c95463 | 1066 | src/libstrongswan/plugins/agent/Makefile |
af165431 | 1067 | src/libstrongswan/fips/Makefile |
f2c2d395 MW |
1068 | src/libcrypto/Makefile |
1069 | src/libfreeswan/Makefile | |
1070 | src/pluto/Makefile | |
1071 | src/whack/Makefile | |
1072 | src/charon/Makefile | |
552cc11b MW |
1073 | src/charon/plugins/eap_aka/Makefile |
1074 | src/charon/plugins/eap_identity/Makefile | |
1075 | src/charon/plugins/eap_md5/Makefile | |
1caa265c | 1076 | src/charon/plugins/eap_gtc/Makefile |
552cc11b | 1077 | src/charon/plugins/eap_sim/Makefile |
79a87846 | 1078 | src/charon/plugins/eap_sim_file/Makefile |
f98cdf7a | 1079 | src/charon/plugins/eap_mschapv2/Makefile |
4a6b84a9 | 1080 | src/charon/plugins/eap_radius/Makefile |
507f26f6 | 1081 | src/charon/plugins/kernel_netlink/Makefile |
1adaa02b | 1082 | src/charon/plugins/kernel_pfkey/Makefile |
ea625fab | 1083 | src/charon/plugins/kernel_klips/Makefile |
6b9290ff | 1084 | src/charon/plugins/smp/Makefile |
552cc11b | 1085 | src/charon/plugins/sql/Makefile |
5b7ec6d4 | 1086 | src/charon/plugins/medsrv/Makefile |
782db7ed | 1087 | src/charon/plugins/medcli/Makefile |
6dbce9c8 | 1088 | src/charon/plugins/nm/Makefile |
61c46386 | 1089 | src/charon/plugins/uci/Makefile |
552cc11b | 1090 | src/charon/plugins/stroke/Makefile |
ad3af574 | 1091 | src/charon/plugins/updown/Makefile |
adc25ec2 MW |
1092 | src/charon/plugins/attr/Makefile |
1093 | src/charon/plugins/resolv_conf/Makefile | |
552cc11b | 1094 | src/charon/plugins/unit_tester/Makefile |
0fd6e955 | 1095 | src/charon/plugins/load_tester/Makefile |
f2c2d395 MW |
1096 | src/stroke/Makefile |
1097 | src/ipsec/Makefile | |
1098 | src/starter/Makefile | |
1099 | src/_updown/Makefile | |
1100 | src/_updown_espmark/Makefile | |
1101 | src/_copyright/Makefile | |
1102 | src/openac/Makefile | |
1103 | src/scepclient/Makefile | |
f2d6355e | 1104 | src/dumm/Makefile |
552cc11b | 1105 | src/libfast/Makefile |
b8c7453a | 1106 | src/manager/Makefile |
9529fb68 | 1107 | src/medsrv/Makefile |
39b7780d | 1108 | scripts/Makefile |
9ee1111d | 1109 | testing/Makefile |
f2c2d395 | 1110 | ) |