|
From: Jeff S. <jsq...@us...> - 2004-01-15 17:04:51
|
Update of /cvsroot/env-switcher/env-switcher In directory sc8-pr-cvs1:/tmp/cvs-serv26621 Modified Files: configure.in Log Message: Add --enable-suppress-errors configure switch. Grumble. Index: configure.in =================================================================== RCS file: /cvsroot/env-switcher/env-switcher/configure.in,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** configure.in 11 Oct 2002 17:00:43 -0000 1.3 --- configure.in 15 Jan 2004 17:04:44 -0000 1.4 *************** *** 1,6 **** # -*- shell-script -*- # ! # Copyright (c) 2002 The Trustees of Indiana University. ! # All rights reserved. # # This file is part of the Env-switcher software package. For license --- 1,6 ---- # -*- shell-script -*- # ! # Copyright (c) 2002-2004 The Trustees of Indiana University. ! # All rights reserved. # # This file is part of the Env-switcher software package. For license *************** *** 92,100 **** # # Figure out where modulefiles get installed # AC_MSG_CHECKING([where modulefiles get installed]) ! AC_ARG_WITH(modulefiles, [ --with-modulefiles=DIR directory where modulefiles get installed]) MODULEFILESDIR= --- 92,120 ---- # + # Do we want silent output by default? + # + + AC_MSG_CHECKING([if suppress errors by default]) + AC_ARG_ENABLE(suppress-errors, + AC_HELP_STRING([--enable-suppress-errors], + [Set switcher to default to not show any errors])) + if test "$enable_suppress_errors" != "no"; then + AC_MSG_RESULT([yes]) + WANT_SILENT=1 + DEFAULT_ANNOUNCE_VALUE="none" + else + AC_MSG_RESULT([no]) + WANT_SILENT=0 + DEFAULT_ANNOUNCE_VALUE="warn,error" + fi + + # # Figure out where modulefiles get installed # AC_MSG_CHECKING([where modulefiles get installed]) ! AC_ARG_WITH(modulefiles, ! AC_HELP_STRING([--with-modulefiles=DIR], ! [directory where modulefiles get installed])) MODULEFILESDIR= |