diff options
author | Ingo Huerner <ingo.huerner@xse.de> | 2014-11-04 13:30:35 +0100 |
---|---|---|
committer | Ingo Huerner <ingo.huerner@xse.de> | 2014-11-04 13:30:35 +0100 |
commit | adbfc3e8b2fa6ab4962667624c008b36e24d7bf9 (patch) | |
tree | d70fc18a08f971918bbff479dc1ad75def270bf4 /configure.ac | |
parent | f60ab501f1cf35e554714f7413e3f7f461f8134c (diff) | |
download | persistence-client-library-adbfc3e8b2fa6ab4962667624c008b36e24d7bf9.tar.gz |
Disable application validation in pclInitLibrary; activate this feature using --enable-appcheck in the configure step
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2e40aec..25d7b19 100644 --- a/configure.ac +++ b/configure.ac @@ -163,6 +163,25 @@ fi ###################################################################### +# enable persistence application security check ########### +AC_ARG_ENABLE([appcheck], + [AS_HELP_STRING([--enable-appcheck],[Enable application security check])], + [use_appcheck=$enableval], + [use_appcheck="no"]) + +AM_CONDITIONAL([USE_APPCHECK], [test x"$use_appcheck" = "no"]) + +if test "$use_appcheck" != "yes" -a "$use_appcheck" != "no"; then + AC_MSG_ERROR([Invalid application security check: $use_appcheck. Only "yes" or "no" is valid]) +else + AC_MSG_NOTICE([Use application security check: $use_appcheck]) + + if test "$use_appcheck" = "yes"; then + AC_DEFINE_UNQUOTED([USE_APPCHECK], [1], [application check enabled]) + fi +fi +###################################################################### + AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [enable debugging, default: no]), |