Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1538

unable to configure for libxml2 using environment variables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.0
    • None
    • build system
    • None
    • Mac OS X 10.5.8

    Description

      configure files contain following code:

      if test -n "$PKG_CONFIG"; then
      if test -n "$LIBXML2_CFLAGS"; then
      pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
      else
      if test -n "$PKG_CONFIG" && \

      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }

      ; then
      pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
      else
      pkg_failed=yes
      fi
      fi
      else
      pkg_failed=untried
      fi
      if test -n "$PKG_CONFIG"; then
      if test -n "$LIBXML2_LIBS"; then
      pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
      else
      if test -n "$PKG_CONFIG" && \

      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }

      ; then
      pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
      else
      pkg_failed=yes
      fi
      fi
      else
      pkg_failed=untried
      fi

      If PKG_CONFIG is not set, environment variables LIBXML2_CFLAGS and LIBXML2_LIBS are not checked.

      Changing that code by following code seems to fix it:

      if test -z "$PKG_CONFIG"; then
      if test -n "$LIBXML2_CFLAGS"; then
      pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
      else
      pkg_failed=untried
      fi
      else
      if

      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }

      ; then
      pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
      else
      pkg_failed=yes
      fi
      fi

      if test -z "$PKG_CONFIG"; then
      if test -n "$LIBXML2_LIBS"; then
      pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
      else
      pkg_failed=untried
      fi
      else
      if

      { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }

      ; then
      pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
      else
      pkg_failed=yes
      fi
      fi

      Attachments

        Activity

          People

            Unassigned Unassigned
            halewijng Halewijn Geerts
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: