summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Amundson <amundson@src.gnome.org>1998-01-31 17:43:56 +0000
committerShawn Amundson <amundson@src.gnome.org>1998-01-31 17:43:56 +0000
commita11062b2d9716dffa537906a03ce0f57b71ef656 (patch)
tree427c6fd74fb5cb4fc21370f1a0900a63aa2513ff
parent01200282da3d4a06885eff34de1678a9da47d2f2 (diff)
downloadgtk+-a11062b2d9716dffa537906a03ce0f57b71ef656.tar.gz
I got sick of typing in the same commands over and over, so borrowed
autogen.sh from gnome cvs... Also corrected some info in HACKING. -Shawn
-rw-r--r--HACKING38
-rwxr-xr-xautogen.sh52
2 files changed, 81 insertions, 9 deletions
diff --git a/HACKING b/HACKING
index c1871c083f..22eaa0a0c2 100644
--- a/HACKING
+++ b/HACKING
@@ -11,20 +11,40 @@ These should be available by ftp from prep.ai.mit.edu or any of the
fine GNU mirrors. Beta software can be found at alpha.gnu.org.
If you are accessing gtk+ via CVS, then you will need to take several
-steps to get it to compile. These are:
+steps to get it to compile. You can do all these steps at once
+by running:
- cvsroot/gtk+# aclocal; automake; autoconf
+ cvsroot/gtk+# ./autogen.sh
+
+Basically this does the following for you:
+
+ cvsroot/gtk+# aclocal; automake; autoconf
cvsroot/gtk+/glib# aclocal; automake; autoconf
-The "configure" scripts will not exist until you take these steps.
-you only need to call "configure" i cvsroot/gtk+ as the one in
-glib will be invoked automatically.
+ The above commands create the "configure" script. Now you
+ can run the configure script in cvsroot/gtk+ to create all
+ the Makefiles. You only need to call "configure" in cvsroot/gtk+
+ as the one in glib will be invoked automatically.
+
+Before running autogen.sh or configure, make sure you have libtool
+in your path.
+
+Note that autogen.sh runs configure for you. If you wish to pass
+options like --prefix=/usr to configure you can give those options
+to autogen.sh and they will be passed on to configure.
+
+If at all possible, please use CVS to get the latest development version of
+gtk+. You can do the following to get gtk+ from cvs:
-Before running configure, make sure you have libtool in your path
+ $ export CVSROOT=':pserver:anonymous@cvs.gimp.org:/debian/home/gnomecvs'
+ $ cvs login
+ (there is no password, just hit return)
+ $ cvs -z9 checkout gtk+
Please submit patches to the gtk-list@redhat.com mailing list (you must
subscribe before you post, e-mail gtk-list-request@redhat.com with a
-subject of "subscribe"). All kinds of contributions are accepted. If at
-all possible, please use CVS to get the latest development version of
-gtk+; the README file has the CVSROOT information.
+subject of "subscribe"). All kinds of contributions are accepted.
+Patches that you wish to go into the distribution should also be uploaded
+to ftp://ftp.gimp.org/incoming. Follow the rules there for naming your
+patches.
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000000..c298ddee64
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+DIE=0
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile GTK+."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+}
+
+(libtool --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have libtool installed to compile GTK+."
+ echo "Get ftp://alpha.gnu.org/gnu/libtool-1.0h.tar.gz"
+ echo "(or a newer version if it is available)"
+ DIE=1
+}
+
+(automake --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have automake installed to compile GTK+."
+ echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.2d.tar.gz"
+ echo "(or a newer version if it is available)"
+ DIE=1
+}
+
+if test "$DIE" -eq 1; then
+ exit 1
+fi
+
+(test -d gtk && test -d glib) || {
+ echo "You must run this script in the top-level GTK+ directory"
+ exit 1
+}
+
+if test -z "$*"; then
+ echo "I am going to run ./configure with no arguments - if you wish "
+ echo "to pass any to it, please specify them on the $0 command line."
+fi
+
+for i in glib .
+do
+ echo processing $i
+ (cd $i; aclocal; automake; autoconf)
+done
+./configure "$@"
+
+echo
+echo "Now type 'make' to compile GTK+."