Ignore:
Timestamp:
Mar 19, 2018, 3:53:31 PM (6 years ago)
Author:
djay
Message:

Add support for R language and its documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/configure.ac

    r867 r873  
    523523AC_SUBST([MS_FILE])
    524524AC_SUBST([MS_VERSION])
     525
     526# ===========================================================================
     527# Detect if R is installed
     528# ===========================================================================
     529
     530AC_ARG_WITH([r],
     531        [AS_HELP_STRING([--with-r=PATH], [To enable python support or Specifies an alternative directory for R installation,  disabled by default])],
     532        [R_PATH="$withval"; R_ENABLED="-DUSE_R"], [R_ENABLED=""])
     533
     534if test -z "$R_ENABLED"
     535then
     536        R_FILE=""
     537else
     538        R_FILE="service_internal_r.o"
     539        # Extract the linker and include flags
     540        R_LDFLAGS="-L$R_PATH/lib/ -lR"
     541        R_CPPFLAGS="-I$R_PATH/include/"
     542
     543        # Check headers file
     544        CPPFLAGS_SAVE="$CPPFLAGS"
     545        CPPFLAGS="$R_CPPFLAGS"
     546        AC_CHECK_HEADERS([RInternals.h],
     547                 [], [AC_MSG_ERROR([could not find headers include related to R])])
     548
     549        # Ensure we can link against libphp
     550        #LIBS_SAVE="$LIBS"
     551        #LIBS="$R_LDFLAGS"
     552        #AC_CHECK_LIB([$LIBS], [R_tryEval], [], [AC_MSG_ERROR([could not find libR])], [])
     553        #LIBS="$LIBS_SAVE"
     554fi
     555
     556AC_SUBST([R_CPPFLAGS])
     557AC_SUBST([R_LDFLAGS])
     558AC_SUBST([R_ENABLED])
     559AC_SUBST([R_FILE])
     560
    525561
    526562# ===========================================================================
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