diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2020-12-16 19:47:18 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2020-12-19 09:21:07 +0100 |
commit | 0455b7d325801142694c0a222acb08c7e2739f7d (patch) | |
tree | 7ef94879a771e47ccc4a00704c6ad2abc1f14fa6 /gdb/configure.ac | |
parent | a24e04984717e824f938b278f8e5b43ee31c03b4 (diff) | |
download | gdb-0455b7d325801142694c0a222acb08c7e2739f7d.zip gdb-0455b7d325801142694c0a222acb08c7e2739f7d.tar.gz gdb-0455b7d325801142694c0a222acb08c7e2739f7d.tar.bz2 |
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 <bernd.edlinger@hotmail.de>
* configure.ac: Move the static libs vs. source-highlight
error message to a better place.
* configure: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 32f25d9..28703d7 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1238,15 +1238,15 @@ if test "${enable_source_highlight}" != "no"; then AC_MSG_ERROR([pkg-config was not found in your system]) fi else - case "$LDFLAGS" in - *static-libstdc*) - AC_MSG_ERROR([source highlight is incompatible with -static-libstdc++; dnl + if ${pkg_config_prog_path} --exists source-highlight; then + case "$LDFLAGS" in + *static-libstdc*) + AC_MSG_ERROR([source highlight is incompatible with -static-libstdc++; dnl either use --disable-source-highlight or dnl --without-static-standard-libraries]) - ;; - esac + ;; + esac - if ${pkg_config_prog_path} --exists source-highlight; then SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight` SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight` AC_DEFINE([HAVE_SOURCE_HIGHLIGHT], 1, |