On Mon, Sep 03, 2001 at 11:58:01PM +0200, Karsten Jensen wrote:
>
> One way is to do something like this for the headerfiles:
>
> AC_CONFIG_FILES([include/Motif-1.2/Xm/Xm.h.tmp:include/Motif-1.2/Xm/Xm.h.in],
> [if cmp -s include/Motif-1.2/Xm/Xm.h.tmp
> include/Motif-1.2/Xm/Xm.h 2>/dev/null
> then
> AC_MSG_NOTICE([include/Motif-1.2/Xm/Xm.h is unchanged])
> AC_MSG_NOTICE([deleting include/Motif-1.2/Xm/Xm.h.tmp])
> rm -f include/Motif-1.2/Xm/Xm.h.tmp
> else
> AC_MSG_NOTICE([updating include/Motif-1.2/Xm/Xm.h])
> rm -f include/Motif-1.2/Xm/Xm.h
> mv include/Motif-1.2/Xm/Xm.h.tmp
> include/Motif-1.2/Xm/Xm.h
> fi])
Tried hard ...
First this doesn't work for autoconf 2.13(?!), and second when
trying to port it to 2.13 it also didn't work out.
New idea:
we process Xm.h.in by running sed on our own from the
Makefile using the same rules (create a temporary one,
compare, etc.)
It should even be slightly faster and avoid any autoconf compatibility
issues!
--
Alexander Mai
[EMAIL PROTECTED]