Skip to content

Commit

Permalink
configure: Fix cross builds (check for TensorFlow header)
Browse files Browse the repository at this point in the history
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 <sw@weilnetz.de>
  • Loading branch information
stweil committed May 26, 2019
1 parent 3b210ec commit 3c9691f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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)
],
Expand Down

0 comments on commit 3c9691f

Please sign in to comment.