autotools: on OSX warn about prefix being /usr
authorJean Guyomarc'h <jean.guyomarch@gmail.com>
Sat, 2 Apr 2016 20:17:53 +0000 (22:17 +0200)
committerJean Guyomarc'h <jean.guyomarch@gmail.com>
Sat, 2 Apr 2016 20:25:11 +0000 (22:25 +0200)
With Apple's SIP, nobody is allowed to modify the system
(excepted /usr/local). If SIP is enabled, the installation
will just fail.

configure.ac

index 03da7da2cc6617faff40d9502684b36787a1d8dc..9d305f1c6d31908cc9e0d26505bfcace654ac780 100644 (file)
@@ -6031,6 +6031,20 @@ if test "x$prefix" != "x/usr"; then
     echo ""
     echo "#-------------------------------------------------------------------#"
   fi
+
+elif test "x${have_darwin}" = "xyes"; then
+    echo ""
+    echo "#-------------------------------------------------------------------#"
+    echo "##==--                          ALERT                          --==##"
+    echo "#-------------------------------------------------------------------#"
+    echo ""
+    echo "  If you are running Mac OS X >= 10.11 (starting from El Capitan)"
+    echo "  you will have TROUBLE with the prefix you have chosen (/usr)..."
+    echo "  Don't make it double and consider to use the default prefix"
+    echo "  (/usr/local). This is because of Apple's SIP that provides MAC"
+    echo "  and prevents ANYONE modifying the system."
+    echo ""
+    echo "#-------------------------------------------------------------------#"
 fi
 
 if test "x${efl_deprecated_option}" = "xyes"; then