Print

Print


Commit in slic on MAIN
aclocal.m4+20-11.40 -> 1.41


slic
aclocal.m4 1.40 -> 1.41
diff -u -r1.40 -r1.41
--- aclocal.m4	9 Mar 2011 17:36:04 -0000	1.40
+++ aclocal.m4	9 Jun 2011 01:48:48 -0000	1.41
@@ -1,4 +1,4 @@
-]dnl $Header: /cvs/lcd/slic/aclocal.m4,v 1.40 2011/03/09 17:36:04 jeremy Exp $
+]dnl $Header: /cvs/lcd/slic/aclocal.m4,v 1.41 2011/06/09 01:48:48 jeremy Exp $
 
 dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 dnl Autoconf macros for SLIC and its dependencies.
@@ -580,3 +580,22 @@
 AC_SUBST_FILE([G4PHYSLISTSINC])
 AC_SUBST_FILE([G4PHYSLISTSBUILD])
 ])
+
+dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
+dnl Macro to determine if std exceptions should be caught.
+dnl /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
+AC_DEFUN(AC_SLIC_EXCEPTIONS, [
+
+AC_MSG_CHECK(NG(whether to enable exception handling)
+
+AC_ARG_ENABLE(exceptions,
+              AC_HELP_STRING([--enable-exceptions], [yes to enable exception handling; no to disable]))
+
+if test "${enable_package_info}" != "no"; then
+    AC_DEFINE(SLIC_CATCH_STD_EXCEPTIONS)
+    AC_MSG_RESULT(yes)
+else
+    AC_MSG_RESULT(no)
+fi
+
+])
CVSspam 0.2.8