+ [ test x"$withval" = x"no" || PCMK_GNUTLS_PRIORITIES="$withval" ]
+)
INITDIR=""
-AC_ARG_WITH(initdir,
- [ --with-initdir=DIR Directory for init (rc) scripts],
- [ INITDIR="$withval" ])
+AC_ARG_WITH([initdir],
+ [AS_HELP_STRING([--with-initdir=DIR],
+ [directory for init (rc) scripts])],
+ [ INITDIR="$withval" ]
+)
SUPPORT_PROFILING=0
-AC_ARG_WITH(profiling,
- [ --with-profiling Disable optimizations for effective profiling ],
- [ SUPPORT_PROFILING=$withval ])
+AC_ARG_WITH([profiling],
+ [AS_HELP_STRING([--with-profiling],
+ [disable optimizations for effective profiling])],
+ [ SUPPORT_PROFILING=$withval ]
+)
-AC_ARG_WITH(coverage,
- [ --with-coverage Disable optimizations for effective profiling ],
- [ SUPPORT_COVERAGE=$withval ])
+AC_ARG_WITH([coverage],
+ [AS_HELP_STRING([--with-coverage],
+ [disable optimizations for effective profiling])],
+ [ SUPPORT_COVERAGE=$withval ]
+)
PUBLICAN_BRAND="common"
-AC_ARG_WITH(brand,
- [ --with-brand=brand Brand to use for generated documentation (set empty for no docs) @<:@common@:>@],
- [ test x"$withval" = x"no" || PUBLICAN_BRAND="$withval" ])
+AC_ARG_WITH([brand],
+ [AS_HELP_STRING([--with-brand=brand],
+ [brand to use for generated documentation (set empty for no docs) @<:@common@:>@])],
+ [ test x"$withval" = x"no" || PUBLICAN_BRAND="$withval" ]
+)
AC_SUBST(PUBLICAN_BRAND)
BUG_URL=""
-AC_ARG_WITH(bug-url,
- [ --with-bug-url=DIR Address where users should submit bug reports @<:@https://bugs.clusterlabs.org/enter_bug.cgi?product=Pacemaker@:>@],
+AC_ARG_WITH([bug-url],
+ [AS_HELP_STRING([--with-bug-url=DIR],
+ [address where users should submit bug reports @<:@https://bugs.clusterlabs.org/enter_bug.cgi?product=Pacemaker@:>@])],
[ BUG_URL="$withval" ]
)
CONFIGDIR=""
-AC_ARG_WITH(configdir,
- [ --with-configdir=DIR Directory for Pacemaker configuration file @<:@SYSCONFDIR/sysconfig@:>@],
+AC_ARG_WITH([configdir],
+ [AS_HELP_STRING([--with-configdir=DIR],
+ [directory for Pacemaker configuration file @<:@SYSCONFDIR/sysconfig@:>@])],
[ CONFIGDIR="$withval" ]
)
CRM_LOG_DIR=""
-AC_ARG_WITH(logdir,
- [ --with-logdir=DIR Directory for Pacemaker log file @<:@LOCALSTATEDIR/log/pacemaker@:>@ ],
+AC_ARG_WITH([logdir],
+ [AS_HELP_STRING([--with-logdir=DIR],
+ [directory for Pacemaker log file @<:@LOCALSTATEDIR/log/pacemaker@:>@])],
[ CRM_LOG_DIR="$withval" ]
)
CRM_BUNDLE_DIR=""
-AC_ARG_WITH(bundledir,
- [ --with-bundledir=DIR Directory for Pacemaker bundle logs @<:@LOCALSTATEDIR/log/pacemaker/bundles@:>@ ],
+AC_ARG_WITH([bundledir],
+ [AS_HELP_STRING([--with-bundledir=DIR],
+ [directory for Pacemaker bundle logs @<:@LOCALSTATEDIR/log/pacemaker/bundles@:>@])],
[ CRM_BUNDLE_DIR="$withval" ]
)
CRM_DAEMON_USER=""
-AC_ARG_WITH(daemon-user,
- [ --with-daemon-user=USER User to run unprivileged Pacemaker daemons as (advanced option: changing this may break other cluster components unless similarly configured) @<:@hacluster@:>@ ],
+AC_ARG_WITH([daemon-user],
+ [AS_HELP_STRING([--with-daemon-user=USER],
+ [user to run unprivileged Pacemaker daemons as (advanced option: changing this may break other cluster components unless similarly configured) @<:@hacluster@:>@])],
[ CRM_DAEMON_USER="$withval" ]
)
CRM_DAEMON_GROUP=""
-AC_ARG_WITH(daemon-group,
- [ --with-daemon-group=GROUP Group to run unprivileged Pacemaker daemons as (advanced option: changing this may break other cluster components unless similarly configured) @<:@haclient@:>@ ],
+AC_ARG_WITH([daemon-group],
+ [AS_HELP_STRING([--with-daemon-group=GROUP],
+ [group to run unprivileged Pacemaker daemons as (advanced option: changing this may break other cluster components unless similarly configured) @<:@haclient@:>@])],
[ CRM_DAEMON_GROUP="$withval" ]
)
+
dnl Deprecated options
-AC_ARG_WITH(pkg-name,
- [ --with-pkg-name=name Deprecated and unused (will be removed in a future release) ],
+AC_ARG_WITH([pkg-name],
+ [AS_HELP_STRING([--with-pkg-name=name],
+ [deprecated and unused (will be removed in a future release)])],
)
-AC_ARG_WITH(pkgname,
- [ --with-pkgname=name Deprecated and unused (will be removed in a future release) ],
+AC_ARG_WITH([pkgname],
+ [AS_HELP_STRING([--with-pkgname=name],
+ [deprecated and unused (will be removed in a future release)])],
AC_MSG_CHECKING(whether printw() requires argument of "const char *")
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([
#if defined(HAVE_NCURSES_H)
# include <ncurses.h>
#elif defined(HAVE_NCURSES_NCURSES_H)
# include <ncurses/ncurses.h>
#elif defined(HAVE_CURSES_H)
# include <curses.h>
#endif
],
[printw((const char *)"Test");]
)],
[pcmk_cv_compatible_printw=yes],
[pcmk_cv_compatible_printw=no]
)
LIBS=$ac_save_LIBS
cc_restore_flags
AC_MSG_RESULT([$pcmk_cv_compatible_printw])
if test "$pcmk_cv_compatible_printw" = no; then
AC_MSG_WARN([The printw() function of your ncurses or curses library is old, we will disable usage of the library. If you want to use this library anyway, please update to newer version of the library, ncurses 5.4 or later is recommended. You can get the library from http://www.gnu.org/software/ncurses/.])
AC_MSG_NOTICE([Disabling curses])
AC_DEFINE(HAVE_INCOMPATIBLE_PRINTW, 1, [Do we have incompatible printw() in curses library?])