Ignore:
Timestamp:
Jan 10, 2017, 5:21:45 PM (7 years ago)
Author:
djay
Message:

Return an ExceptionReport? in case any inpts failed to be downloaded.

File:
1 edited

Legend:

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

    r794 r797  
    422422        if test  "$PYTHON_PATH" = "yes"
    423423        then
    424                 # PHP was not specified, so search within the current path
     424                # PYTHON was not specified, so search within the current path
    425425                PYTHONCFG_PATH=`which python${PYTHON_VERS}-config`
    426426                if test -z "${PYTHONCFG_PATH}" ; then
     
    529529        [PHP_PATH="$withval"; PHP_ENABLED="-DUSE_PHP"], [PHP_ENABLED=""])
    530530
     531AC_ARG_WITH([php-version],
     532        [AS_HELP_STRING([--with-phpvers=NUM], [To use a specific php version])],
     533        [PHP_VERS="$withval"], [PHP_VERS=""])
     534
    531535
    532536if test -z "$PHP_ENABLED"
     
    535539else
    536540        PHPCONFIG="$PHP_PATH/bin/php-config"
    537         PHP_FILE="service_internal_php.o"
     541        if test "x$PHP_VERS" = "x7"
     542        then
     543                PHP_FILE="service_internal_php7.o"
     544        else
     545                PHP_FILE="service_internal_php.o"
     546        fi
    538547        if test  "$PHP_PATH" = "yes"
    539548        then
     
    545554
    546555        # Extract the linker and include flags
    547         PHP_LDFLAGS="-L/`$PHPCONFIG --prefix`/lib -lphp5"
     556        if test "x$PHP_VERS" = "x7"
     557        then
     558                PHP_LDFLAGS="-L/`$PHPCONFIG --prefix`/lib64 -lphp7"
     559        else
     560                PHP_LDFLAGS="-L/`$PHPCONFIG --prefix`/lib -lphp5"
     561        fi
    548562        PHP_CPPFLAGS=`$PHPCONFIG --includes`
    549563
     
    558572        LIBS="$PHP_LDFLAGS"
    559573        # Shouldn't we get php here rather than php5 :) ??
    560         AC_CHECK_LIB([php5], [call_user_function], [], [AC_MSG_ERROR([could not find libphp])], [])
     574        if test "x$PHP_VERS" = "x7"
     575        then
     576                echo $LIBS
     577                #AC_CHECK_LIB([php7], [call_user_function], [], [AC_MSG_ERROR([could not find libphp])], [])
     578        else
     579                AC_CHECK_LIB([php5], [call_user_function], [], [AC_MSG_ERROR([could not find libphp])], [])
     580        fi
    561581        LIBS="$LIBS_SAVE"
    562582        AC_SUBST([PHP_CPPFLAGS])
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