diff options
author | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-11-23 12:27:27 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@tele2.at> | 2018-11-23 22:16:39 +0100 |
commit | 39fcca747f535ceeb7fb7e30b55eaab7e72fbf9d (patch) | |
tree | 66971b924a93dfdb5ea5f20e3300ffa67c90221f /configure.ac | |
parent | 49fe9bd77db951bf7daec435f69502807e41c2c4 (diff) |
Add enable flag for software pseudo RTC
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index edd9500..fcd0e67 100644 --- a/configure.ac +++ b/configure.ac @@ -41,4 +41,13 @@ AC_CONFIG_FILES([scripts/modules_load.sh]) AC_CONFIG_FILES([crontab/swclock]) +AC_ARG_ENABLE([swclock], + [AS_HELP_STRING([--enable-swclock], [Enable software pseudo RTC])], + [case "${enableval}" in + yes) AM_CONDITIONAL([SWCLOCK], [true]) ;; + no) AM_CONDITIONAL([SWCLOCK], [false]) ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-swclock]) ;; + esac], + [AM_CONDITIONAL([SWCLOCK], [false])]) + AC_OUTPUT([Makefile]) |