Handle when ldconfig is not on the path, and do not run it until after
the libdir has been populated.

diff --git a/tools/wineinstall b/tools/wineinstall
index d7f73c0..3aed43b 100755
--- a/tools/wineinstall
+++ b/tools/wineinstall
@@ -288,7 +288,7 @@
       echo
       echo "$libdir doesn't exist in your /etc/ld.so.conf, it will be added"
       echo "when we perform the install..."
-      sucommand="echo $libdir>>/etc/ld.so.conf;ldconfig;$sucommand"
+      sucommand="$sucommand;echo $libdir>>/etc/ld.so.conf;$ac_cv_path_LDCONFIG"
     }
     fi