libbsd provides (a stub for) setproctitle, too.
authorMalte S. Stretz <mss@apache.org>
Tue, 31 May 2011 22:08:40 +0000 (00:08 +0200)
committerEmil Mikulic <emikulic@gmail.com>
Sat, 4 Jun 2011 14:00:31 +0000 (00:00 +1000)
configure.ac

index 3e9f78b..f6f28cf 100644 (file)
@@ -264,7 +264,7 @@ fi
 
 
 # A real OS will have setproctitle()
-AC_CHECK_LIB(c, setproctitle,
+AC_SEARCH_LIBS(setproctitle, [bsd],
  AC_DEFINE(HAVE_SETPROCTITLE, 1,
   [Define to 1 if you have setproctitle().]))