zsh-workers
 help / color / mirror / code / Atom feed
* NIS+ configuration checks
@ 1996-07-05  8:19 Peter W. Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter W. Stephenson @ 1996-07-05  8:19 UTC (permalink / raw)
  To: Zsh hackers list

The following patches for configure.in and config.h.in allow NIS+ to
be correctly configured and compiled here, where NIS+ is running.  I
didn't see any compilation problems.

It also correctly failed to find NIS+ on a machine without it: one
last test I haven't performed is to try on a machine with NIS+ but
without it running, though I did check that nisls returns status 1 in
such circumstances, which should be all that is needed.

I haven't sent the patch for configure itself since I used an earlier
version of autoconf so there are actually rather more changes there
than are necessary.

*** config.h.in.nisplus	Thu Jul  4 22:00:19 1996
--- config.h.in	Fri Jul  5 10:05:15 1996
***************
*** 100,105 ****
--- 100,108 ----
  /* Define if your system defines TIOCGWINSZ in sys/ioctl.h.  */
  #undef GWINSZ_IN_SYS_IOCTL
  
+ /* Define to 1 if you have NISPLUS */
+ #undef HAVE_NIS_PLUS
+ 
  /* Define to 1 if you have NIS */
  #undef HAVE_NIS
  
*** configure.in.nisplus	Thu Jul  4 22:06:46 1996
--- configure.in	Fri Jul  5 10:04:02 1996
***************
*** 465,470 ****
--- 465,480 ----
    AC_DEFINE(HAVE_SUPERROOT)
  fi
  
+ dnl -----------------
+ dnl CHECK FOR NISPLUS
+ dnl -----------------
+ AC_CACHE_CHECK(for NIS+, zsh_cv_have_nis_plus,
+ [test -f /usr/bin/nisls && /usr/bin/nisls > /dev/null 2>&1 && \
+ zsh_cv_have_nis_plus=yes || zsh_cv_have_nis_plus=no])
+ if test $zsh_cv_have_nis_plus = yes; then
+   AC_DEFINE_UNQUOTED(HAVE_NIS_PLUS, "1")
+ fi
+ 
  dnl -------------
  dnl CHECK FOR NIS
  dnl -------------


-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-07-05  8:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-05  8:19 NIS+ configuration checks Peter W. Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).