Root/gjay/patches/1000_autogen-sh.patch

Source at commit 1b3135c created 9 years 10 days ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1--- /dev/null 2011-04-12 08:45:25.703768888 -0400
2+++ gjay/autogen.sh 2011-03-26 10:16:44.000000000 -0400
3@@ -0,0 +1,73 @@
4+#!/bin/sh
5+# Run this to generate all the initial makefiles, etc.
6+# This was lifted from the Gimp, and adapted slightly by
7+# Raph Levien .
8+
9+DIE=0
10+
11+PROJECT=gjay
12+
13+# Make it possible to specify path in the environment
14+: ${AUTOCONF=autoconf}
15+: ${AUTOHEADER=autoheader}
16+: ${AUTOMAKE=automake}
17+: ${ACLOCAL=aclocal}
18+: ${AUTOPOINT=autopoint}
19+
20+($AUTOPOINT --version) < /dev/null > /dev/null 2>&1 || {
21+ echo
22+ echo "You must have gettext installed to compile $PROJECT."
23+ echo "Get ftp://ftp.gnu.org/pub/gnu/gettext-0.14.1.tar.gz"
24+ echo "(or a newer version if it is available)"
25+ DIE=1
26+}
27+
28+($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
29+ echo
30+ echo "You must have autoconf installed to compile $PROJECT."
31+ echo "Download the appropriate package for your distribution,"
32+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
33+ DIE=1
34+}
35+
36+($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 || {
37+ echo
38+ echo "You must have automake installed to compile $PROJECT."
39+ echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.6.tar.gz"
40+ echo "(or a newer version if it is available)"
41+ DIE=1
42+}
43+
44+if test "$DIE" -eq 1; then
45+ exit 1
46+fi
47+
48+if test -z "$*"; then
49+ echo "I am going to run ./configure with no arguments - if you wish "
50+ echo "to pass any to it, please specify them on the $0 command line."
51+fi
52+
53+case $CC in
54+*xlc | *xlc\ * | *lcc | *lcc\ *) am_opt=--include-deps;;
55+esac
56+
57+for dir in .
58+do
59+ echo processing $dir
60+ cd $dir
61+ configdir="config"
62+ test -d $configdir || mkdir $configdir
63+ aclocalinclude="$ACLOCAL_FLAGS"
64+ $AUTOPOINT
65+ $ACLOCAL $aclocalinclude -I $configdir
66+ $AUTOHEADER -Wall
67+ $AUTOMAKE -Wall --add-missing --gnu $am_opt
68+ $AUTOCONF -Wall
69+ cd -
70+done
71+
72+./configure "$@"
73+
74+echo
75+echo "Now type 'make' to compile $PROJECT."
76+
77

Archive Download this file



interactive