From 0455b7d325801142694c0a222acb08c7e2739f7d Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Wed, 16 Dec 2020 19:47:18 +0100 Subject: Warn about static libs vs. source-highlight only when necessary Avoid the error message when source-highlight is actually available. 2020-12-19 Bernd Edlinger * configure.ac: Move the static libs vs. source-highlight error message to a better place. * configure: Regenerate. --- gdb/configure | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gdb/configure') diff --git a/gdb/configure b/gdb/configure index 24e6fbc..51b4d19 100755 --- a/gdb/configure +++ b/gdb/configure @@ -12069,13 +12069,13 @@ $as_echo "no - pkg-config not found" >&6; } as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5 fi else - case "$LDFLAGS" in - *static-libstdc*) - as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5 - ;; - esac - if ${pkg_config_prog_path} --exists source-highlight; then + case "$LDFLAGS" in + *static-libstdc*) + as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5 + ;; + esac + SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight` SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight` -- cgit v1.1