Changeset 1937
- Timestamp:
- 2001-02-09T14:59:29+13:00 (23 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/Makefile.in
r1910 r1937 25 25 ########################################################################### 26 26 27 USE_Z3950 = @USE_Z3950@ 28 ifeq ($(USE_Z3950), 1) 29 Z_CFLAGS=-DUSE_Z3950 30 else 31 Z_CFLAGS= 32 endif 33 27 34 AR = ar 28 35 CC = @CC@ 29 36 CPP = @CXX@ 30 37 #CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual 31 CCFLAGS = @CFLAGS@ 38 39 CCFLAGS = $(Z_CFLAGS) @CFLAGS@ 32 40 33 41 # YAZ kit for z39.50 … … 128 136 RECPTSOURCES = recptmain.cpp 129 137 130 LIBRARYSOURCES = nullproto.cpp z3950proto.cpp z3950server.cpp librarymain.cpp \ 131 zparse.tab.c parse.yy.c $(YAZDIR)/client/yaz_zclient.c 138 ifeq ($(USE_Z3950), 1) 139 Z_LIBSOURCES=z3950proto.cpp z3950server.cpp zparse.tab.c parse.yy.c $(YAZDIR)/client/yaz_zclient.c 140 else 141 Z_LIBSOURCES= 142 endif 143 144 LIBRARYSOURCES = nullproto.cpp librarymain.cpp $(Z_LIBSOURCES) 132 145 133 146 SOURCES = $(COMMONSOURCES) $(RECPTSOURCES) $(LIBRARYSOURCES) 134 147 148 149 ifeq ($(USE_Z3950), 1) 150 Z_COMOBJS=parse.yy.o 151 else 152 Z_COMOBJS= 153 endif 135 154 136 155 COMMONOBJECTS = receptionist.o cgiwrapper.o cgiargs.o action.o browserclass.o \ … … 143 162 hlistbrowserclass.o datelistbrowserclass.o invbrowserclass.o \ 144 163 pagedbrowserclass.o htmlbrowserclass.o phindbrowserclass.o \ 145 historydb.o parse.yy.ocollectoraction.o164 historydb.o $(Z_COMOBJS) collectoraction.o 146 165 147 166 RECPTOBJECTS = recptmain.o 148 167 149 LIBRARYOBJECTS = nullproto.o z3950proto.o z3950server.o librarymain.o \ 150 zparse.tab.o $(YAZDIR)/client/yaz_zclient.o 168 169 ifeq ($(USE_Z3950), 1) 170 Z_LIBOBJS=z3950proto.o z3950server.o zparse.tab.o $(YAZDIR)/client/yaz_zclient.o 171 else 172 Z_LIBOBJS= 173 endif 174 175 LIBRARYOBJECTS = nullproto.o librarymain.o $(Z_LIBOBJS) 151 176 152 177 OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(LIBRARYOBJECTS) … … 185 210 186 211 187 ## z39.50 stuff212 ## z39.50 rules 188 213 # Note! If USE_FASTCGI=1, yaz is still compiled and linked, but never 189 214 # called by librarymain.cpp. … … 228 253 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 229 254 255 230 256 ifneq ($(USE_FASTCGI), 1) 231 257 RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \ … … 249 275 250 276 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # 277 ifeq ($(USE_Z3950), 1) 278 Z_LIBYAZ_A=$(YAZDIR)/lib/libyaz.a 279 else 280 Z_LIBYAZ_A= 281 endif 282 251 283 252 284 ifneq ($(USE_FASTCGI), 1) … … 255 287 ../../packages/mg/src/text/libtextin.a \ 256 288 ../../packages/mg/lib/libmg.a \ 257 $( YAZDIR)/lib/libyaz.a\289 $(Z_LIBYAZ_A) \ 258 290 ../mgpp/text/libtextin.a \ 259 291 ../mgpp/lib/libmg.a … … 266 298 ../mgpp/text/libtextin.a \ 267 299 ../mgpp/lib/libmg.a \ 268 $( YAZDIR)/lib/libyaz.a300 $(Z_LIBYAZ_A) 269 301 endif 270 302 -
trunk/gsdl/src/recpt/librarymain.cpp
r1911 r1937 2 2 * 3 3 * librarymain.cpp -- 4 * Copyright (C) 1999 The New Z ealand Digital Library Project4 * Copyright (C) 1999 The New Zaland Digital Library Project 5 5 * 6 6 * A component of the Greenstone digital library software … … 29 29 #include "nullproto.h" 30 30 // z39.50 stuff - johnmcp 31 #if defined(USE_Z3950) 31 32 #include "z3950proto.h" 33 #endif 32 34 #include "collectserver.h" 33 35 #include "filter.h" … … 67 69 nullproto nproto; 68 70 collectset *cservers; 69 #ifndef __WIN32__ 71 #if defined(USE_Z3950) 72 /*#ifndef __WIN32__*/ 70 73 z3950proto zproto; 71 74 #endif … … 174 177 175 178 // z39.50 stuff - johnmcp 176 #ifndef __WIN32__ 179 #if defined(USE_Z3950) 180 /*#ifndef __WIN32__*/ 177 181 // add the z39.50 server information. Read in the file 178 182 // etc/recpt/z3950.cfg for list of servers and their databases. … … 181 185 z3950cfg = filename_cat (z3950cfg, "z3950.cfg"); 182 186 #ifdef USE_FASTCGI 183 // currently can't use z39.50 if fastcgi is in use 187 // currently can't use z39.50 if fastcgi used 188 #warning "Disabling z39.50 support as fastcgi is in use" 184 189 if (0) { 185 190 #else
Note:
See TracChangeset
for help on using the changeset viewer.