Changeset 873 for branches/prototype-v0/zoo-project/zoo-kernel/configure.ac
- Timestamp:
- Mar 19, 2018, 3:53:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/configure.ac
r867 r873 523 523 AC_SUBST([MS_FILE]) 524 524 AC_SUBST([MS_VERSION]) 525 526 # =========================================================================== 527 # Detect if R is installed 528 # =========================================================================== 529 530 AC_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 534 if test -z "$R_ENABLED" 535 then 536 R_FILE="" 537 else 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" 554 fi 555 556 AC_SUBST([R_CPPFLAGS]) 557 AC_SUBST([R_LDFLAGS]) 558 AC_SUBST([R_ENABLED]) 559 AC_SUBST([R_FILE]) 560 525 561 526 562 # ===========================================================================
Note: See TracChangeset
for help on using the changeset viewer.