Changeset 1937


Ignore:
Timestamp:
2001-02-09T14:59:29+13:00 (23 years ago)
Author:
jrm21
Message:

z39.50 support is now disabled by default, enabled by configure script.

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/Makefile.in

    r1910 r1937  
    2525###########################################################################
    2626
     27USE_Z3950 = @USE_Z3950@
     28ifeq ($(USE_Z3950), 1)
     29Z_CFLAGS=-DUSE_Z3950
     30else
     31Z_CFLAGS=
     32endif
     33
    2734AR = ar
    2835CC = @CC@
    2936CPP = @CXX@
    3037#CCFLAGS = @CFLAGS@ -Wall -Wunused -pedantic -W -Woverloaded-virtual
    31 CCFLAGS = @CFLAGS@
     38
     39CCFLAGS = $(Z_CFLAGS) @CFLAGS@
    3240
    3341# YAZ kit for z39.50
     
    128136RECPTSOURCES = recptmain.cpp
    129137
    130 LIBRARYSOURCES = nullproto.cpp z3950proto.cpp z3950server.cpp librarymain.cpp \
    131         zparse.tab.c parse.yy.c $(YAZDIR)/client/yaz_zclient.c
     138ifeq ($(USE_Z3950), 1)
     139Z_LIBSOURCES=z3950proto.cpp z3950server.cpp zparse.tab.c parse.yy.c $(YAZDIR)/client/yaz_zclient.c
     140else
     141Z_LIBSOURCES=
     142endif
     143
     144LIBRARYSOURCES = nullproto.cpp librarymain.cpp $(Z_LIBSOURCES)
    132145
    133146SOURCES = $(COMMONSOURCES) $(RECPTSOURCES) $(LIBRARYSOURCES)
    134147
     148
     149ifeq ($(USE_Z3950), 1)
     150Z_COMOBJS=parse.yy.o
     151else
     152Z_COMOBJS=
     153endif
    135154
    136155COMMONOBJECTS = receptionist.o cgiwrapper.o cgiargs.o action.o browserclass.o \
     
    143162        hlistbrowserclass.o datelistbrowserclass.o invbrowserclass.o \
    144163        pagedbrowserclass.o htmlbrowserclass.o phindbrowserclass.o \
    145         historydb.o parse.yy.o collectoraction.o
     164        historydb.o $(Z_COMOBJS) collectoraction.o
    146165
    147166RECPTOBJECTS = recptmain.o
    148167
    149 LIBRARYOBJECTS = nullproto.o z3950proto.o z3950server.o librarymain.o \
    150         zparse.tab.o $(YAZDIR)/client/yaz_zclient.o
     168
     169ifeq ($(USE_Z3950), 1)
     170Z_LIBOBJS=z3950proto.o z3950server.o zparse.tab.o $(YAZDIR)/client/yaz_zclient.o
     171else
     172Z_LIBOBJS=
     173endif
     174
     175LIBRARYOBJECTS = nullproto.o librarymain.o $(Z_LIBOBJS)
    151176
    152177OBJECTS = $(COMMONOBJECTS) $(RECPTOBJECTS) $(LIBRARYOBJECTS)
     
    185210
    186211
    187 ## z39.50 stuff
     212## z39.50 rules
    188213# Note! If USE_FASTCGI=1, yaz is still compiled and linked, but never
    189214# called by librarymain.cpp.
     
    228253# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    229254
     255
    230256ifneq ($(USE_FASTCGI), 1)
    231257RECPT_OBJS = $(COMMONOBJECTS) $(RECPTOBJECTS) \
     
    249275
    250276# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
     277ifeq ($(USE_Z3950), 1)
     278Z_LIBYAZ_A=$(YAZDIR)/lib/libyaz.a
     279else
     280Z_LIBYAZ_A=
     281endif
     282
    251283
    252284ifneq ($(USE_FASTCGI), 1)
     
    255287    ../../packages/mg/src/text/libtextin.a \
    256288    ../../packages/mg/lib/libmg.a \
    257     $(YAZDIR)/lib/libyaz.a \
     289    $(Z_LIBYAZ_A) \
    258290    ../mgpp/text/libtextin.a \
    259291    ../mgpp/lib/libmg.a
     
    266298    ../mgpp/text/libtextin.a \
    267299    ../mgpp/lib/libmg.a \
    268     $(YAZDIR)/lib/libyaz.a
     300    $(Z_LIBYAZ_A)
    269301endif
    270302
  • trunk/gsdl/src/recpt/librarymain.cpp

    r1911 r1937  
    22 *
    33 * librarymain.cpp --
    4  * Copyright (C) 1999  The New Zealand Digital Library Project
     4 * Copyright (C) 1999  The New Zaland Digital Library Project
    55 *
    66 * A component of the Greenstone digital library software
     
    2929#include "nullproto.h"
    3030// z39.50 stuff - johnmcp
     31#if defined(USE_Z3950)
    3132#include "z3950proto.h"
     33#endif
    3234#include "collectserver.h"
    3335#include "filter.h"
     
    6769  nullproto    nproto;
    6870  collectset  *cservers;
    69 #ifndef __WIN32__
     71#if defined(USE_Z3950)
     72  /*#ifndef __WIN32__*/
    7073  z3950proto   zproto;
    7174#endif
     
    174177
    175178  // z39.50 stuff - johnmcp
    176 #ifndef __WIN32__
     179#if defined(USE_Z3950)
     180  /*#ifndef __WIN32__*/
    177181  // add the z39.50 server information. Read in the file
    178182  // etc/recpt/z3950.cfg for list of servers and their databases.
     
    181185  z3950cfg = filename_cat (z3950cfg, "z3950.cfg");
    182186#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"
    184189  if (0) {
    185190#else
Note: See TracChangeset for help on using the changeset viewer.