[cairo-commit] cairo autogen.sh,1.3,1.4

Dave Beckett commit at pdx.freedesktop.org
Fri Jul 9 09:16:51 PDT 2004


Committed by: dajobe

Update of /cvs/cairo/cairo
In directory pdx:/tmp/cvs-serv21244

Modified Files:
	autogen.sh 
Log Message:
Require automake 1.7 (and thus aclocal 1.7) which
requires autoconf 2.54. Changed since newer libtools may fail to
work with older automake versions such as 1.4.  I bet this will
annoy people with older tool chains :(


Index: autogen.sh
===================================================================
RCS file: /cvs/cairo/cairo/autogen.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** autogen.sh	5 Dec 2003 18:30:39 -0000	1.3
--- autogen.sh	9 Jul 2004 16:16:47 -0000	1.4
***************
*** 4,7 ****
--- 4,9 ----
  set -e
  
+ PACKAGE=cairo
+ 
  LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
  LIBTOOLIZE_FLAGS="--copy --force"
***************
*** 12,17 ****
--- 14,86 ----
  AUTOCONF=${AUTOCONF-autoconf}
  
+ # automake 1.8 requires autoconf 2.58
+ # automake 1.7 requires autoconf 2.54
+ automake_min_vers=1.7
+ aclocal_min_vers=$automake_min_vers
+ autoconf_min_vers=2.54
+ libtoolize_min_vers=1.4
+ 
+ 
  ARGV0=$0
  
+ if ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 ; then
+     if ($AUTOCONF --version | awk 'NR==1 { if( $3 >= '$autoconf_min_vers') \
+ 			       exit 1; exit 0; }');
+     then
+        echo "$ARGV0: ERROR: \`$AUTOCONF' is too old."
+        echo "           (version $autoconf_min_vers or newer is required)"
+        DIE="yes"
+     fi
+ else
+     echo
+     echo "$ARGV0: ERROR: You must have \`$AUTOCONF' installed to compile $PACKAGE."
+     echo "           (version $autoconf_min_vers or newer is required)"
+     DIE="yes"
+ fi
+ 
+ if ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 ; then
+   if ($AUTOMAKE --version | awk 'NR==1 { if( $4 >= '$automake_min_vers') \
+ 			     exit 1; exit 0; }');
+      then
+      echo "$ARGV0: ERROR: \`$AUTOMAKE' is too old."
+      echo "           (version $automake_min_vers or newer is required)"
+      DIE="yes"
+   fi
+   if ($ACLOCAL --version) < /dev/null > /dev/null 2>&1; then
+     if ($ACLOCAL --version | awk 'NR==1 { if( $4 >= '$aclocal_min_vers' ) \
+ 						exit 1; exit 0; }' );
+     then
+       echo "$ARGV0: ERROR: \`$ACLOCAL' is too old."
+       echo "           (version $aclocal_min_vers or newer is required)"
+       DIE="yes"
+     fi
+   else
+     echo
+     echo "$ARGV0: ERROR: Missing \`$ACLOCAL'"
+     echo "           The version of $AUTOMAKE installed doesn't appear recent enough."
+     DIE="yes"
+   fi
+ else
+     echo
+     echo "$ARGV0: ERROR: You must have \`$AUTOMAKE' installed to compile $PACKAGE."
+     echo "           (version $automake_min_vers or newer is required)"
+     DIE="yes"
+ fi
+ 
+ if (libtoolize --version) < /dev/null > /dev/null 2>&1 ; then
+     if (libtoolize --version | awk 'NR==1 { if( $4 >= '$libtoolize_min_vers') \
+ 			       exit 1; exit 0; }');
+     then
+        echo "$ARGV0: ERROR: \`libtoolize' is too old."
+        echo "           (version $libtoolize_min_vers or newer is required)"
+        DIE="yes"
+     fi
+ else
+     echo
+     echo "$ARGV0: ERROR: You must have \`libtoolize' installed to compile $PACKAGE."
+     echo "           (version $libtoolize_min_vers or newer is required)"
+     DIE="yes"
+ fi
+ 
  if test -z "$ACLOCAL_FLAGS"; then
      acdir=`aclocal --print-ac-dir`
***************
*** 25,32 ****
  	echo "pkg-config is available from:"
  	echo "http://www.freedesktop.org/software/pkgconfig/"
! 	exit 1
      fi
  fi
  
  if test -z "$*"; then
    echo "$ARGV0:	Note: \`./configure' will be run with no arguments."
--- 94,106 ----
  	echo "pkg-config is available from:"
  	echo "http://www.freedesktop.org/software/pkgconfig/"
! 	DIE=yes
      fi
  fi
  
+ if test "X$DIE" != X; then
+   exit 1
+ fi
+ 
+ 
  if test -z "$*"; then
    echo "$ARGV0:	Note: \`./configure' will be run with no arguments."





More information about the cairo-commit mailing list