From 3c9691f28636025d649f499bce4479ca87804277 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 26 May 2019 17:29:23 +0200 Subject: [PATCH] configure: Fix cross builds (check for TensorFlow header) AC_CHECK_FILE does not work in cross builds. Such builds aborted. Replace it by AC_CHECK_HEADERS. This fixes cross builds. To enable TensorFlow in cross builds, more work is needed. Signed-off-by: Stefan Weil --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ae14ae8d3b..c7da7fbe53 100644 --- a/configure.ac +++ b/configure.ac @@ -203,7 +203,7 @@ AC_ARG_WITH([tensorflow], AM_CONDITIONAL([TENSORFLOW], false) TENSORFLOW_LIBS= AS_IF([test "x$with_tensorflow" != xno], - [AC_CHECK_FILE([/usr/include/tensorflow/core/framework/graph.pb.h], + [AC_CHECK_HEADERS(["tensorflow/core/framework/graph.pb.h"], [AC_SUBST([TENSORFLOW_LIBS], ["-lprotobuf -ltensorflow_cc"]) AM_CONDITIONAL([TENSORFLOW], true) ],