- @echo '********' Warning: the directory where the C front-end is installed,
- @echo '********' Warning: and re-run configure if it does not.
+ @echo '********' Warning: the directory where the C front-end is
+ @echo '********' Warning: installed,and re-run configure if it does not.
+endif
+
+# Disable libprofile: a faulty libtool is generated by autoconf which breaks the
+# build on Sparc
+ifeq ($(ARCH), Sparc)
+PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))