Changeset 39925 in vbox
- Timestamp:
- Jan 31, 2012 8:44:17 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r39924 r39925 2437 2437 # note: no linking to LIB here, we do that explicitly in src/VBox/Runtime/Makefile.kmk to link 2438 2438 # libxml against VBoxRT 2439 2440 SDK_VBOX_LIBXSLT = .2441 #if1of ($(KBUILD_TARGET), os2 solaris win)2442 SDK_VBOX_LIBXSLT_INCS ?= $(PATH_ROOT)/src/libs/libxslt-1.1.222443 SDK_VBOX_LIBXSLT_LIBS ?= $(PATH_STAGE_LIB)/VBox-libxslt$(VBOX_SUFF_LIB)2444 SDK_VBOX_LIBXSLT_DEFS ?=2445 SDK_VBOX_LIBXSLT_DEFS.win += WIN32 _WINDOWS _MBCS _REENTRANT2446 #else if1of ($(KBUILD_TARGET), linux)2447 # SDK_VBOX_LIBXSLT_INCS ?=2448 # SDK_VBOX_LIBXSLT_LIBS ?=2449 # SDK_VBOX_LIBXSLT_CFLAGS ?= $(shell pkg-config libxslt-1.0 --cflags)2450 # SDK_VBOX_LIBXSLT_CXXFLAGS ?= $(SDK_VBOX_LIBXSLT_CFLAGS)2451 # SDK_VBOX_LIBXSLT_LDFLAGS ?= $(shell pkg-config libxslt-1.0 --libs)2452 #else2453 # SDK_VBOX_LIBXSLT_INCS ?=2454 # SDK_VBOX_LIBXSLT_LIBS ?= xslt2455 #endif2456 2439 2457 2440 SDK_VBOX_LIBPNG = . -
trunk/configure
r39547 r39925 717 717 718 718 # 719 # Check for libxslt, needed by VBoxSettings. For now we depend on 1.1.15,720 # as Solaris right now has no newer version and it definitely works.721 # 1.1.17 is available on Ubuntu Edgy which fulfils the minimal libxml2722 # requirement (2.6.26).723 #724 check_libxslt()725 {726 if [ -z "$BUILD_LIBXSLT" ]; then727 test_header libxslt728 if which_wrapper pkg-config > /dev/null; then729 libxslt_ver=`pkg-config libxslt --modversion 2>> $LOG`730 if [ $? -ne 0 ]; then731 log_failure "libxslt not found"732 fail733 else734 FLGXSLT=`pkg-config libxslt --cflags`735 INCXSLT=`strip_I "$FLGXSLT"`736 LIBXSLT=`pkg-config libxslt --libs`737 cat > $ODIR.tmp_src.cc << EOF738 #include <cstdio>739 #include <libxslt/xsltconfig.h>740 extern "C" int main(void)741 {742 printf("found version %s", LIBXSLT_DOTTED_VERSION);743 #if LIBXSLT_VERSION >= 10117744 printf(", OK.\n");745 return 0;746 #else747 printf(", expected version 1.1.17 or higher\n");748 return 1;749 #endif750 }751 EOF752 [ -n "$INCXSLT" ] && I_INCXSLT=`prefix_I "$INCXSLT"`753 if test_compile "$LIBXSLT $LIBPTHREAD $I_INCXSLT" xslt xslt; then754 if test_execute; then755 cnf_append "SDK_VBOX_LIBXSLT_INCS" "$INCXSLT"756 cnf_append "SDK_VBOX_LIBXSLT_LIBS" "`strip_l "$LIBXSLT"`"757 fi758 fi759 fi760 elif which_wrapper xslt-config; then761 libxslt_ver=`xslt-config --version`762 if [ $? -ne 0 ]; then763 log_failure "xslt-config not working"764 fail765 else766 log_success "found version $libxslt_ver"767 FLGXSLT=`xslt-config --cflags`768 INCXSLT=`strip_I "$FLGXSLT"`769 LIBXSLT=`xslt-config --libs`770 cat > $ODIR.tmp_src.cc << EOF771 #include <cstdio>772 #include <libxslt/xsltconfig.h>773 extern "C" int main(void)774 {775 printf("found version %s", LIBXSLT_DOTTED_VERSION);776 #if LIBXSLT_VERSION >= 10117777 printf(", OK.\n");778 return 0;779 #else780 printf(", expected version 1.1.17 or higher\n");781 return 1;782 #endif783 }784 EOF785 [ -n "$INCXSLT" ] && I_INCXSLT=`prefix_I "$INCXSLT"`786 if test_compile "$LIBXSLT $LIBPTHREAD $I_INCXSLT" xslt xslt; then787 if test_execute; then788 cnf_append "SDK_VBOX_LIBXSLT_INCS" "$INCXSLT"789 cnf_append "SDK_VBOX_LIBXSLT_LIBS" "`strip_l "$LIBXSLT"`"790 fi791 fi792 fi793 else794 log_failure "neither pkg-config nor xslt-config found"795 fail796 fi797 fi798 }799 800 801 #802 719 # Check for libIDL, needed by xpcom 803 720 # … … 2188 2105 --disable-hardening don't be strict about /dev/vboxdrv access 2189 2106 --build-libxml2 build libxml2 from sources 2190 --build-libxslt build libxslt from sources2191 2107 EOF 2192 2108 [ $OSE -eq 0 ] && cat << EOF … … 2378 2294 --build-libxml2) 2379 2295 BUILD_LIBXML2=1 2380 ;;2381 --build-libxslt)2382 BUILD_LIBXSLT=12383 2296 ;; 2384 2297 --build-libssl) … … 2552 2465 [ "$OS" != "darwin" ] && check_pthread 2553 2466 check_libxml2 2554 [ $WITH_XPCOM -eq 1 ] && check_libxslt2555 2467 [ $WITH_LIBIDL -eq 1 ] && check_libidl 2556 2468 check_ssl -
trunk/src/libs/Makefile.kmk
r39924 r39925 69 69 endif 70 70 71 ifeq ($(SDK_VBOX_LIBXSLT_INCS),$(PATH_ROOT)/src/libs/libxslt-1.1.22)72 include $(PATH_SUB_CURRENT)/libxslt-1.1.22/Makefile.kmk73 endif74 75 71 # FFmpeg for test videos. 76 72 if defined(VBOX_WITH_FFMPEG) && !defined(VBOX_OSE) && !defined(VBOX_ONLY_DOCS) && !defined(VBOX_WITH_SDK)
Note:
See TracChangeset
for help on using the changeset viewer.