From 15632a9c2e0112a11ea52271fc4bb6473070151d Mon Sep 17 00:00:00 2001 From: John Ellson Date: Fri, 16 Aug 2013 12:28:50 -0400 Subject: [PATCH] check for libann.so or libANN.so explicitly (Fedora v. Ubuntu) --- configure.ac | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 38ebfc4d2..600f86989 100644 --- a/configure.ac +++ b/configure.ac @@ -2491,15 +2491,22 @@ else AC_SUBST([ANN_CFLAGS]) AC_SUBST([ANN_LIBS]) ],[ - AC_CHECK_PROGS(ANN2FIG,ann2fig,false) - if test "$ANN2FIG" != "false"; then + if test -f /usr/lib$LIBPOSTFIX/libANN.so; then AC_DEFINE_UNQUOTED(HAVE_ANN,1, [Define if you have the ann library]) ANN_LIBS=-lANN AC_SUBST([ANN_LIBS]) use_ann="Yes (but no ann.pc found)" else - use_ann="No (ANN library not available)" + if test -f /usr/lib$LIBPOSTFIX/libann.so; then + AC_DEFINE_UNQUOTED(HAVE_ANN,1, + [Define if you have the ann library]) + ANN_LIBS=-lann + AC_SUBST([ANN_LIBS]) + use_ann="Yes (but no ann.pc found)" + else + use_ann="No (ANN library not available)" + fi fi ]) fi -- 2.40.0