New gtk.m4 (A.K.A, "The Brain"), trial 1




Here's a new attempt at a gtk.m4 macro that figures out exactly
what is going wrong and tells you. It has separate messages
for 5 different occurences:

 - gtk-config could not be found
 - gtk-config was found, but the test program didn't compile
 - The test program compiled, but didn't run at all.
 - The test program ran, and the libraries it was linked against
   (at runtime), are a different version than the output of
   --gtk-config.
 - The test program ran, and gtk-config agreed with the linked
   libraries, but they were both too old.

There is also a new configure switch added, --disable-gtktest,
which disables any testing of compilation and versions.

(I would do Michael Sweet's gtk-config --version test for that case,
but that is very clunky without awk, which isn't officially 
considered valid autoconf material, and I got lazy)

This is going to be GTK+-1.0.1 material - it needs a fair bit
of testing on different platforms before I'll trust it enough
to include it in the distribution.

I'd appreciate it if people looked it over, edited and extended
the text, and tried it out.

Regards,
                                        Owen

[ uuencoded because of some long lines ]

begin 666 gtk.m4.gz
M'XL(")>2+C4``V=T:RYM-`"]6?MOVS@2_KG^*V95;V*ULMQLL%BTN11(TSR,
MYH7$N=N%$W@9B;9UD46?*,<QVO[O.T/J0<E2DU[OU@ABBX^/P^',-S/42]@7
MT3B8+&(.<Y9,)8Q%#$>#3Z];+^%\R2,8L%6(3?1Y^UMW:ZN[W6KY40A[IZ.+
MO<'Q",=VAJ?]L_[I]6GWGP>75_WS,P>&>_L#_-'M'W8/SZ_//L+0@:+I['R@
MFV]O;VV%-N`RR99V@$4^^'P<1)R>1_N')WM'5ZJ5'D_Z'ZYH4FMO?_3QX/#Z
MK&/(XK2&A*=`CW@"R92#-P[91*KY87`7LSC@N,]8S%3O)+GO>DH)(+TXF"<9
M]M[ET>A?_<%QAT;,8Y3GT1D"=+O+()EVB\;=B\/?43L7Z@&64QXKL2&0$$0R
M86'(?>B(>1*(B(7VK=,"XX,X([W\*(6SVK3``PLMIZ[7LM>$XX_<JY?0Z%%B
M'N`SS']84H)]0MS2D$+F@[.]#R<')'6"1XZ&0N+Z@61W(>^FK>EZ'P5$`D\P
M7D$BP!.S>1!R=8KQ(@(&:BB)/X_%)&8S%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