2015-11-09 22:36:40 +00:00
|
|
|
dnl Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2016-12-14 15:51:30 +00:00
|
|
|
dnl Copyright (C) 2016 Red Hat, Inc.
|
2015-11-09 22:36:40 +00:00
|
|
|
dnl
|
|
|
|
dnl This library is free software; you can redistribute it and/or
|
|
|
|
dnl modify it under the terms of the GNU Lesser General Public
|
|
|
|
dnl License as published by the Free Software Foundation; either
|
|
|
|
dnl version 2.1 of the License, or (at your option) any later version.
|
|
|
|
dnl
|
|
|
|
dnl This library is distributed in the hope that it will be useful,
|
|
|
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
dnl Lesser General Public License for more details.
|
|
|
|
dnl
|
|
|
|
dnl You should have received a copy of the GNU Lesser General Public
|
|
|
|
dnl License along with this library. If not, see
|
|
|
|
dnl <http://www.gnu.org/licenses/>.
|
|
|
|
|
2016-12-12 17:11:51 +00:00
|
|
|
AC_DEFUN([LIBVIRT_ARG_LOGIN_SHELL], [
|
2016-12-22 11:49:51 +00:00
|
|
|
LIBVIRT_ARG_WITH([LOGIN_SHELL], [build virt-login-shell], [check])
|
2016-12-12 17:11:51 +00:00
|
|
|
])
|
2015-11-09 22:36:40 +00:00
|
|
|
|
2016-12-12 17:11:51 +00:00
|
|
|
AC_DEFUN([LIBVIRT_CHECK_LOGIN_SHELL], [
|
2015-12-20 08:16:33 +00:00
|
|
|
if test "x$with_login_shell" != "xno"; then
|
2016-06-12 09:05:57 +00:00
|
|
|
if test "x$with_linux" != "xyes"; then
|
2016-04-08 14:17:16 +00:00
|
|
|
if test "x$with_login_shell" = "xyes"; then
|
2016-06-12 09:05:57 +00:00
|
|
|
AC_MSG_ERROR([virt-login-shell is supported on Linux only])
|
2015-12-20 08:16:33 +00:00
|
|
|
else
|
|
|
|
with_login_shell=no;
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
with_login_shell=yes;
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "x$with_login_shell" = "xyes" ; then
|
2015-11-09 22:36:40 +00:00
|
|
|
AC_DEFINE_UNQUOTED([WITH_LOGIN_SHELL], 1, [whether virt-login-shell is built])
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL([WITH_LOGIN_SHELL], [test "$with_login_shell" = "yes"])
|
|
|
|
])
|
2016-12-14 15:51:30 +00:00
|
|
|
|
|
|
|
AC_DEFUN([LIBVIRT_RESULT_LOGIN_SHELL], [
|
|
|
|
AC_MSG_NOTICE([ virt-login-shell: $with_login_shell])
|
|
|
|
])
|