Ignore:
Timestamp:
Apr 1, 2014, 11:32:29 PM (10 years ago)
Author:
djay
Message:

Initial introduction of Value and Range in AllowedValues?, update zcfg documentation. Return valid Status code when returning ExceptionRepport?.

File:
1 edited

Legend:

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

    r435 r459  
    6666AC_SUBST([GDAL_CFLAGS])
    6767AC_SUBST([GDAL_LIBS])
     68
     69# ===========================================================================
     70# Detect if fastcgi is available
     71# ===========================================================================
     72
     73AC_ARG_WITH([fastcgi],
     74        [AS_HELP_STRING([--with-fastcgi=PATH], [specify an alternative location for the fastcgi library])],
     75        [FCGIPATH="$withval"], [FCGIPATH=""])
     76
     77# Extract the linker and include flags
     78FCGI_LDFLAGS="-L$FCGIPATH/lib"
     79FCGI_CPPFLAGS="-I$FCGIPATH/include"
     80
     81# Check headers file
     82CPPFLAGS_SAVE="$CPPFLAGS"
     83CPPFLAGS="$FCGI_CPPFLAGS"
     84AC_CHECK_HEADERS([fcgi_stdio.h],
     85                 [], [AC_MSG_ERROR([could not find headers include related to fastcgi])])
     86
     87AC_SUBST([FCGI_CPPFLAGS])
     88AC_SUBST([FCGI_LDFLAGS])
     89
     90# ===========================================================================
     91# Detect if proj is installed
     92# ===========================================================================
     93
     94AC_ARG_WITH([proj],
     95        [AS_HELP_STRING([--with-proj=PATH], [specify an alternative location for PROJ4 setup])],
     96        [PROJPATH="$withval"], [PROJPATH=""])
     97
     98# Extract the linker and include flags
     99PROJ_LDFLAGS="-L$PROJPATH/lib"
     100PROJ_CPPFLAGS="-I$PROJPATH/include"
     101
     102# Check headers file
     103CPPFLAGS_SAVE="$CPPFLAGS"
     104CPPFLAGS="$PROJ_CPPFLAGS"
     105AC_CHECK_HEADERS([proj_api.h],
     106                 [], [AC_MSG_ERROR([could not find headers include related to PROJ4])])
     107
     108AC_SUBST([PROJ_CPPFLAGS])
     109AC_SUBST([PROJ_LDFLAGS])
    68110
    69111# ===========================================================================
     
    154196
    155197# ===========================================================================
     198# Detect if ruby is installed
     199# ===========================================================================
     200AC_ARG_WITH([ruby],
     201        [AS_HELP_STRING([--with-ruby=PATH], [To enable ruby support or specify an alternative directory for ruby installation,  disabled by default])],
     202        [RUBY_PATH="$withval"; RUBY_ENABLED="-DUSE_RUBY"], [RUBY_ENABLED=""])
     203
     204AC_ARG_WITH([rvers],
     205        [AS_HELP_STRING([--with-rvers=NUM], [To use a specific ruby version])],
     206        [RUBY_VERS="$withval"], [RUBY_VERS=""])
     207
     208
     209if test -z "$RUBY_ENABLED"
     210then
     211        RUBY_FILE=""
     212else
     213        RUBY_FILE="service_internal_ruby.o"
     214
     215        # Extract the linker and include flags
     216        RUBY_LDFLAGS="-lruby"
     217        RUBY_CPPFLAGS="-I$RUBY_PATH -I$RUBY_PATH/x86_64-darwin13.0/ -DZRUBY_VERSION=$RUBY_VERS"
     218
     219        # Check headers file
     220        CPPFLAGS_SAVE="$CPPFLAGS"
     221        CPPFLAGS="$RUBY_CPPFLAGS"
     222        AC_CHECK_HEADERS([ruby.h],
     223                 [], [AC_MSG_ERROR([could not find headers include related to libruby])])
     224
     225        # Ensure we can link against libphp
     226        LIBS_SAVE="$LIBS"
     227        LIBS="$RUBY_LDFLAGS"
     228        # AC_CHECK_LIB([lruby], [PyObject_CallObject], [], [AC_MSG_ERROR([could not find libpython])], [])
     229        AC_SUBST([RUBY_CPPFLAGS])
     230        AC_SUBST([RUBY_LDFLAGS])
     231fi
     232
     233AC_SUBST([RUBY_ENABLED])
     234AC_SUBST([RUBY_FILE])
     235
     236# ===========================================================================
    156237# Detect if python is installed
    157238# ===========================================================================
     
    187268        # Extract the linker and include flags
    188269        PYTHON_LDFLAGS=`$PYTHONCONFIG --ldflags`
    189         PYTHON_CPPFLAGS=`$PYTHONCONFIG --cflags`
     270        PYTHON_CPPFLAGS=`$PYTHONCONFIG --includes`
    190271
    191272        # Check headers file
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