From 3f03045b3ace13759b1f4c95f61caaea088c6dcd Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Sat, 29 Dec 2018 09:49:31 +0100 Subject: [PATCH] [371-ld-warning-message-on-macos-build] Add lib64 only when it exists and is a directory --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a721b37dda..06459df446 100644 --- a/configure.ac +++ b/configure.ac @@ -985,11 +985,14 @@ else do if test -f $d/include/log4cplus/logger.h; then LOG4CPLUS_INCLUDES="-I$d/include" - LOG4CPLUS_LIBS="-L$d/lib -L$d/lib64" + LOG4CPLUS_LIBS="-L$d/lib" + if test -d $d/lib64; then + LOG4CPLUS_LIBS="$LOG4CPLUS_LIBS -L$d/lib64" + fi break fi done - DISTCHECK_LOG4CPLUS_CONFIGURE_FLAG="-with-log4cplus" + DISTCHECK_LOG4CPLUS_CONFIGURE_FLAG="-with-log4cplus" fi LOG4CPLUS_LIBS="$LOG4CPLUS_LIBS -llog4cplus" -- 2.47.2