Changeset 794 for trunk/zoo-project/zoo-kernel/configure.ac
- Timestamp:
- Dec 27, 2016, 6:34:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/configure.ac
r784 r794 637 637 638 638 # =========================================================================== 639 # Detect if mono is installed 640 # =========================================================================== 641 642 AC_ARG_WITH([mono], 643 [AS_HELP_STRING([--with-mono=PATH], [To enable mono support, specify the path to find pkg-config, disabled by default])], 644 [MONOHOME="$withval"; MONO_ENABLED="-DUSE_MONO"], [MONO_ENABLED=""]) 645 646 if test -z "$MONO_ENABLED" 647 then 648 MONO_FILE="" 649 else 650 MONO_FILE="service_internal_mono.o" 651 if test "x$MONOHOME" = "x"; 652 then 653 MONOHOME="/usr" 654 fi 655 if test "x$MONOHOME" = "xyes"; 656 then 657 MONOHOME="/usr" 658 fi 659 660 # Extract the linker and include flags 661 MONO_CFLAGS=`$MONOHOME/bin/pkg-config --cflags mono-2` 662 MONO_LDFLAGS=`$MONOHOME/bin/pkg-config --libs mono-2` 663 664 AC_LANG([C++]) 665 echo $JAVA_CPPFLAGS 666 # Check headers file (second time we check that in fact) 667 CPPFLAGS_SAVE="$CFLAGS" 668 CPPFLAGS="$MONO_CFLAGS" 669 AC_CHECK_HEADERS([mono/jit/jit.h], 670 [], [AC_MSG_ERROR([could not find jit.h file])]) 671 CPPFLAGS="$CPPFLAGS_SAVE" 672 # Ensure we can link against libmono-2.0 673 LIBS_SAVE="$LIBS" 674 LIBS="$MONO_LDFLAGS" 675 AC_CHECK_LIB([mono-2.0], [mono_runtime_invoke], [], [AC_MSG_ERROR([could not find libmono])], []) 676 LIBS="$LIBS_SAVE" 677 678 AC_SUBST([MONO_CFLAGS]) 679 AC_SUBST([MONO_LDFLAGS]) 680 fi 681 682 AC_SUBST([MONO_ENABLED]) 683 AC_SUBST([MONO_FILE]) 684 685 # =========================================================================== 639 686 # Detect if ruby is installed 640 687 # ===========================================================================
Note: See TracChangeset
for help on using the changeset viewer.