Changeset 284 for trunk/zoo-kernel


Ignore:
Timestamp:
Aug 1, 2011, 7:08:27 PM (13 years ago)
Author:
djay
Message:

Add the ZOOMakefile.opts file used from service providers' Makefiles.

Location:
trunk/zoo-kernel
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-kernel/Makefile.in

    r114 r284  
    22ifeq ($(OS),Darwin)
    33        MACOS_LD_FLAGS=-lintl -framework SystemConfiguration -framework CoreFoundation
    4         MACOS_CFLAGS=-arch i386 -arch ppc -arch x86_64
     4        MACOS_CFLAGS=-arch $(shell uname -m)
    55endif
    66
  • trunk/zoo-kernel/configure.ac

    r276 r284  
    122122        [PYTHON_PATH="$withval"; PYTHON_ENABLED="-DUSE_PYTHON"], [PYTHON_ENABLED=""])
    123123
     124AC_ARG_WITH([python-version],
     125        [AS_HELP_STRING([--with-python-version=NUMBER], [To enable python support using a speficific version of python])],
     126        [PYTHON_VERS="$withval"], [PYTHON_VERS=""])
     127
    124128
    125129if test -z "$PYTHON_ENABLED"
     
    127131        PYTHON_FILE=""
    128132else
    129         PYTHONCONFIG="$PYTHON_PATH/bin/python-config"
     133        PYTHONCONFIG="$PYTHON_PATH/bin/python${PYTHON_VERS}-config"
    130134        PYTHON_FILE="service_internal_python.o"
    131135        if test  "$PYTHON_PATH" = "yes"
    132136        then
    133137                # PHP was not specified, so search within the current path
    134                 AC_PATH_PROG([PYTHONCONFIG], [python-config])
    135         else
    136                 PYTHONCONFIG="$PYTHON_PATH/bin/python-config"
     138                AC_PATH_PROG([PYTHONCONFIG], [python${PYTHON_VERS}-config])
     139        else
     140                PYTHONCONFIG="$PYTHON_PATH/bin/python${PYTHON_VERS}-config"
    137141        fi
    138142
     
    366370
    367371AC_CONFIG_FILES([Makefile])
    368 #AC_CONFIG_FILES([ZOOMakefile.opts])
     372AC_CONFIG_FILES([ZOOMakefile.opts])
    369373AC_OUTPUT
  • trunk/zoo-kernel/service.h

    r282 r284  
    502502    map* tmpMap=getMap(tmp,key);
    503503    if(tmpMap==NULL){
    504       addToMap(tmp,key,value);
     504      if(tmp!=NULL)
     505        addToMap(tmp,key,value);
     506      else
     507        tmp=createMap(key,value);
    505508      tmpMap=getMap(tmp,key);
    506509    }
  • trunk/zoo-kernel/service_internal.c

    r283 r284  
    11171117      if(hasDefault!=true && strncmp(type,"Input",5)==0)
    11181118        xmlAddChild(nc3,xmlNewNode(ns_ows, BAD_CAST "AnyValue"));
    1119       xmlFreeNodeList(nc5);
    1120       xmlFreeNodeList(nc4);
    11211119    }
    11221120   
     
    24162414}
    24172415
     2416int errorException(maps *m, const char *message, const char *errorcode)
     2417{
     2418  map* errormap = createMap("text", message);
     2419  addToMap(errormap,"code", errorcode);
     2420  printExceptionReportResponse(m,errormap);
     2421  freeMap(&errormap);
     2422  free(errormap);
     2423  return -1;
     2424}
  • trunk/zoo-kernel/service_internal.h

    r281 r284  
    121121  char* addDefaultValues(maps**,elements*,maps*,int);
    122122
    123   /*defined in zoo_loader.c*/
    124123  int errorException(maps *m, const char *message, const char *errorcode);
    125124
  • trunk/zoo-kernel/zoo_loader.c

    r280 r284  
    5454
    5555using namespace std;
    56 
    57 /* ************************************************************************* */
    58 
    59 int errorException(maps *m, const char *message, const char *errorcode)
    60 {
    61   map* errormap = createMap("text", message);
    62   addToMap(errormap,"code", errorcode);
    63   printExceptionReportResponse(m,errormap);
    64   freeMap(&errormap);
    65   free(errormap);
    66   return -1;
    67 }
    68 
    69 /* ************************************************************************* */
    70 
    7156
    7257#define TRUE 1
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png