| | 6559 | |
|---|
| | 6560 | fi |
|---|
| | 6561 | |
|---|
| | 6562 | if test -n "$enable_p7"; then |
|---|
| | 6563 | |
|---|
| | 6564 | if test -d /usr/include/libxml2; then |
|---|
| | 6565 | CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2" |
|---|
| | 6566 | fi |
|---|
| | 6567 | |
|---|
| | 6568 | |
|---|
| | 6569 | for ac_header in libxml/parser.h |
|---|
| | 6570 | do |
|---|
| | 6571 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|---|
| | 6572 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 6573 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| | 6574 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| | 6575 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 6576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6577 | fi |
|---|
| | 6578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 6579 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 6580 | else |
|---|
| | 6581 | # Is the header compilable? |
|---|
| | 6582 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|---|
| | 6583 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|---|
| | 6584 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6585 | /* confdefs.h. */ |
|---|
| | 6586 | _ACEOF |
|---|
| | 6587 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6588 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6589 | /* end confdefs.h. */ |
|---|
| | 6590 | $ac_includes_default |
|---|
| | 6591 | #include <$ac_header> |
|---|
| | 6592 | _ACEOF |
|---|
| | 6593 | rm -f conftest.$ac_objext |
|---|
| | 6594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|---|
| | 6595 | (eval $ac_compile) 2>conftest.er1 |
|---|
| | 6596 | ac_status=$? |
|---|
| | 6597 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 6598 | rm -f conftest.er1 |
|---|
| | 6599 | cat conftest.err >&5 |
|---|
| | 6600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6601 | (exit $ac_status); } && |
|---|
| | 6602 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| | 6603 | || test ! -s conftest.err' |
|---|
| | 6604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6605 | (eval $ac_try) 2>&5 |
|---|
| | 6606 | ac_status=$? |
|---|
| | 6607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6608 | (exit $ac_status); }; } && |
|---|
| | 6609 | { ac_try='test -s conftest.$ac_objext' |
|---|
| | 6610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6611 | (eval $ac_try) 2>&5 |
|---|
| | 6612 | ac_status=$? |
|---|
| | 6613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6614 | (exit $ac_status); }; }; then |
|---|
| | 6615 | ac_header_compiler=yes |
|---|
| | 6616 | else |
|---|
| | 6617 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6618 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6619 | |
|---|
| | 6620 | ac_header_compiler=no |
|---|
| | 6621 | fi |
|---|
| | 6622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| | 6623 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|---|
| | 6624 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|---|
| | 6625 | |
|---|
| | 6626 | # Is the header present? |
|---|
| | 6627 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|---|
| | 6628 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|---|
| | 6629 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6630 | /* confdefs.h. */ |
|---|
| | 6631 | _ACEOF |
|---|
| | 6632 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6633 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6634 | /* end confdefs.h. */ |
|---|
| | 6635 | #include <$ac_header> |
|---|
| | 6636 | _ACEOF |
|---|
| | 6637 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|---|
| | 6638 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|---|
| | 6639 | ac_status=$? |
|---|
| | 6640 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 6641 | rm -f conftest.er1 |
|---|
| | 6642 | cat conftest.err >&5 |
|---|
| | 6643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6644 | (exit $ac_status); } >/dev/null; then |
|---|
| | 6645 | if test -s conftest.err; then |
|---|
| | 6646 | ac_cpp_err=$ac_c_preproc_warn_flag |
|---|
| | 6647 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|---|
| | 6648 | else |
|---|
| | 6649 | ac_cpp_err= |
|---|
| | 6650 | fi |
|---|
| | 6651 | else |
|---|
| | 6652 | ac_cpp_err=yes |
|---|
| | 6653 | fi |
|---|
| | 6654 | if test -z "$ac_cpp_err"; then |
|---|
| | 6655 | ac_header_preproc=yes |
|---|
| | 6656 | else |
|---|
| | 6657 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6658 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6659 | |
|---|
| | 6660 | ac_header_preproc=no |
|---|
| | 6661 | fi |
|---|
| | 6662 | rm -f conftest.err conftest.$ac_ext |
|---|
| | 6663 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|---|
| | 6664 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|---|
| | 6665 | |
|---|
| | 6666 | # So? What about this header? |
|---|
| | 6667 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|---|
| | 6668 | yes:no: ) |
|---|
| | 6669 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|---|
| | 6670 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|---|
| | 6671 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|---|
| | 6672 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|---|
| | 6673 | ac_header_preproc=yes |
|---|
| | 6674 | ;; |
|---|
| | 6675 | no:yes:* ) |
|---|
| | 6676 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|---|
| | 6677 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|---|
| | 6678 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|---|
| | 6679 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|---|
| | 6680 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|---|
| | 6681 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|---|
| | 6682 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|---|
| | 6683 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|---|
| | 6684 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|---|
| | 6685 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|---|
| | 6686 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|---|
| | 6687 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|---|
| | 6688 | ( |
|---|
| | 6689 | cat <<\_ASBOX |
|---|
| | 6690 | ## ------------------------------------- ## |
|---|
| | 6691 | ## Report this to axel@zankasoftware.com ## |
|---|
| | 6692 | ## ------------------------------------- ## |
|---|
| | 6693 | _ASBOX |
|---|
| | 6694 | ) | |
|---|
| | 6695 | sed "s/^/$as_me: WARNING: /" >&2 |
|---|
| | 6696 | ;; |
|---|
| | 6697 | esac |
|---|
| | 6698 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|---|
| | 6699 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|---|
| | 6700 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|---|
| | 6701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6702 | else |
|---|
| | 6703 | eval "$as_ac_Header=\$ac_header_preproc" |
|---|
| | 6704 | fi |
|---|
| | 6705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|---|
| | 6706 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|---|
| | 6707 | |
|---|
| | 6708 | fi |
|---|
| | 6709 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|---|
| | 6710 | cat >>confdefs.h <<_ACEOF |
|---|
| | 6711 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|---|
| | 6712 | _ACEOF |
|---|
| | 6713 | |
|---|
| | 6714 | echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5 |
|---|
| | 6715 | echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6 |
|---|
| | 6716 | if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then |
|---|
| | 6717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 6718 | else |
|---|
| | 6719 | ac_check_lib_save_LIBS=$LIBS |
|---|
| | 6720 | LIBS="-lxml2 $LIBS" |
|---|
| | 6721 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 6722 | /* confdefs.h. */ |
|---|
| | 6723 | _ACEOF |
|---|
| | 6724 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 6725 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 6726 | /* end confdefs.h. */ |
|---|
| | 6727 | |
|---|
| | 6728 | /* Override any gcc2 internal prototype to avoid an error. */ |
|---|
| | 6729 | #ifdef __cplusplus |
|---|
| | 6730 | extern "C" |
|---|
| | 6731 | #endif |
|---|
| | 6732 | /* We use char because int might match the return type of a gcc2 |
|---|
| | 6733 | builtin and then its argument prototype would still apply. */ |
|---|
| | 6734 | char xmlParseFile (); |
|---|
| | 6735 | int |
|---|
| | 6736 | main () |
|---|
| | 6737 | { |
|---|
| | 6738 | xmlParseFile (); |
|---|
| | 6739 | ; |
|---|
| | 6740 | return 0; |
|---|
| | 6741 | } |
|---|
| | 6742 | _ACEOF |
|---|
| | 6743 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 6744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|---|
| | 6745 | (eval $ac_link) 2>conftest.er1 |
|---|
| | 6746 | ac_status=$? |
|---|
| | 6747 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 6748 | rm -f conftest.er1 |
|---|
| | 6749 | cat conftest.err >&5 |
|---|
| | 6750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6751 | (exit $ac_status); } && |
|---|
| | 6752 | { ac_try='test -z "$ac_c_werror_flag" |
|---|
| | 6753 | || test ! -s conftest.err' |
|---|
| | 6754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6755 | (eval $ac_try) 2>&5 |
|---|
| | 6756 | ac_status=$? |
|---|
| | 6757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6758 | (exit $ac_status); }; } && |
|---|
| | 6759 | { ac_try='test -s conftest$ac_exeext' |
|---|
| | 6760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|---|
| | 6761 | (eval $ac_try) 2>&5 |
|---|
| | 6762 | ac_status=$? |
|---|
| | 6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 6764 | (exit $ac_status); }; }; then |
|---|
| | 6765 | ac_cv_lib_xml2_xmlParseFile=yes |
|---|
| | 6766 | else |
|---|
| | 6767 | echo "$as_me: failed program was:" >&5 |
|---|
| | 6768 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 6769 | |
|---|
| | 6770 | ac_cv_lib_xml2_xmlParseFile=no |
|---|
| | 6771 | fi |
|---|
| | 6772 | rm -f conftest.err conftest.$ac_objext \ |
|---|
| | 6773 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 6774 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 6775 | fi |
|---|
| | 6776 | echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5 |
|---|
| | 6777 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6 |
|---|
| | 6778 | if test $ac_cv_lib_xml2_xmlParseFile = yes; then |
|---|
| | 6779 | |
|---|
| | 6780 | LIBS="$LIBS -lxml2" |
|---|
| | 6781 | |
|---|
| | 6782 | else |
|---|
| | 6783 | |
|---|
| | 6784 | |
|---|
| | 6785 | { { echo "$as_me:$LINENO: error: could not locate libxml2 |
|---|
| | 6786 | |
|---|
| | 6787 | If you installed libxml2 into a non-standard directory, please run: |
|---|
| | 6788 | |
|---|
| | 6789 | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 |
|---|
| | 6790 | echo "$as_me: error: could not locate libxml2 |
|---|
| | 6791 | |
|---|
| | 6792 | If you installed libxml2 into a non-standard directory, please run: |
|---|
| | 6793 | |
|---|
| | 6794 | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} |
|---|
| | 6795 | { (exit 1); exit 1; }; } |
|---|
| | 6796 | |
|---|
| | 6797 | |
|---|
| | 6798 | fi |
|---|
| | 6799 | |
|---|
| | 6800 | |
|---|
| | 6801 | else |
|---|
| | 6802 | |
|---|
| | 6803 | |
|---|
| | 6804 | { { echo "$as_me:$LINENO: error: could not locate libxml2 |
|---|
| | 6805 | |
|---|
| | 6806 | If you installed libxml2 into a non-standard directory, please run: |
|---|
| | 6807 | |
|---|
| | 6808 | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&5 |
|---|
| | 6809 | echo "$as_me: error: could not locate libxml2 |
|---|
| | 6810 | |
|---|
| | 6811 | If you installed libxml2 into a non-standard directory, please run: |
|---|
| | 6812 | |
|---|
| | 6813 | env CPPFLAGS=\"-I/path/to/include\" LDFLAGS=\"-L/path/to/lib\" ./configure" >&2;} |
|---|
| | 6814 | { (exit 1); exit 1; }; } |
|---|
| | 6815 | |
|---|
| | 6816 | |
|---|
| | 6817 | fi |
|---|
| | 6818 | |
|---|
| | 6819 | done |
|---|
| | 6820 | |
|---|