Fix --with-ctf

This commit is contained in:
Alejandro Gallo 2022-08-08 18:13:14 +02:00
parent 6b641e8581
commit 0b9ec59599

View File

@ -48,9 +48,9 @@ AC_ARG_ENABLE([docs],
[build_docs=YES], [build_docs=NO]) [build_docs=YES], [build_docs=NO])
dnl LIBGC library options dnl LIBGC library options
AC_ARG_WITH(libctf-prefix, AC_ARG_WITH(ctf,
AS_HELP_STRING([--with-ctf], [AS_HELP_STRING([--with-ctf],
[prefix for CTF includes and libraries] ), [prefix for CTF includes and libraries] )],
[LIBCTF_PATH="`readlink -f $withval`"; [LIBCTF_PATH="`readlink -f $withval`";
LIBCTF_CPATH="`readlink -f $withval`/include"; LIBCTF_CPATH="`readlink -f $withval`/include";
LIBCTF_LD_LIBRARY_PATH="`readlink -f $withval`/lib"; LIBCTF_LD_LIBRARY_PATH="`readlink -f $withval`/lib";
@ -145,7 +145,7 @@ dnl -----------------------------------------------------------------------
dnl CHECK CTF dnl CHECK CTF
if test xYES = x${BUILD_CTF}; then if test xYES = x${BUILD_CTF}; then
AC_MSG_WARN([Sorry, building CTF not supported yet provide a build path AC_MSG_WARN([Sorry, building CTF not supported yet provide a build path
with --with-libctf-prefix=path]) with --with-ctf=path/to/ctf/installation])
else else
CPPFLAGS="$CPPFLAGS -I${LIBCTF_CPATH}" CPPFLAGS="$CPPFLAGS -I${LIBCTF_CPATH}"
LDFLAGS="$LDFLAGS -L${LIBCTF_LD_LIBRARY_PATH} -lctf" LDFLAGS="$LDFLAGS -L${LIBCTF_LD_LIBRARY_PATH} -lctf"