Changeset 520


Ignore:
Timestamp:
Oct 31, 2014, 2:59:25 PM (10 years ago)
Author:
david
Message:
  • check libxslt install
Location:
trunk/zoo-project/zoo-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/ZOOMakefile.opts.in

    r518 r520  
    1818XML2CFLAGS=@XML2_CPPFLAGS@
    1919XML2LDFLAGS=@XML2_LDFLAGS@
     20
     21XSLT_CFLAGS=@XSLT_CPPFLAGS@
     22XSLT_LDFLAGS=@XSLT_LDFLAGS@
    2023
    2124PYTHONCFLAGS=@PYTHON_CPPFLAGS@
  • trunk/zoo-project/zoo-kernel/configure.ac

    r518 r520  
    211211AC_SUBST([XML2_CPPFLAGS])
    212212AC_SUBST([XML2_LDFLAGS])
     213
     214
     215
     216# ===========================================================================
     217# Detect if libxslt is installed
     218# ===========================================================================
     219
     220AC_ARG_WITH([xsltconfig],
     221        [AS_HELP_STRING([--with-xsltconfig=FILE], [specify an alternative xslt-config file])],
     222        [XSLTCONFIG="$withval"], [XSLTCONFIG=""])
     223
     224if test "x$XSLTCONFIG" = "x"; then
     225        # XSLTCONFIG was not specified, so search within the current path
     226        AC_PATH_PROG([XSLTCONFIG], [xslt-config])
     227
     228        # If we couldn't find xslt-config, display a warning
     229        if test "x$XSLTCONFIG" = "x"; then
     230                AC_MSG_ERROR([could not find xslt-config from libxslt within the current path. You may need to try re-running configure with a --with-xtltconfig parameter.])
     231        fi
     232else
     233        # XSLTCONFIG was specified; display a message to the user
     234        if test "x$XSLTCONFIG" = "xyes"; then
     235                AC_MSG_ERROR([you must specify a parameter to --with-xsltconfig, e.g. --with-xsltconfig=/path/to/xslt-config])
     236        else
     237                if test -f $XSLTCONFIG; then
     238                        AC_MSG_RESULT([Using user-specified xslt-config file: $XSLTCONFIG])
     239                else
     240                        AC_MSG_ERROR([the user-specified xslt-config file $XSLTCONFIG does not exist])
     241                fi     
     242        fi
     243fi
     244
     245# Extract the linker and include flags
     246XSLT_LDFLAGS=`$XSLTCONFIG --libs`
     247XSLT_CPPFLAGS=`$XSLTCONFIG --cflags`
     248
     249# Check headers file
     250CPPFLAGS_SAVE="$CPPFLAGS"
     251CPPFLAGS="$XML2_CPPFLAGS"
     252AC_CHECK_HEADERS([libxslt/xslt.h libxslt/xsltInternals.h libxslt/transform.h libxslt/xsltutils.h],
     253                 [], [AC_MSG_ERROR([could not find headers include related to libxlst])])
     254
     255# Ensure we can link against libxslt
     256LIBS_SAVE="$LIBS"
     257LIBS="$XSLT_LDFLAGS"
     258
     259AC_SUBST([XSLT_CPPFLAGS])
     260AC_SUBST([XSLT_LDFLAGS])
     261
     262
     263
     264
    213265
    214266#============================================================================
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