From 2239cb4ec4a3594d34f5c7eeabb502d8ad027ea6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 9 Mar 2006 20:30:36 +0000 Subject: r14095: disable setproctitle support by default --with-setproctitle enables it metze (This used to be commit fb9e7d176a3379d451bdbfad567426ddfb91a8bf) --- source4/smbd/process_model.m4 | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/source4/smbd/process_model.m4 b/source4/smbd/process_model.m4 index ea7373e4f7..6e905d4f5a 100644 --- a/source4/smbd/process_model.m4 +++ b/source4/smbd/process_model.m4 @@ -25,16 +25,30 @@ AC_MSG_RESULT(no) SMB_EXT_LIB(PTHREAD,[-lpthread]) -AC_CHECK_HEADERS(setproctitle.h) -AC_CHECK_LIB_EXT(setproctitle, SETPROCTITLE_LIBS, setproctitle) -AC_MSG_CHECKING(whether to use setproctitle) -if test x"$ac_cv_header_setproctitle_h" = x"yes" -a x"$ac_cv_lib_ext_setproctitle_setproctitle" = x"yes"; then - AC_MSG_RESULT(yes) - SMB_EXT_LIB_ENABLE(SETPROCTITLE,YES) - AC_DEFINE(HAVE_SETPROCTITLE,1,[Whether setproctitle() is available]) -else - AC_MSG_RESULT(no) -fi +AC_MSG_CHECKING(whether to search for setproctitle support) +AC_ARG_WITH(setproctitle, +[ --with-setproctitle Search for setproctitle support (default=no)], +[ case "$withval" in + yes) + AC_MSG_RESULT(yes) + AC_CHECK_HEADERS(setproctitle.h) + AC_CHECK_LIB_EXT(setproctitle, SETPROCTITLE_LIBS, setproctitle) + AC_MSG_CHECKING(whether to use setproctitle) + if test x"$ac_cv_header_setproctitle_h" = x"yes" -a \ + x"$ac_cv_lib_ext_setproctitle_setproctitle" = x"yes"; then + AC_MSG_RESULT(yes) + SMB_EXT_LIB_ENABLE(SETPROCTITLE,YES) + AC_DEFINE(HAVE_SETPROCTITLE,1,[Whether setproctitle() is available]) + else + AC_MSG_RESULT(no) + fi + ;; + *) + AC_MSG_RESULT(no) + ;; + esac ], +AC_MSG_RESULT(no) +) SMB_EXT_LIB(SETPROCTITLE, [${SETPROCTITLE_LIBS}], -- cgit