[cairo-commit] cairo ChangeLog,1.932,1.933 autogen.sh,1.14,1.15

Owen Taylor commit at pdx.freedesktop.org
Mon Aug 22 04:24:00 EST 2005


Committed by: otaylor

Update of /cvs/cairo/cairo
In directory gabe:/tmp/cvs-serv3138

Modified Files:
	ChangeLog autogen.sh 
Log Message:
2005-08-21  Owen Taylor  <otaylor at redhat.com>

        * autogen.sh: Check automake-<ver> if automake isn't sufficiently
        new. (#3593, Philip Van Hoof)


Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/cairo/ChangeLog,v
retrieving revision 1.932
retrieving revision 1.933
diff -u -d -r1.932 -r1.933
--- ChangeLog	21 Aug 2005 16:57:19 -0000	1.932
+++ ChangeLog	21 Aug 2005 18:23:58 -0000	1.933
@@ -1,5 +1,10 @@
 2005-08-21  Owen Taylor  <otaylor at redhat.com>
 
+	* autogen.sh: Check automake-<ver> if automake isn't sufficiently
+	new. (#3593, Philip Van Hoof)
+	
+2005-08-21  Owen Taylor  <otaylor at redhat.com>
+
 	* autogen.sh: When invoked as, say, ../autogen.sh, switch to
 	the sourcedir to run the auto*. Based on corresponding code
 	in GTK+'s autogen.sh. (#3402, Thomas Fitzsimmons)

Index: autogen.sh
===================================================================
RCS file: /cvs/cairo/cairo/autogen.sh,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- autogen.sh	21 Aug 2005 16:57:19 -0000	1.14
+++ autogen.sh	21 Aug 2005 18:23:58 -0000	1.15
@@ -6,9 +6,7 @@
 
 LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
 LIBTOOLIZE_FLAGS="--copy --force"
-ACLOCAL=${ACLOCAL-aclocal}
 AUTOHEADER=${AUTOHEADER-autoheader}
-AUTOMAKE=${AUTOMAKE-automake}
 AUTOMAKE_FLAGS="--add-missing"
 AUTOCONF=${AUTOCONF-autoconf}
 
@@ -51,6 +49,33 @@
     DIE="yes"
 fi
 
+#
+# Hunt for an appropriate version of automake and aclocal; we can't
+# assume that 'automake' is necessarily the most recent installed version
+# 
+# We check automake first to allow it to be a newer version than we know about.
+#
+if test x"$AUTOMAKE" = x || test x"$ACLOCAL" = x ; then
+  am_ver=""
+  for ver in "" "-1.9" "-1.8" "-1.7" ; do
+    am="automake$ver"
+    if ($am --version) < /dev/null > /dev/null 2>&1 ; then
+      if ($am --version | head -n 1 | awk 'NR==1 { if( $(NF) >= '$automake_min_vers') \
+	  		 exit 1; exit 0; }'); then : ; else
+         am_ver=$ver
+         break;
+      fi
+    fi
+  done
+  
+  AUTOMAKE=${AUTOMAKE-automake$am_ver}
+  ACLOCAL=${ACLOCAL-aclocal$am_ver}
+fi
+
+#
+# Now repeat the tests with the copies we decided upon and error out if they
+# aren't sufficiently new.
+#
 if ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 ; then
   if ($AUTOMAKE --version | head -n 1 | awk 'NR==1 { if( $(NF) >= '$automake_min_vers') \
 			     exit 1; exit 0; }');



More information about the cairo-commit mailing list