Ignore:
Timestamp:
Apr 23, 2014, 3:05:01 AM (10 years ago)
Author:
djay
Message:

Add the optional YAML ZCFG support #4 and the zcfg2yaml converter. Return error messages that enable the service provider to quickly identify the root cause of errors due to configuration file syntax #90. Fix logic in addMapToMap #91. Enable multiple range definition using default and supported blocks. Add the lastest revision number in version.h (available from Python ZOO-API as zoo.VERSION).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/configure.ac

    r459 r465  
    1414AC_CHECK_LIB([fl], [main])
    1515AC_CHECK_LIB([pthread], [main])
    16 AC_CHECK_LIB([fcgi], [main])
    1716AC_CHECK_LIB([ssl], [main])
    1817
     
    6867
    6968# ===========================================================================
     69# Detect if libyaml is available
     70# ===========================================================================
     71
     72AC_ARG_WITH([yaml],
     73        [AS_HELP_STRING([--with-yaml=PATH], [specify an alternative location for the fastcgi library])],
     74        [YAMLPATH="$withval"], [YAMLPATH=""])
     75
     76if test -z "$YAMLPATH"
     77then
     78        YAML_LDFLAGS=""
     79        YAML_CPPFLAGS=""
     80        YAML_FILE=""
     81        YAML_FILE1=""
     82else
     83
     84        # Extract the linker and include flags
     85        YAML_LDFLAGS="-L$YAMLPATH/lib -lyaml"
     86        YAML_CPPFLAGS="-I$YAMLPATH/include -DYAML"
     87        YAML_FILE="service_yaml.o"
     88        YAML_FILE1="zcfg2yaml"
     89       
     90        # Check headers file
     91        CPPFLAGS_SAVE="$CPPFLAGS"
     92        CPPFLAGS="$YAML_CPPFLAGS"
     93        LDFLAGS_SAVE="$LDFLAGS"
     94        LDFLAGS="YAML_LDFLAGS"
     95        AC_CHECK_LIB([yaml], [yaml_parser_initialize,yaml_parser_set_input_file,yaml_parser_scan])
     96        AC_CHECK_HEADERS([yaml.h],
     97                 [], [AC_MSG_ERROR([could not find headers include related to YAML])])
     98
     99fi
     100AC_SUBST([YAML_CPPFLAGS])
     101AC_SUBST([YAML_LDFLAGS])
     102AC_SUBST([YAML_FILE])
     103AC_SUBST([YAML_FILE1])
     104
     105# ===========================================================================
    70106# Detect if fastcgi is available
    71107# ===========================================================================
     
    73109AC_ARG_WITH([fastcgi],
    74110        [AS_HELP_STRING([--with-fastcgi=PATH], [specify an alternative location for the fastcgi library])],
    75         [FCGIPATH="$withval"], [FCGIPATH=""])
     111        [FCGIPATH="$withval"], [FCGIPATH="/usr"])
    76112
    77113# Extract the linker and include flags
     
    82118CPPFLAGS_SAVE="$CPPFLAGS"
    83119CPPFLAGS="$FCGI_CPPFLAGS"
     120LDFLAGS_SAVE="LDFLAGS"
     121LDFLAGS="$FCGI_LDFLAGS"
     122AC_CHECK_LIB([fcgi], [main])
    84123AC_CHECK_HEADERS([fcgi_stdio.h],
    85124                 [], [AC_MSG_ERROR([could not find headers include related to fastcgi])])
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