On Tue, Sep 05, 2000 at 11:26:56AM +0200, Akim Demaille wrote:
> >>>>> "Tom" == Tom Tromey <[EMAIL PROTECTED]> writes:
> 
> Tom> We should automate this process.  I've wanted to for a long time.
> Tom> Does autoconf have the hooks we need?
> 
> Yes it has:
> 
>  - Macro: AC_CONFIG_COMMANDS_PRE(CMDS)
>      Execute the CMDS right before creating `config.status'.  A typical
>      use is computing values derived from variables built during the
>      execution of `configure':
> 
>           AC_CONFIG_COMMANDS_PRE(
>           [LTLIBOBJS=`echo $LIBOBJS | sed 's/\.o/\.lo/g'`
>           AC_SUBST(LTLIBOBJS)])

<pedant>
        AC_CONFIG_COMMANDS_PRE(
        [LTLIBOBJS=`echo "X$LIBOBJS" | \
          sed "s/^X//;s/\\.$ac_objext /.lo /g;s/\\.$ac_objext\$/.lo/"
        AC_SUBST(LTLIBOBJS)])
</pedant>

>  - Macro: AC_CONFIG_COMMANDS_POST(CMDS)
>      Execute the CMDS right after creating `config.status'.
> 
> But I don't know if this is the right way to do it, maybe it'd be
> cleaner to provide a hook on AC_LIBOBJ.  The AC_..._PRE/POST method is
> more robust (it works if people don't use AC_LIBOBJ but change LIBOBJ
> by hand), but it is less clean.

PRE/POST looks good to me!

Cheers,
        Gary.
-- 
  ___              _   ___   __              _         mailto: [EMAIL PROTECTED]
 / __|__ _ _ ___ _| | / / | / /_ _ _  _ __ _| |_  __ _ ___       [EMAIL PROTECTED] 
| (_ / _` | '_|// / |/ /| |/ / _` | || / _` | ' \/ _` | _ \
 \___\__,_|_|\_, /|___(_)___/\__,_|\_,_\__, |_||_\__,_|//_/
home page:  /___/                      /___/                  gpg public key:
http://www.oranda.demon.co.uk           http://www.oranda.demon.co.uk/key.asc

Reply via email to