configure: Use pkg-config for jimtcl
The jimtcl project supports pkg-config, use it for a simpler configuration of compiler and linker flags and to enforce the minimum required package version. Since the jimtcl pkg-config file is not available on all systems, use AC_CHECK_HEADER() as fallback. Change-Id: I6fdcc818a8fdd205a126b0a46356434dbe890226 Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8383 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
16c114c058
commit
a8a0b4c507
@@ -17,8 +17,12 @@ bin_PROGRAMS += %D%/openocd
|
||||
if INTERNAL_JIMTCL
|
||||
%C%_openocd_LDADD += $(top_builddir)/jimtcl/libjim.a
|
||||
else
|
||||
if HAVE_JIMTCL_PKG_CONFIG
|
||||
%C%_openocd_LDADD += $(JIMTCL_LIBS)
|
||||
else
|
||||
%C%_openocd_LDADD += -ljim
|
||||
endif
|
||||
endif
|
||||
|
||||
%C%_libopenocd_la_CPPFLAGS =
|
||||
|
||||
|
||||
Reference in New Issue
Block a user