Move CONFIGURE_ARGS from sudo_usage.h.in to config.h.in.
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
#ifndef SUDO_CONFIG_H
|
#ifndef SUDO_CONFIG_H
|
||||||
#define SUDO_CONFIG_H
|
#define SUDO_CONFIG_H
|
||||||
|
|
||||||
|
/* Configure script arguments used to build sudo. */
|
||||||
|
#undef CONFIGURE_ARGS
|
||||||
|
|
||||||
/* Define to 1 if you want the insults from the "classic" version sudo. */
|
/* Define to 1 if you want the insults from the "classic" version sudo. */
|
||||||
#undef CLASSIC_INSULTS
|
#undef CLASSIC_INSULTS
|
||||||
|
|
||||||
|
8
configure
vendored
8
configure
vendored
@@ -809,7 +809,6 @@ LIBCRYPTO
|
|||||||
LIBINTL
|
LIBINTL
|
||||||
LIBRT
|
LIBRT
|
||||||
LIBDL
|
LIBDL
|
||||||
CONFIGURE_ARGS
|
|
||||||
LIBTOOL_DEPS
|
LIBTOOL_DEPS
|
||||||
ZLIB_SRC
|
ZLIB_SRC
|
||||||
ZLIB
|
ZLIB
|
||||||
@@ -3604,7 +3603,6 @@ AAMAN=0
|
|||||||
devdir='$(srcdir)'
|
devdir='$(srcdir)'
|
||||||
PRELOAD_MODULE='-module'
|
PRELOAD_MODULE='-module'
|
||||||
LDAP='#'
|
LDAP='#'
|
||||||
CONFIGURE_ARGS=$@
|
|
||||||
SUDO_NLS=disabled
|
SUDO_NLS=disabled
|
||||||
exampledir='$(docdir)/examples'
|
exampledir='$(docdir)/examples'
|
||||||
PYTHON_PLUGIN='#'
|
PYTHON_PLUGIN='#'
|
||||||
@@ -3714,6 +3712,7 @@ devsearch="/dev/pts:/dev/vt:/dev/term:/dev/zcons:/dev/pty:/dev"
|
|||||||
: ${SUDOERS_MODE='0440'}
|
: ${SUDOERS_MODE='0440'}
|
||||||
: ${SUDOERS_UID='0'}
|
: ${SUDOERS_UID='0'}
|
||||||
: ${SUDOERS_GID='0'}
|
: ${SUDOERS_GID='0'}
|
||||||
|
CONFIGURE_ARGS="$@"
|
||||||
AUTH_REG=
|
AUTH_REG=
|
||||||
AUTH_EXCL=
|
AUTH_EXCL=
|
||||||
AUTH_EXCL_DEF=
|
AUTH_EXCL_DEF=
|
||||||
@@ -17519,6 +17518,11 @@ fi
|
|||||||
fi
|
fi
|
||||||
sudo_cv_prev_host="$host"
|
sudo_cv_prev_host="$host"
|
||||||
|
|
||||||
|
cat >>confdefs.h <<EOF
|
||||||
|
#define CONFIGURE_ARGS "$CONFIGURE_ARGS"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
if test -n "$host_os"
|
if test -n "$host_os"
|
||||||
then :
|
then :
|
||||||
|
|
||||||
|
12
configure.ac
12
configure.ac
@@ -86,7 +86,6 @@ AC_SUBST([LOGINCAP_USAGE])dnl
|
|||||||
AC_SUBST([ZLIB])dnl
|
AC_SUBST([ZLIB])dnl
|
||||||
AC_SUBST([ZLIB_SRC])dnl
|
AC_SUBST([ZLIB_SRC])dnl
|
||||||
AC_SUBST([LIBTOOL_DEPS])dnl
|
AC_SUBST([LIBTOOL_DEPS])dnl
|
||||||
AC_SUBST([CONFIGURE_ARGS], [$@])dnl
|
|
||||||
AC_SUBST([LIBDL])dnl
|
AC_SUBST([LIBDL])dnl
|
||||||
AC_SUBST([LIBRT])dnl
|
AC_SUBST([LIBRT])dnl
|
||||||
AC_SUBST([LIBINTL])dnl
|
AC_SUBST([LIBINTL])dnl
|
||||||
@@ -240,6 +239,7 @@ dnl
|
|||||||
dnl
|
dnl
|
||||||
dnl Other variables
|
dnl Other variables
|
||||||
dnl
|
dnl
|
||||||
|
CONFIGURE_ARGS="$@"
|
||||||
AUTH_REG=
|
AUTH_REG=
|
||||||
AUTH_EXCL=
|
AUTH_EXCL=
|
||||||
AUTH_EXCL_DEF=
|
AUTH_EXCL_DEF=
|
||||||
@@ -1736,6 +1736,11 @@ AS_IF([test -n "$sudo_cv_prev_host"], [
|
|||||||
])
|
])
|
||||||
sudo_cv_prev_host="$host"
|
sudo_cv_prev_host="$host"
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Store configure arguments for "sudo -V"
|
||||||
|
dnl
|
||||||
|
SUDO_DEFINE_UNQUOTED([CONFIGURE_ARGS], "$CONFIGURE_ARGS")
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl We want to be able to differentiate between different rev's
|
dnl We want to be able to differentiate between different rev's
|
||||||
dnl
|
dnl
|
||||||
@@ -4686,7 +4691,10 @@ dnl
|
|||||||
dnl Bits to copy verbatim into config.h.in
|
dnl Bits to copy verbatim into config.h.in
|
||||||
dnl
|
dnl
|
||||||
AH_TOP([#ifndef SUDO_CONFIG_H
|
AH_TOP([#ifndef SUDO_CONFIG_H
|
||||||
#define SUDO_CONFIG_H])
|
#define SUDO_CONFIG_H
|
||||||
|
|
||||||
|
/* Configure script arguments used to build sudo. */
|
||||||
|
#undef CONFIGURE_ARGS])
|
||||||
|
|
||||||
AH_BOTTOM([#ifndef HAVE_SIG_ATOMIC_T
|
AH_BOTTOM([#ifndef HAVE_SIG_ATOMIC_T
|
||||||
typedef int sig_atomic_t;
|
typedef int sig_atomic_t;
|
||||||
|
@@ -64,7 +64,6 @@
|
|||||||
# include <prot.h>
|
# include <prot.h>
|
||||||
#endif /* HAVE_GETPRPWNAM && HAVE_SET_AUTH_PARAMETERS */
|
#endif /* HAVE_GETPRPWNAM && HAVE_SET_AUTH_PARAMETERS */
|
||||||
|
|
||||||
#include <sudo_usage.h>
|
|
||||||
#include "sudo.h"
|
#include "sudo.h"
|
||||||
#include "sudo_plugin.h"
|
#include "sudo_plugin.h"
|
||||||
#include "sudo_plugin_int.h"
|
#include "sudo_plugin_int.h"
|
||||||
|
@@ -31,9 +31,4 @@
|
|||||||
#define SUDO_USAGE4 " [-ABbEHkNnPS] @BSDAUTH_USAGE@@SELINUX_USAGE@[-C num] [-D directory] @LOGINCAP_USAGE@[-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] [VAR=value] [-i | -s] [command [arg ...]]"
|
#define SUDO_USAGE4 " [-ABbEHkNnPS] @BSDAUTH_USAGE@@SELINUX_USAGE@[-C num] [-D directory] @LOGINCAP_USAGE@[-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] [VAR=value] [-i | -s] [command [arg ...]]"
|
||||||
#define SUDO_USAGE5 " -e [-ABkNnS] @BSDAUTH_USAGE@@SELINUX_USAGE@[-C num] @LOGINCAP_USAGE@[-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ..."
|
#define SUDO_USAGE5 " -e [-ABkNnS] @BSDAUTH_USAGE@@SELINUX_USAGE@[-C num] @LOGINCAP_USAGE@[-D directory] [-g group] [-h host] [-p prompt] [-R directory] [-T timeout] [-u user] file ..."
|
||||||
|
|
||||||
/*
|
|
||||||
* Configure script arguments used to build sudo.
|
|
||||||
*/
|
|
||||||
#define CONFIGURE_ARGS "@CONFIGURE_ARGS@"
|
|
||||||
|
|
||||||
#endif /* SUDO_USAGE_H */
|
#endif /* SUDO_USAGE_H */
|
||||||
|
Reference in New Issue
Block a user