diff options
author | Justine Tunney <jart@google.com> | 2016-12-27 21:00:54 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-12-27 21:08:52 -0800 |
commit | bb890ea5fa4c8a2100a295e93c5bf37b3c88b55a (patch) | |
tree | 1c295a049c65fe34e37e91f423a2e34cbe0a20b7 /configure | |
parent | 8ac4834beeb7e186d0a1c3794fdc178fa3553d3b (diff) |
Make TensorFlow build libcurl from scratch
Google Cloud Platform support is now available for everyone by default.
Fixes #5349
Change: 143077241
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -55,41 +55,10 @@ while true; do done if is_windows; then - TF_NEED_GCP=0 TF_NEED_HDFS=0 TF_NEED_OPENCL=0 fi -while [ "$TF_NEED_GCP" == "" ]; do - read -p "Do you wish to build TensorFlow with "\ -"Google Cloud Platform support? [y/N] " INPUT - case $INPUT in - [Yy]* ) echo "Google Cloud Platform support will be enabled for "\ -"TensorFlow"; TF_NEED_GCP=1;; - [Nn]* ) echo "No Google Cloud Platform support will be enabled for "\ -"TensorFlow"; TF_NEED_GCP=0;; - "" ) echo "No Google Cloud Platform support will be enabled for "\ -"TensorFlow"; TF_NEED_GCP=0;; - * ) echo "Invalid selection: " $INPUT;; - esac -done - -if [ "$TF_NEED_GCP" == "1" ]; then - ## Verify that libcurl header files are available. - # Only check Linux, since on MacOS the header files are installed with XCode. - if [[ $(uname -a) =~ Linux ]] && [[ ! -f "/usr/include/curl/curl.h" ]]; then - echo "ERROR: It appears that the development version of libcurl is not "\ -"available. Please install the libcurl3-dev package." - exit 1 - fi - - # Update Bazel build configuration. - sed -i -e "s/WITH_GCP_SUPPORT = False/WITH_GCP_SUPPORT = True/" tensorflow/core/platform/default/build_config.bzl -else - # Update Bazel build configuration. - sed -i -e "s/WITH_GCP_SUPPORT = True/WITH_GCP_SUPPORT = False/" tensorflow/core/platform/default/build_config.bzl -fi - while [ "$TF_NEED_HDFS" == "" ]; do read -p "Do you wish to build TensorFlow with "\ "Hadoop File System support? [y/N] " INPUT |