[GRASS5] Re: [GRASS-CVS] CVS update: grass
Eric G. Miller
egm2 at jps.net
Thu Aug 2 23:36:38 EDT 2001
On Fri, Aug 03, 2001 at 02:43:20AM +0100, Glynn Clements wrote:
[snip]
> The appearance of "(cached)" seems suspicious. The checks in question
> are:
>
> AC_CHECK_LIB(tk, Tk_MainWindow, TCLTKLIBS="$TCLTKLIBS -ltk", [
> AC_CHECK_LIB(tk$tcltk_ver, Tk_MainWindow, TCLTKLIBS="$TCLTKLIBS -ltk$tcltk_ver", [
> LDFLAGS="$LDFLAGS $X_LIBS"
> AC_CHECK_LIB(tk, Tk_MainWindow, TCLTKLIBS="$TCLTKLIBS -ltk", [
> AC_CHECK_LIB(tk$tcltk_ver, Tk_MainWindow, TCLTKLIBS="$TCLTKLIBS -ltk$tcltk_ver", [
> LDFLAGS="$LDFLAGS $DLLIB"
> AC_CHECK_LIB(tk, Tk_MainWindow, TCLTKLIBS="$TCLTKLIBS -ltk", [
> AC_CHECK_LIB(tk$tcltk_ver, Tk_MainWindow, TCLTKLIBS="$TCLTKLIBS -ltk$tcltk_ver", [
> AC_MSG_WARN([*** Unable to locate Tk library.])
> ])])])])])])
>
> It tries each of -ltk and -ltk<version> three times; once with no
> additional libraries, once with the X libraries, and once with X
> libraries and libdl.
>
> However, it appears to be caching the fact that both -ltk and
> -ltk<version> failed the first time, and not actually performing the
> last two sets of checks.
That caching seems to be the normal behavior, hence all the file tests,
prior to the AC_CHECK_LIB() tests in the previous versions...
Unfortunately, the Tcl/Tk libs are named in various manners on various
platforms... (libtk8.0, libtk80, libtk, etc... ).
--
Eric G. Miller <egm2 at jps.net>
More information about the grass-dev
mailing list