bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 08/19] aclocal.m4, configure.in: Fix invisible Autoconf results.


From: G. Branden Robinson
Subject: [PATCH 08/19] aclocal.m4, configure.in: Fix invisible Autoconf results.
Date: Fri, 27 Oct 2023 11:44:41 -0500

...when $DESTDIR is empty or unset.
...when AC_TRY_COMPILE decides no etip.h workaround is required.
...when determining default loader flags.
...when determining an extra suffix for the library name.
...when determining list of compiled-in fallback terminal descriptions.

Also drop attempted expansion of $DESTDIR inside help string.  This
doesn't work with Thomas Dickey's version of Autoconf; a later version
supporting AS_HELP_STRING, and its use, would be necessary to do that.
---
 aclocal.m4   |  2 +-
 configure.in | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 31670bcc..d3e473bc 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2305,7 +2305,7 @@ AC_TRY_COMPILE([
 ],[])
 done
 done
-AC_MSG_RESULT($cf_result)
+AC_MSG_RESULT([${cf_result:-(none)}])
 CXXFLAGS="$cf_save_CXXFLAGS"
 ])
 dnl ---------------------------------------------------------------------------
diff --git a/configure.in b/configure.in
index 375b110b..e997084b 100644
--- a/configure.in
+++ b/configure.in
@@ -282,14 +282,14 @@ dnl adjust the location into which the actual install is 
done, so that an
 dnl archive can be built without modifying the host system's configuration.
 AC_MSG_CHECKING(for an installation directory prefix)
 AC_ARG_WITH(install-prefix,
-       [  --with-install-prefix=DESTDIR use DESTDIR as installation directory 
prefix ($DESTDIR)],
+       [  --with-install-prefix=DESTDIR use DESTDIR as installation directory 
prefix],
        [case "x$withval" in
        (xyes|xno)
                ;;
        (*)     DESTDIR="$withval"
                ;;
        esac])
-AC_MSG_RESULT($DESTDIR)
+AC_MSG_RESULT([${DESTDIR:-(none)}])
 AC_SUBST(DESTDIR)
 
 ###############################################################################
@@ -449,7 +449,7 @@ case "$DFT_LWR_MODEL" in
 (shared)  LD_MODEL=''   ;;
 esac
 AC_SUBST(LD_MODEL)dnl          the type of link (e.g., -g or -pg)
-AC_MSG_RESULT($LD_MODEL)
+AC_MSG_RESULT([${LD_MODEL:-(none)}])
 
 case "$DFT_LWR_MODEL" in
 (shared)
@@ -577,7 +577,7 @@ AC_ARG_WITH(extra-suffix,
                ;;
        esac
        ])
-AC_MSG_RESULT($EXTRA_SUFFIX)
+AC_MSG_RESULT([${EXTRA_SUFFIX:-(none)}])
 AC_SUBST(EXTRA_SUFFIX)
 
 ###    use option --disable-overwrite to leave out the link to -lcurses
@@ -630,7 +630,7 @@ AC_ARG_WITH(fallbacks,
        [  --with-fallbacks=XXX    specify list of fallback terminal 
descriptions],
        [with_fallback=$withval],
        [with_fallback=])
-AC_MSG_RESULT($with_fallback)
+AC_MSG_RESULT([${with_fallback:-(none)}])
 
 case ".$with_fallback" in
 (.|.no)
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]