On Fri, 2013-11-08 at 08:28 -0800, Bruce Korb wrote:

> Hmmm.  OK.  I'll pull your sources and if you'd send me your
> fiddlings (patch), I'll look into what makes sense.  I'll try
> to do something reasonable with your code, but fix my own and
> re-release if necessary.

I have not done something special and I don't think what I have can be
easily generalized. What I've done (see also [0]) is:

========================code===========================
AC_CHECK_PROG([AUTOGEN], [autogen], [autogen], [/bin/true])

if test x"$AUTOGEN" = "x/bin/true"; then
        AC_MSG_WARN([[
***
*** autogen not found. Will not link against libopts.
*** ]])
NEED_LIBOPTS_DIR=true
fi

LIBOPTS_CHECK([libopts])
if [ test "$NEED_LIBOPTS_DIR" != "true" ];then
        dnl delete libopts-generated files (to force regeneration)
        rm -f ${srcdir}/src/ocserv-args.c ${srcdir}/src/ocserv-args.h
        rm -f ${srcdir}/src/ocpasswd-args.c ${srcdir}/src/ocpasswd-args.h
fi
========================code===========================

regards,
Nikos

[0]. http://git.infradead.org/ocserv.git/tree


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to