Try looking at the subversion code. It uses APXS and has a fairly intelligent set of macros to do it. It also looks for and uses apr-config and apu-config. It's pretty cool.

http://subversion.tigris.org/project_source.html

Good luck. I can also send you the appropriate m4 files if you are interested.

C


Philip M. Gollucci wrote:


First of all, I'll take any and all pointers to documentation on this.

Second, I am trying to setup
 autoconf/automake/CVS build environment

in my configure.ac
 dnl Compile time options
AC_ARG_WITH(
           apxs,
           [AC_HELP_STRING([--with-apxs     path to apxs binary])],
           [
            if test -x $withval; then
               APXS=$withval
               AC_SUBST($APXS)
               AC_MSG_RESULT([Using apxs....`$APXS`])
            else
               AC_MSG_ERROR([Can't find a usable apxs])
            fi
           ],
           [AC_MSG_ERROR([Can't find a usable apxs])]
          )

I have yet to find a module that actually does this. I even scoured mod_php4. mod_perl2 the one I would know best doesn't help since it uses perl Makefile.PL. I've seen lots of --with-apache=DIR, but doesn't help me very much.










Reply via email to