defining ME globally, as we need it in plugins
authorMartin Willi <martin@strongswan.org>
Mon, 31 Mar 2008 15:01:43 +0000 (15:01 -0000)
committerMartin Willi <martin@strongswan.org>
Mon, 31 Mar 2008 15:01:43 +0000 (15:01 -0000)
configure.in
src/charon/Makefile.am

index 188ed8c..f1850a9 100644 (file)
@@ -615,6 +615,14 @@ AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$tools = xtrue)
 AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue)
 
 dnl ==============================
 AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue)
 
 dnl ==============================
+dnl  set global definitions
+dnl ==============================
+
+if test x$me = xtrue; then
+       AC_DEFINE(ME)
+fi
+
+dnl ==============================
 dnl  build Makefiles
 dnl ==============================
 
 dnl  build Makefiles
 dnl ==============================
 
index 886422a..b0404ea 100644 (file)
@@ -107,7 +107,6 @@ else
 endif
 
 if USE_ME
 endif
 
 if USE_ME
-  AM_CFLAGS += -DME
   charon_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \
   charon_SOURCES += encoding/payloads/endpoint_notify.c encoding/payloads/endpoint_notify.h \
     processing/jobs/initiate_mediation_job.c processing/jobs/initiate_mediation_job.h \
     processing/jobs/mediation_job.c processing/jobs/mediation_job.h \