]> granicus.if.org Git - transmission/commitdiff
(trunk) #3901 "Confusing error message when libtool is missing" -- fixed.
authorJordan Lee <jordan@transmissionbt.com>
Sat, 22 Jan 2011 03:28:06 +0000 (03:28 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sat, 22 Jan 2011 03:28:06 +0000 (03:28 +0000)
autogen.sh invokes autoreconf without checking to see if it fails (as it does if libtool can't be found). In such cases it also invokes a broken doomed version of the configure script, which generates a lot of red herring messages that distract from the real problem encountered by autoreconf.

The fix is to exit autogen.sh if its call to autoreconf fails.

autogen.sh

index 9273b99236fb0ecfc828f81c4b26c997b45ba27c..56f2b745d0e2925ff0990694ad46e16c9fee4d17 100755 (executable)
@@ -25,6 +25,10 @@ export LIBTOOLIZE
 ./update-version-h.sh
 
 autoreconf -fi
+if [[ $? -ne 0 ]]; then
+  exit 1
+fi
+
 
 if test "$GETTEXTIZE"; then
   echo "Creating aclocal.m4 ..."