head 1.17; access; symbols RELEASE_1_0_2:1.16 BRANCH_1_0:1.16.0.2 RELEASE_1_0_0:1.16 BRANCH_SCALED_GLYPH:1.13.0.2 RELEASE_0_9_2:1.13 RELEASE_0_9_0:1.13 SNAPSHOT_0_6_0:1.12 SNAPSHOT_0_5_2:1.12 SNAPSHOT_0_5_1:1.12 SNAPSHOT_0_5_0:1.12 SNAPSHOT_0_4_0:1.11 SNAPSHOT_0_3_0:1.9 SNAPSHOT_0_2_0:1.8 LGPL_CHANGE_AFTER:1.5 LGPL_CHANGE_BEFORE:1.5 SNAPSHOT_0_1_23:1.3 SNAPSHOT_0_1_22:1.3 SNAPSHOT_0_1_21:1.3 SNAPSHOT_0_1_20:1.3 SNAPSHOT_0_1_16:1.3; locks; strict; comment @# @; 1.17 date 2006.04.25.18.48.26; author cworth; state Exp; branches; next 1.16; 1.16 date 2005.08.22.15.33.54; author otaylor; state Exp; branches; next 1.15; commitid 5a6a4309f05d4567; 1.15 date 2005.08.21.18.23.58; author otaylor; state Exp; branches; next 1.14; commitid c424308c6ba4567; 1.14 date 2005.08.21.16.57.19; author otaylor; state Exp; branches; next 1.13; commitid 5efd4308b2674567; 1.13 date 2005.08.05.22.01.55; author cworth; state Exp; branches; next 1.12; commitid 70542f3e1d04567; 1.12 date 2005.04.12.18.50.25; author cworth; state Exp; branches; next 1.11; 1.11 date 2005.02.13.19.57.52; author cworth; state Exp; branches; next 1.10; 1.10 date 2005.01.27.19.35.25; author otaylor; state Exp; branches; next 1.9; 1.9 date 2004.12.21.20.57.33; author cworth; state Exp; branches; next 1.8; 1.8 date 2004.10.13.15.18.38; author cworth; state Exp; branches; next 1.7; 1.7 date 2004.09.11.20.30.00; author cworth; state Exp; branches; next 1.6; 1.6 date 2004.08.14.13.35.30; author cworth; state Exp; branches; next 1.5; 1.5 date 2004.07.09.19.47.06; author dajobe; state Exp; branches; next 1.4; 1.4 date 2004.07.09.16.16.47; author dajobe; state Exp; branches; next 1.3; 1.3 date 2003.12.05.18.30.39; author cworth; state Exp; branches; next 1.2; 1.2 date 2003.08.19.01.52.46; author cworth; state Exp; branches; next 1.1; 1.1 date 2003.04.17.20.24.29; author cworth; state Exp; branches; next ; desc @@ 1.17 log @Make it very clear that the CVS tree is stale and obsolete @ text @#!/bin/sh cat < * autogen.sh: Set LC_ALL=C rather than LANG and LC_NUMERIC to be robust against whatever settings the user has. (Martin Dobias) @ text @a1 2 # Run this to generate all the initial makefiles, etc. set -e d3 4 a6 1 PACKAGE=cairo d8 3 a10 159 LIBTOOLIZE=${LIBTOOLIZE-libtoolize} LIBTOOLIZE_FLAGS="--copy --force" AUTOHEADER=${AUTOHEADER-autoheader} AUTOMAKE_FLAGS="--add-missing" 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 # The awk-based string->number conversion we use needs a C locale to work # as expected. Setting LC_ALL overrides whether the user set LC_ALL, # LC_NUMERIC, or LANG. LC_ALL=C ARGV0=$0 # Allow invocation from a separate build directory; in that case, we change # to the source directory to run the auto*, then change back before running configure srcdir=`dirname $ARGV0` test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` cd $srcdir if ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 ; then if ($AUTOCONF --version | head -n 1 | awk 'NR==1 { if( $(NF) >= '$autoconf_min_vers') \ exit 1; exit 0; }'); then echo "$ARGV0: ERROR: \`$AUTOCONF' is too old." $AUTOCONF --version echo " (version $autoconf_min_vers or newer is required)" DIE="yes" fi else echo $AUTOCONF: command not found echo echo "$ARGV0: ERROR: You must have \`autoconf' installed to compile $PACKAGE." echo " (version $autoconf_min_vers or newer is required)" 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; }'); then echo "$ARGV0: ERROR: \`$AUTOMAKE' is too old." $AUTOMAKE --version 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 | head -n 1 | awk 'NR==1 { if( $(NF) >= '$aclocal_min_vers' ) \ exit 1; exit 0; }' ); then echo "$ARGV0: ERROR: \`$ACLOCAL' is too old." $ACLOCAL --version echo " (version $aclocal_min_vers or newer is required)" DIE="yes" fi else echo $ACLOCAL: command not found echo echo "$ARGV0: ERROR: Missing \`$ACLOCAL'" echo " The version of $AUTOMAKE installed doesn't appear recent enough." DIE="yes" fi else echo $AUTOMAKE: command not found 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 $LIBTOOLIZE: command not found 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` if [ ! -f $acdir/pkg.m4 ]; then echo "$ARGV0: Error: Could not find pkg-config macros." echo " (Looked in $acdir/pkg.m4)" echo " If pkg.m4 is available in /another/directory, please set" echo " ACLOCAL_FLAGS=\"-I /another/directory\"" echo " Otherwise, please install pkg-config." echo "" 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." echo " If you wish to pass any to it, please specify them on the" echo " \`$0' command line." echo fi do_cmd() { echo "$ARGV0: running \`$@@'" $@@ } do_cmd $LIBTOOLIZE $LIBTOOLIZE_FLAGS do_cmd $ACLOCAL $ACLOCAL_FLAGS do_cmd $AUTOHEADER d12 1 a12 1 do_cmd $AUTOMAKE $AUTOMAKE_FLAGS d14 1 a14 1 do_cmd $AUTOCONF d16 1 a16 1 cd $ORIGDIR || exit 1 d18 31 a48 1 do_cmd $srcdir/configure --enable-maintainer-mode --enable-gtk-doc ${1+"$@@"} && echo "Now type \`make' to compile" || exit 1 @ 1.15 log @2005-08-21 Owen Taylor * autogen.sh: Check automake- if automake isn't sufficiently new. (#3593, Philip Van Hoof) @ text @d20 4 a23 3 # The awk-based string->number conversion we use needs a C locale to work as expected. LANG=C LC_NUMERIC=C @ 1.14 log @2005-08-21 Owen Taylor * 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) * gtk-doc.make: Update from gtk-doc CVS, bringing in some minor output changes. (Eliminate the *** from the messages that don't indicate errors.) * doc/public/Makefile.am (EXTRA_DIST): Use += for EXTRA_DIST, since gtk-doc.make already defines it. @ text @a8 1 ACLOCAL=${ACLOCAL-aclocal} a9 1 AUTOMAKE=${AUTOMAKE-automake} d52 27 @ 1.13 log @ 2005-08-05 Carl Worth * autogen.sh (automake_min_vers): Bump automake_min_vers up to 1.7 since we clearly don't work with 1.4 anymore. @ text @d28 9 d145 3 a147 1 do_cmd ./configure --enable-maintainer-mode --enable-gtk-doc ${1+"$@@"} && echo "Now type \`make' to compile" || exit 1 @ 1.12 log @ * autogen.sh: Replace errant use of aclocal with , as reported by Martin Hedenfalk. Closes bug #3000. @ text @d17 1 a17 2 # I don't know what automake 1.4 wants, but the following seems to work... automake_min_vers=1.4 @ 1.11 log @ * autogen.sh (LC_NUMERIC): Use LC_NUMERIC=C so that decimal separator works in version checks. @ text @d96 1 a96 1 acdir=`aclocal --print-ac-dir` @ 1.10 log @2005-01-27 Owen Taylor * configure.in Makefile.am docs/Makefile.am docs/public/*: Add framework for doing docs via gtk-doc. * src/cairo.[ch] src/cairo-matrix.c: Add some inline docs for arcs and matrices. * gtk-doc.m4 acinclude.m4: Check in files from gtk-doc to make the dependency on gtk-doc optional. * autogen.sh (LANG): Add --enable-gtk-doc to the default args. @ text @d25 1 @ 1.9 log @ * autogen.sh (LANG): Change "head -1" to more standard "head -n 1". @ text @d136 1 a136 1 do_cmd ./configure --enable-maintainer-mode ${1+"$@@"} && echo "Now type \`make' to compile" || exit 1 @ 1.8 log @ * autogen.sh: automake 1.4 seems to be sufficient. Don't require 1.6. @ text @d29 1 a29 1 if ($AUTOCONF --version | head -1 | awk 'NR==1 { if( $(NF) >= '$autoconf_min_vers') \ d46 1 a46 1 if ($AUTOMAKE --version | head -1 | awk 'NR==1 { if( $(NF) >= '$automake_min_vers') \ d55 1 a55 1 if ($ACLOCAL --version | head -1 | awk 'NR==1 { if( $(NF) >= '$aclocal_min_vers' ) \ @ 1.7 log @ * autogen.sh: Require automake 1.6 rather than 1.7 since it seems to work just fine. @ text @d17 2 a18 2 # I don't know what automake 1.6 wants, but this seems to work... automake_min_vers=1.6 @ 1.6 log @ * autogen.sh (LANG): Explicitly set LANG=C to fix the awk string->number conversion for user with locales that don't match ASCII digit conventions. @ text @d17 2 a18 1 automake_min_vers=1.7 @ 1.5 log @Report versions of commands on failure. Try to get version numbers from newer GNU --version formats. @ text @a2 1 d22 2 @ 1.4 log @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 :( @ text @d27 1 a27 1 if ($AUTOCONF --version | awk 'NR==1 { if( $3 >= '$autoconf_min_vers') \ d31 1 d36 1 d38 1 a38 1 echo "$ARGV0: ERROR: You must have \`$AUTOCONF' installed to compile $PACKAGE." d44 1 a44 1 if ($AUTOMAKE --version | awk 'NR==1 { if( $4 >= '$automake_min_vers') \ d48 1 d53 1 a53 1 if ($ACLOCAL --version | awk 'NR==1 { if( $4 >= '$aclocal_min_vers' ) \ d57 1 d62 1 d69 1 d71 1 a71 1 echo "$ARGV0: ERROR: You must have \`$AUTOMAKE' installed to compile $PACKAGE." d76 2 a77 2 if (libtoolize --version) < /dev/null > /dev/null 2>&1 ; then if (libtoolize --version | awk 'NR==1 { if( $4 >= '$libtoolize_min_vers') \ d80 1 a80 1 echo "$ARGV0: ERROR: \`libtoolize' is too old." d85 1 @ 1.3 log @ * autogen.sh (AUTOCONF): Allow names of all autofoo programs to be overridden via environment variables. @ text @d6 2 d16 8 d26 59 d96 1 a96 1 exit 1 d100 5 @ 1.2 log @Added better warning if pkg-config is not installed. Add --enable-maintainer-mode to autogen.sh @ text @d6 8 d43 1 a43 1 do_cmd libtoolize --force --copy d45 1 a45 1 do_cmd aclocal ${ACLOCAL_FLAGS} d47 1 a47 1 do_cmd autoheader d49 1 a49 1 do_cmd automake --add-missing d51 1 a51 1 do_cmd autoconf @ 1.1 log @Switched to autotools. Dropped XrPush/PopGroup. Supports non-X Xc rendering. @ text @d6 17 d24 1 a24 1 echo "$0: Note: \`./configure' will be run with no arguments." d31 1 a31 1 echo "$0: running \`$@@'" d37 1 a37 1 do_cmd aclocal d45 1 a45 1 do_cmd ./configure ${1+"$@@"} && echo "Now type \`make' to compile" || exit 1 @