From 069ef2445ddf4f8ab1392f8e559ef258b315e92d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 May 2018 19:18:19 +0300 Subject: Add configure option for enable/disable accepting password from command line. --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7ab75e9bb..48e44a868 100755 --- a/configure.ac +++ b/configure.ac @@ -118,6 +118,19 @@ esac],[openglerrors_enabled=false]) AM_CONDITIONAL(ENABLE_OPENGLERRORS, test x$openglerrors_enabled = xtrue) +# Enable password from command line +AC_ARG_ENABLE(commandlinepassword, +[ --enable-commandlinepassword Enable command line option for set password], +[case "${enableval}" in + yes) commandlinepassword_enabled=true + ;; + no) commandlinepassword_enabled=false + ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-commandlinepassword) ;; +esac],[commandlinepassword_enabled=false]) + +AM_CONDITIONAL(ENABLE_COMMANDLINEPASSWORD, test x$commandlinepassword_enabled = xtrue) + # Checks for android. AC_ARG_ENABLE(androidbuild, [ --enable-androidbuild Turn on android building], -- cgit v1.2.3-70-g09d2