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