1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

When glib isn't found, download recent glib version (2.8.3) instead of the old 1.2.10

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4064 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Wouter Coekaerts 2005-11-03 21:33:32 +00:00 committed by coekie
parent a0a30db489
commit a2637a3ac0

View File

@ -431,21 +431,18 @@ if test -z "$GLIB_DIR"; then
echo "*** Irssi will automatically compile and use it."
echo
dnl * I think it's pretty safe to assume GLib 1.2.9 since the next
dnl * will be 2.0 (or 1.4?) and it's not sure if irssi compiles
dnl * with it (yea, just a few weeks after I put this text for 1.2.8
dnl * the 1.2.9 came :) .. and then .10
glib_file=glib-1.2.10.tar.gz
glib_url=ftp://ftp.gtk.org/pub/gtk/v2.8/
glib_file=glib-2.8.3.tar.gz
dlcmd=
if test -n "`wget --version 2>/dev/null|grep -i wget`"; then
dlcmd="wget -c ftp://ftp.gtk.org/pub/gtk/v1.2/$glib_file"
dlcmd="wget -c $glib_url$glib_file"
elif test -n "`ncftpget --version 2>/dev/null|grep -i ncftp`"; then
dlcmd="ncftpget -z ftp://ftp.gtk.org/pub/gtk/v1.2/$glib_file"
dlcmd="ncftpget -z $glib_url$glib_file"
elif test -n "`lynx --version 2>/dev/null|grep -i lynx`"; then
dlcmd="lynx --source ftp://ftp.gtk.org/pub/gtk/v1.2/$glib_file > $glib_file"
dlcmd="lynx --source $glib_url$glib_file > $glib_file"
elif test -n "`curl --version 2>/dev/null|grep -i curl`"; then
dlcmd="curl -C - ftp://ftp.gtk.org/pub/gtk/v1.2/$glib_file"
dlcmd="curl -C - $glib_url$glib_file"
fi
if test -n "$dlcmd"; then
echo "*** I can download GLib for you now. If you don't want to, press CTRL-C now."