From: Mike Hopkirk(hops) <ho...@sc...> - 2000-04-26 23:10:34
|
On Wed Apr 26,2000 (01:53:16PM -0700), uz...@li...(Joshua Uziel) wrote: > * Mike Hopkirk(hops) <ho...@sc...> [000426 13:21]: > > I downloaded the tarball a coupla hours ago and have been run > > testing it on OSr5. > > Good job it works pretty well. - No problems with building using lex > > > > with flex however.... > > > > On our systems flex gets installed under /usr/local. > > The configure run doesn't setup to search there so the yywrap test fails > > and -lfl doesn't get added to the build line. > > > > I hand coded round that wiring -L/usr/local/lib for the probe compile > > but then the build fails cos even tho its been told to use sysvcurses > > it picks up the ncurses library (as curses) from /usr/local/lib (:-( > > Hrmm... any you tried doing a "make distclean" and/or killing the > config.cache? yeah - I went through several iterations of that.. > The flex/lex detector is standard with automake, Yees - looks like its not working for flex lib in a non system location I wonder if thats not been an issue for anything else cos they make the assumption flex is not available on sco platforms and go explicitly to lex ... > the curses detection is something I swiped from elsewhere (that was > also swiped from elsewhere). Actually, on second thought, yes... I'll > look at ways of doing that... > > > What I suggest is this: > > > > Can we modify the configure to probe for the existance of the library and > > if its not in /lib or /usr/lib add a -L/usr/local/lib to the macro > > containing 'fl' > > (or alternatively add a -L/usr/local/lib regardless on the assumption > > that if its not there it'll be found in the course of the normal > > system places search .. ?? ) > > Sure... I'll see if that's possible... Can get it to work by setting LEX and LEXLIB explicitly to include -L/usr/local/lib.. ( that configure test is then skipped) probably all it needs is a redefinition of AC_PROG_LEX in aclocal.m4 such that the AC_CHECK_LIB line becomes sommat like AC_CHECK_LIB($ac_lib, yywrap, LEXLIB="-L/usr/local/lib -l$ac_lib") > > In addition change the assembly of the link line so that > > LEXLIB is after CURSES_LIBS ( i.e last) > > > > i.e Makefile.{am,in} > > cscope_LDADD = @LEXLIB@ @CURSES_LIBS@ > > becomes > > cscope_LDADD = @CURSES_LIBS@ @LEXLIB@ > > No problem. > > > Is it possible to get a configure switch specifying which of > > flex or lex to use ( for where flex is installed but want to build with lex) > > (I guess ditto for bison/lex) > > Not sure... you could just "setenv LEX lex" or "setenv YACC yacc" > to override it... but a --with-lex= would take some work... maybe > for the future... I don't know how to do it off-hand. The env variable override works well enough to be going on with .. > > Whats with the SCO_FLAVOR settings in config.h and -D_SVID3 on build line ? > > Nothing in the sources uses them. > > Those are as a result of the curses stuff I've put in... they're > there just in case we can use them to our benefit. I think we can probably dispense with them - if we have a need for platform tweaks we should probably trigger them individually per tweak rather than on a platform basis... -- - hops Everything disclaimed (including disclaimer) ------<ho...@sc...>-------------------------------------- Mike Hopkirk (hops) | Whenever possible steal code. SCO Inc | Tom Duff. (ex) Bell Labs |