+#
+# Some versions of Audacity leave /usr/local/lib unreadable/unsearchable. Ardour will not be able to start up if this is
+# the case, because we need access to /usr/local/lib/libjack.dylib
+#
+# except if there's no jack and hence also no /usr/local/lib dir in the first place.
+#
+
+if test -d /usr/local/lib -a ! -x /usr/local/lib -o -d /usr/local/lib -a ! -r /usr/local/lib ; then