Closed AlexeiKharchev closed 1 year ago
to solve problem I just commented configure.ac:
sed -i '106,111s/^(.*)$/#\1/' configure.ac sed -i 's/^(AC_CHECK_FUNCS.hypot)/#\1/' configure.ac autoreconf -fi LIBS=-lm ./configure --prefix="$installdir" --disable-static make make check make install
but it is not a solution!
Don't have time to check it right now this moment, I will check this later today, but here is something you can try in the meantime.
While dealing with the various versions of configure, some versions didn't quite understand AC_SEARCH_LIBS(), and therefore AC_CHECK_LIB() was used as a catch. Newer versions of configure are okay with AC_SEARCH_LIBS(), and I suspect that autoconf may have dropped AC_CHECK_LIB() or something may have broke with autoconf since this code hasn't changed for years.
Try simplify configure.ac here:
AC_CHECK_HEADER([math.h],
AC_SEARCH_LIBS([cos],[m],[have_libm=yes],
AC_CHECK_LIB([m],[cos],[have_libm=yes])))
if test x"${have_libm}" != xyes; then
AC_MSG_FAILURE([ERROR: Please install Math libraries and math.h include files for libm],[1])
fi
to
have_libm=maybe
AC_CHECK_HEADER([math.h],
AC_SEARCH_LIBS([cos],[m],[have_libm=yes]))
if test x"${have_libm}" != xyes; then
AC_MSG_FAILURE([ERROR: Please install Math libraries and math.h include files fi
If it works and you want to send in a patch, go ahead. Looking at it now, I could have updated configure.guess and configure.sub too :-)
Hi @AlexeiKharchev, Had to run linux mint to find this problem...Found the problem. You are missing libtool development files. Doing a search for linux mint libtool showed this mint libtool dev files
After you install those dev files try again:
autoreconf -fvi
automake
./configure
make check
Seeing this works, I think it is safe to close this issue as resolved.
wget -O libspiro-20221101.tar.gz https://github.com/fontforge/libspiro/archive/refs/tags/20221101.tar.gz tar xvf libspiro-20221101.tar.gz autoreconf -fvi
error line 14517: syntax error near unexpected token `done', where I see two cycles "for ac_func in " for inside each other where uses the same var ac_func except this, in first cycle: else case e in e)
and in nested if again else case e in e)
in whole, syntax is correct, I don't understand where is a mistake but the same time, code too comple to find bug
checking whether the gcc linker (/usr/local/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for a sed that does not truncate output... (cached) /usr/local/bin/sed checking for valgrind... valgrind checking for strip... (cached) strip checking whether make supports nested variables... (cached) yes checking for math.h... yes ./configure: line 14517: syntax error near unexpected token
done' ./configure: line 14517:
done'Linux Mint 20.3 Cinnamon x86_64 - kernel 5.15