change gsoap version detection to work also with gsoap 2.7.1
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 25 Apr 2005 15:37:59 +0000 (15:37 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 25 Apr 2005 15:37:59 +0000 (15:37 +0000)
org.glite.jp.primary/Makefile
org.glite.jp.primary/src/bones_server.c
org.glite.jp.primary/src/jptype_map.h

index b6070d4..e2f1c60 100644 (file)
@@ -49,10 +49,6 @@ is_prefix:=jpis_
 
 plugins:=glite-jp-tags.la
 
-gsoap_version=`${gsoap_prefix}/bin/soapcpp2 -version 2>&1 | cut -d' ' -f4 | perl -F\\\\. -nae '$$F[2] =~ s/\D*$$//; print $$F[2]+100*$$F[1]+10000*$$F[0]'`
-
-CFLAGS+=-DGSOAP_VERSION=${gsoap_version}
-
 HDRS_I=file_plugin.h
 HDRS_S=builtin_plugins.h backend.h
 
@@ -166,3 +162,10 @@ glite-jp-tags.la: tags_plugin.lo
 
 %.lo: %.c
        ${LTCOMPILE} -o $@ -c $<
+
+soap_ops.o: soap_version.h
+
+soap_version.h:
+       ${gsoap_prefix}/bin/soapcpp2 /dev/null
+       perl -ne '$$. == 2 && /.*([0-9])\.([0-9])\.([0-9]).*/ && printf "#define GSOAP_VERSION %d%02d%02d\n",$$1,$$2,$$3' soapH.h >$@
+       -rm soapC.cpp soapH.h soapStub.h soapClient.cpp soapServer.cpp soapClientLib.cpp soapServerLib.cpp 
index 1a8cef3..0a54d8e 100644 (file)
@@ -15,7 +15,7 @@
 #include "backend.h"
 #include "file_plugin.h"
 
-
+#include "soap_version.h"
 #include "jpps_H.h"
 
 #define CONN_QUEUE     20
@@ -246,6 +246,7 @@ static int request(int conn,struct timeval *to,void *data)
        }
 
        glite_jp_run_deferred(ctx);
+       return 0;
 }
 
 static int reject(int conn)
index 6df0828..a6f97ba 100644 (file)
@@ -1,3 +1,5 @@
+#include "soap_version.h"
+
 #if GSOAP_VERSION >= 20700
 #define INPUT_SANDBOX  jptype__UploadClass__INPUT_SANDBOX
 #define OUTPUT_SANDBOX jptype__UploadClass__OUTPUT_SANDBOX