nmh-workers
[Top] [All Lists]

Re: minor building on Linux system

1998-02-13 13:50:51
On Fri, 13 Feb 1998 11:59:52 -0500, Doug Morris wrote:
In message 
<199802122032(_dot_)PAA28364(_at_)cypress(_dot_)math(_dot_)gatech(_dot_)edu>, 
quoth Richard Cole
man:
I'm not sure what I can do to fix this.  The Linux folks keep
changing things to macros, which breaks autoconf (configure).
The same thing happened when I was maintaining zsh, and they
made a similar change to lstat.

The best I can do is put a note in the MACHINES       file, to let
people know to manually define this.

Couldn't you have autoconf specifically check for the OS type and set
the variable accordingly. Something like:

dnl Check for Linux
AC_CACHE_CHECK(for Linux, nmh_cv_linux,
[if uname -sr | grep "Linux" >/dev/null 2>&1

Much tidier to use AC_CANONICAL_SYSTEM.  Something like

AC_CANONICAL_SYSTEM
case "$host_os" in
  linux*)
     # defines etc. for linux
  foonix*)
     # defines etc. for foonix
  ...
esac

Uname can be relied on to take strange options, produce bizarre
output, and not always exist.  Read through config.guess sometime --
it's quite educational.

zw


<Prev in Thread] Current Thread [Next in Thread>