chiark / gitweb /
changed build to not do the I2C checks.
[wiringPi.git] / build
diff --git a/build b/build
index cc6804a6a7f3e544fa5edc7affddd0bd910e3766..666ab878c445f556cfb5d0b4824841c6a6e82e67 100755 (executable)
--- a/build
+++ b/build
@@ -2,17 +2,17 @@
 
 i2c-install()
 {
 echo "* wiringPi needs the I2C Development Libraires installing."
 echo ""
 echo "If using Debian/Raspbian, then type this command:"
 echo "  sudo apt-get install libi2c-dev"
 echo "then run ./build again."
 echo ""
 echo "If using another Linux distribution, then you will have to"
 echo "work out how to install the I2C Developmen Libraries for your"
 echo "system. (Sorry - I don't know - do let me know though!)"
 echo ""
 exit 1
+ echo "* wiringPi needs the I2C Development Libraires installing."
+ echo ""
+ echo "If using Debian/Raspbian, then type this command:"
+ echo "  sudo apt-get install libi2c-dev"
+ echo "then run ./build again."
+ echo ""
+ echo "If using another Linux distribution, then you will have to"
+ echo "work out how to install the I2C Developmen Libraries for your"
+ echo "system. (Sorry - I don't know - do let me know though!)"
+ echo ""
+ exit 1
 }
 
 check-make-ok()
@@ -56,13 +56,13 @@ else
 
 # Check for I2C being installed...
 
-  if [ ! -f /usr/include/linux/i2c-dev.h ]; then
-    i2c-install
-  fi
-  grep -q i2c_smbus_read_byte /usr/include/linux/i2c-dev.h
-  if [ $? = 1 ]; then
-    i2c-install
-  fi
+# if [ ! -f /usr/include/linux/i2c-dev.h ]; then
+#   i2c-install
+# fi
+# grep -q i2c_smbus_read_byte /usr/include/linux/i2c-dev.h
+# if [ $? = 1 ]; then
+#   i2c-install
+# fi
 
   echo "WiringPi library"
   cd wiringPi