diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-05-20 07:59:59 -0500 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-05-21 11:13:08 -0500 |
commit | faa22d89d2c8c1e683d99793269f5a72c9515de9 (patch) | |
tree | 52303755b35d041300bf9a9d2b47fb16030dfce4 /configure.ac | |
parent | 6ad1adaab46968855a92465a27cc1ffc6ea6e5b3 (diff) | |
download | groff-git-faa22d89d2c8c1e683d99793269f5a72c9515de9.tar.gz |
configure.ac: Fix shell style nits.
* configure.ac: Fix shell style nits. Get rid of string (non-)nullity
tests and comparisons involving concatenation with garbage (usually
"x"). See 13 November entry regarding m4. Use idiomatic shell "brace
style" for control structures.
Also fix trailing whitespace.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index 9f8cce48d..9b69b41d2 100644 --- a/configure.ac +++ b/configure.ac @@ -181,26 +181,26 @@ GROFF_URW_FONTS AM_CONDITIONAL([BUILD_WINSCRIPTS], [test -n "$make_winscripts"]) # If X11 is not available, don't build: -# font/devX75 +# font/devX75 # font/devX75-12 # font/devX100 # font/devX100-12 -# src/devices/xditview +# src/devices/xditview # src/utils/xtotroff # src/libs/libxutil -AM_CONDITIONAL([WITHOUT_X11], [test "x$groff_no_x" = "xyes"]) +AM_CONDITIONAL([WITHOUT_X11], [test "$groff_no_x" = yes]) # make builtin variable RM -AM_CONDITIONAL([MAKE_DONT_HAVE_RM], [test "x$groff_is_rm_defined" = "xno"]) +AM_CONDITIONAL([MAKE_DONT_HAVE_RM], [test "$groff_is_rm_defined" = no]) # Some programs have a "g" prefix if an existing groff installation is detected -AM_CONDITIONAL([USEPROGRAMPREFIX], [test x$g = xg]) +AM_CONDITIONAL([USEPROGRAMPREFIX], [test "$g" = g]) AM_CONDITIONAL([BUILD_HTML], [test -n "$make_htmldoc"]) AM_CONDITIONAL([BUILD_PDFDOC], [test -n "$make_pdfdoc"]) -AM_CONDITIONAL([USE_GROFF_ALLOCATOR], [test "x$groff_use_own_allocator" = "xyes"]) -AM_CONDITIONAL([HAVE_PDFTOOLS], [test "x$groff_have_pdftools" = "xyes" ]) -AM_CONDITIONAL([HAVE_TEXI2DVI], [test "x$groff_have_texi2dvi" = "xyes" ]) +AM_CONDITIONAL([USE_GROFF_ALLOCATOR], [test "$groff_use_own_allocator" = yes]) +AM_CONDITIONAL([HAVE_PDFTOOLS], [test "$groff_have_pdftools" = yes ]) +AM_CONDITIONAL([HAVE_TEXI2DVI], [test "$groff_have_texi2dvi" = yes ]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([test-groff], [chmod +x test-groff]) @@ -214,11 +214,12 @@ ${PACKAGE_NAME} version ${PACKAGE_VERSION} use libgroff's memory allocator : $groff_use_own_allocator C compiler : ${CC} ${CFLAGS} ${CPPFLAGS} Perl interpreter version : $perl_version" -if test "x$groff_no_x" = "xyes"; then -echo "\ +if test "x$groff_no_x" = "xyes" +then + echo "\ X11 support : disabled" else -echo "\ + echo "\ X11 support : enabled X11 app defaults directory : $appresdir" fi |