[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Neon configuration macros again.

From: Kevin Pilch-Bisson <kevin_at_pilch-bisson.net>
Date: 2001-10-25 15:13:50 CEST

Hey,

I tried the approach I suggested above, and it seems to almost work - except
that neon-common references LIBNEON_SOURCE_CHECKS, which in turn
referenced neon-xml-parser.m4, and neon-socks.m4. Is there any way
that the LIBNEON_SOURCE_CHECKS call could be moved to one of the NEON_BUNDLED
macros, so that it is possible to use NEON_LIBRARY, without requiring a
bunch of other .m4 files?

Heres the configuration section I had, it doesn't work, because in the
NEON_LIBRARY, it gets NEON_SOCKS, which I haven't sinclude'd so it is a syntax
error:

dnl Check for neon subdir
AC_MSG_CHECKING(for neon)
if test -d "neon" ; then
  NEON_VERSION=`ac-helpers/get-neon-ver.sh neon`
  if test "$NEON_WANTED" != "$NEON_VERSION" ; then
    echo ""
    echo "You have a neon/ subdir containing version ${NEON_VERSION},"
    echo "but Subversion needs neon ${NEON_WANTED}."
    echo "Please get neon ${NEON_WANTED} from:"
    echo " ${NEON_URL}"
    echo ""
    echo "Unpack the archive using tar/gunzip and rename the resulting"
    echo "directory from ./neon-${NEON_WANTED}/ to ./neon/"
    echo ""
  else
    AC_MSG_RESULT(using bundled neon subdir)
    # The arguments passed to this configure script are passed down to
    # neon's configure script, but since neon defaults to *not* building
    # shared libs, and we default to building shared libs, we have to
    # explicitly pass down and --{enable,disable}-shared argument, to make
    # sure neon does the same as we do.
    if test "$enable_shared" = "yes"; then
      args="--enable-shared"
    else
      args="--disable-shared"
    fi
    SVN_SUBDIR_CONFIG(neon, $args --with-expat="abs_srcdir/expat-lite/libexpat.la")
    AC_MSG_CHECKING([for any extra libraries neon needs])
    # this is not perfect, since it will pick up extra -L flags too,
    # but that shouldn't do any real damage.
    NEON_EXTRA_LIBS=`$SHELL $abs_builddir/neon/neon-config --libs | sed "s/-lneon//g"`
    AC_MSG_RESULT([$NEON_EXTRA_LIBS])
    NEON_LIBS="$abs_buiddir/neon/src/libneon.la $NEON_EXTRA_LIBS"
  fi
  NEON_SUBDIR="neon"
else
  AC_MSG_RESULT([no neon/ subdir, checking system])
  NEON_LIBRARY
  NEON_REQUIRE(0,17)
fi
AC_SUBST(NEON_SUBIR)
AC_SUBST(NEON_LIBS)

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Pilch-Bisson                    http://www.pilch-bisson.net
     "Historically speaking, the presences of wheels in Unix
     has never precluded their reinvention." - Larry Wall
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  • application/pgp-signature attachment: stored
Received on Sat Oct 21 14:36:45 2006

This is an archived mail posted to the Subversion Dev mailing list.