Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: jobs -Z example?



On Mar 15,  9:08pm, Bart Schaefer wrote:
}
} +AC_SEARCH_LIBS(setproctitle, util, AC_DEFINE(HAVE_SETPROCTITLE))

Actually the following is a bit more complete for configure.ac.

(Ignore the "4.0" in the directory name, it's the same CVS sandbox I've
been using for years and have never bothered to rename.)

--- zsh-forge/current/configure.ac	2009-03-08 14:01:12.000000000 -0700
+++ zsh-4.0/configure.ac	2009-03-15 21:26:28.000000000 -0700
@@ -1885,6 +1885,12 @@
   AC_DEFINE(USE_GETCWD)
 fi
 
+dnl CHECK FOR setproctitle() FOR jobs -Z / ARGV0
+AH_TEMPLATE([HAVE_SETPROCTITLE],
+[Define to 1 if the system supports `setproctitle' to change process name])
+AC_CHECK_FUNC(setproctitle,AC_DEFINE(HAVE_SETPROCTITLE),
+AC_SEARCH_LIBS(setproctitle,util,AC_DEFINE(HAVE_SETPROCTITLE)))
+
 dnl -------------
 dnl CHECK FOR NIS
 dnl -------------



Messages sorted by: Reverse Date, Date, Thread, Author