From 3b9c72df689677a814b1f1a615efdea0c03cf633 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Mon, 19 Dec 2022 15:42:15 +0900 Subject: [PATCH] "pkg-config --cflags" may be empty For example, Apache Arrow C++ is installed in system directory. --- r/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r/configure b/r/configure index 8184080ed7b9e..2ff01d2e6353a 100755 --- a/r/configure +++ b/r/configure @@ -106,7 +106,7 @@ else PKGCONFIG_DIRS=`pkg-config --libs-only-L --silence-errors ${PKG_CONFIG_NAME}` fi - if [ "$PKGCONFIG_CFLAGS" ] && [ "$PKGCONFIG_LIBS" ]; then + if [ "$PKGCONFIG_LIBS" != "" ]; then FOUND_LIB_DIR=`echo $PKGCONFIG_DIRS | sed -e 's/^-L//'` echo "*** Arrow C++ libraries found via pkg-config at $FOUND_LIB_DIR" PKG_CFLAGS="$PKGCONFIG_CFLAGS $PKG_CFLAGS"