Skip to content
Snippets Groups Projects
Commit 2e9710c8 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

test existence of xml2 library

parent 8a95e117
No related branches found
No related tags found
No related merge requests found
...@@ -47,12 +47,24 @@ ifneq (0, $(CPPUNIT_EXISTS)) ...@@ -47,12 +47,24 @@ ifneq (0, $(CPPUNIT_EXISTS))
$(error You need cppunit installed) $(error You need cppunit installed)
endif endif
   
CPPUNIT_SO_TMP = $(shell ld --verbose | grep SEARCH | tr \ \\\n | sed s/SEARCH_DIR//g | sed s/\(\\\"//g | sed s/\\\"\)\\\;//g | sed s/^=//g | sort -u | sed \s/$$/\\/libcppunit.so/g\) CPPUNIT_SO_TMP = $(shell ld --verbose | grep SEARCH | tr \ \\\n | sed s/SEARCH_DIR//g | sed s/\(\\\"//g | sed s/\\\"\)\\\;//g | sed s/^=//g | sort -u | sed \s/$$/\\/libcppunit.so*/g\)
CPPUNIT_SO_EXISTS = $(shell ls $(CPPUNIT_SO_TMP) 2>/dev/null | wc -l) CPPUNIT_SO_EXISTS = $(shell ls $(CPPUNIT_SO_TMP) 2>/dev/null | wc -l)
ifeq (0, $(CPPUNIT_SO_EXISTS)) ifeq (0, $(CPPUNIT_SO_EXISTS))
$(error You need cppunit installed) $(error You need cppunit installed)
endif endif
   
LIBXML2_EXISTS = $(shell $(CXX) -c -o /dev/null -xc++ - <<< \\\#include\ \<libxml/xmlreader.h\> 2>/dev/null; echo $$?)
ifneq (0, $(LIBXML2_EXISTS))
$(error You need libxml2 installed)
endif
LIBXML2_SO_TMP = $(shell ld --verbose | grep SEARCH | tr \ \\\n | sed s/SEARCH_DIR//g | sed s/\(\\\"//g | sed s/\\\"\)\\\;//g | sed s/^=//g | sort -u | sed \s/$$/\\/libxml2.so*/g\)
$(info $(LIBXML2_SO_TMP))
LIBXML2_SO_EXISTS = $(shell ls $(LIBXML2_SO_TMP) 2>/dev/null | wc -l)
ifeq (0, $(LIBXML2_SO_EXISTS))
$(error You need libxml2 installed)
endif
   
SUBDIRS_WITH_MAKE = $(dir $(wildcard */makefile)) SUBDIRS_WITH_MAKE = $(dir $(wildcard */makefile))
   
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment