| | 616 | # Check for libxml2, needed by xpcom |
|---|
| | 617 | # |
|---|
| | 618 | check_libxml2() |
|---|
| | 619 | { |
|---|
| | 620 | test_header libxml2 |
|---|
| | 621 | |
|---|
| | 622 | if which_wrapper pkg-config > /dev/null; then |
|---|
| | 623 | libxml2_ver=`pkg-config libxml-2.0 --modversion 2>> $LOG` |
|---|
| | 624 | if [ $? -ne 0 ]; then |
|---|
| | 625 | log_failure "not found" |
|---|
| | 626 | fail |
|---|
| | 627 | else |
|---|
| | 628 | log_success "found version $libxml2_ver" |
|---|
| | 629 | cnf_append "SDK_VBOX_LIBXML2_CFLAGS" "`pkg-config libxml-2.0 --cflags`" |
|---|
| | 630 | cnf_append "SDK_VBOX_LIBXML2_LIBS" "`pkg-config libxml-2.0 --libs`" |
|---|
| | 631 | fi |
|---|
| | 632 | elif which_wrapper xml2-config; then |
|---|
| | 633 | libxml2_ver=`xml2-config --version` |
|---|
| | 634 | if [ $? -ne 0 ]; then |
|---|
| | 635 | log_failure "not found" |
|---|
| | 636 | fail |
|---|
| | 637 | else |
|---|
| | 638 | log_success "found version $libxml2_ver" |
|---|
| | 639 | cnf_append "SDK_VBOX_LIBXML2_CFLAGS" "`pkg-config libxml-2.0 --cflags`" |
|---|
| | 640 | cnf_append "SDK_VBOX_LIBXML2_LIBS" "`pkg-config libxml-2.0 --libs`" |
|---|
| | 641 | fi |
|---|
| | 642 | else |
|---|
| | 643 | log_failure "neither pkg-config nor xml2-config found" |
|---|
| | 644 | fail |
|---|
| | 645 | fi |
|---|
| | 646 | } |
|---|
| | 647 | |
|---|
| | 648 | # |
|---|