Use of brackets with autoconf
Russ Allbery
rra at stanford.edu
Thu Aug 20 22:59:03 UTC 2009
Julien ÉLIE <julien at trigofacile.com> writes:
> I tried to use double brackets ("[[" and "]]") but it did not work.
> I found out what Autoconf calls "quadrigraphs", for instance writing
> "@<:@" instead of "[".
> That's not very useful to use...
> Isn't there a better solution for our mere strings?
Nope, quadrigraphs are what you're supposed to use. The patch looks
correct to me.
> Index: m4/syslog.m4
> ===================================================================
> --- m4/syslog.m4 (révision 8572)
> +++ m4/syslog.m4 (copie de travail)
> @@ -13,7 +13,7 @@
> AC_DEFUN([INN_ARG_SYSLOG],
> [AC_ARG_WITH([syslog-facility],
> [AS_HELP_STRING([--with-syslog-facility=LOG_FAC],
> - [Syslog facility [LOG_NEWS or LOG_LOCAL1]])],
> + [Syslog facility @<:@LOG_NEWS or LOG_LOCAL1@:>@]])],
> SYSLOG_FACILITY=$with_syslog_facility,
> SYSLOG_FACILITY=none)])
> Index: configure.ac
> ===================================================================
> --- configure.ac (révision 8572)
> +++ configure.ac (copie de travail)
> @@ -85,11 +85,12 @@
> dnl setup macros if they do. Keep this call together with the libtool setup
> dnl so that the arguments to configure will be together in configure --help.
> inn_use_libtool=no
> -AC_ARG_ENABLE(libtool,
> - [ --enable-libtool Use libtool for lib generation [default=no]],
> - if test "$enableval" = yes ; then
> +AC_ARG_ENABLE([libtool],
> + [AS_HELP_STRING([--enable-libtool],
> + [Use libtool for lib generation @<:@default=no@:>@])],
> + [if test x"$enableval" = xyes ; then
> inn_use_libtool=yes
> - fi)
> + fi])
> if test x"$inn_use_libtool" = xyes ; then
> LT_INIT
> EXTLIB='la'
> --
> Julien ÉLIE
> « La vraie paresse, c'est de se lever à 6 heures du matin
> pour avoir plus longtemps à ne rien faire. » (Tristan Bernard)
> _______________________________________________
> inn-workers mailing list
> inn-workers at lists.isc.org
> https://lists.isc.org/mailman/listinfo/inn-workers
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers
mailing list