From d4746e6c3d84c83c122a690cd063f047f440b4ca Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Sat, 19 Jun 2021 10:12:42 -0300 Subject: [PATCH] Fixing 'default host' option. --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f0ca114..325b300 100644 --- a/configure.ac +++ b/configure.ac @@ -522,8 +522,10 @@ AC_ARG_WITH([default-host], [AS_HELP_STRING([--with-default-host], [Set lib3270 [ app_default_host="\"$withval\""], [ app_default_host=""]) -AC_DEFINE_UNQUOTED(LIB3270_DEFAULT_HOST, $app_default_host, ["The default tn3270 host"]) -AC_SUBST(LIB3270_DEFAULT_HOST,$app_default_host) +if test "$app_default_host" != ""; then + AC_DEFINE_UNQUOTED(LIB3270_DEFAULT_HOST, $app_default_host, ["The default tn3270 host"]) + AC_SUBST(LIB3270_DEFAULT_HOST,$app_default_host) +fi AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static], [Enable build and install the static library])], -- libgit2 0.21.2