From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,f6962b18a52c21c6 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-04-22 10:06:59 PST Path: sparky!uunet!cs.utexas.edu!usc!nic!netlabs!lwall From: lwall@netlabs.com (Larry Wall) Newsgroups: comp.sys.dec Subject: Re: Question for net.views column in UNIX Today! Message-ID: <1992Apr22.170659.4549@netlabs.com> Date: 22 Apr 92 17:06:59 GMT References: <1992Apr20.204614.28020@netlabs.com> Sender: news@netlabs.com Organization: NetLabs, Inc. Nntp-Posting-Host: scalpel.netlabs.com In article przemek@rrdstrad.nist.gov (Przemek Klosowski) writes: : How about writing "configure" in Perl and writing a sed script (or sh : or yacc) to translate it into a shell script? The hard parts are the : rules and special cases, aren't they? It would have to written in a strict subset of Perl to have much hope of doing that. It might be easier to maintain two separate versions of Configure than to write a Perl to sh translator. Presumably one could send both versions if there was any doubt about the availability of Perl. (It wouldn't be difficult to modify metaconfig to spit out either version.) The main problem with Configure is that it can never be totally correct unless we can convince vendors to stop changing their products, which is of course a hopeless task. There's always a new place to look for libraries, a new format for library filenames, a new format for the output of nm, a new set of cpp symbols that you have to define to make things work like they used to, a new set of switches to the C compiler or the loader, a new set of optimizations that break the code in subtle ways, a new set of library routines of which some are actually implemented, a new set of documents to read before you have any idea what the heck is going on... It makes you want to sympathize with the folks who say "Just punt and hire a guru to do all your installations." It's not that I'm against job security for gurus. :-) It's just that there are a lot of people out there who want *me* to be their guru, and I tend to run a wee bit short on time. I wrote Configure (and metaconfig) purely in self-defense. (Likewise for patch.) By putting a bit of expert system out there, I save myself a lot of work. But the way things are diverging, it's taking more and more work to save work. Sigh. Everything is a tradeoff. Well, I've wandered from the topic. But I feel much better now... Larry Wall lwall@netlabs.com