- for try in $checks; do
- glib_config_args=
- if test $try = 1 -o $try = 3; then
- glib_modules=gmodule
- else
- echo "*** trying without -lgmodule"
- glib_modules=
- fi
- if test $try = 1 -o $try = 2; then
- AM_PATH_GLIB(1.2.0,,, $glib_modules)
- else
- AM_PATH_GLIB_2_0(2.0.0,,, $glib_modules)
- fi
- if test "$GLIB_LIBS"; then
- if test $glib_modules = gmodule; then
- AC_DEFINE(HAVE_GMODULE)
- have_gmodule=yes
- fi
- break
- fi
- done
-
- if test -z "$GLIB_LIBS"; then
- echo
- echo "*** If you don't have GLIB, you can get it from ftp://ftp.gtk.org"
- echo "*** If you can't install GLIB anywhere or if you don't want to,"
- echo "*** you can just unpack it to Irssi's source directory and"
- echo "*** Irssi will automatically compile and use it."
- echo
-
- 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 $glib_url$glib_file"
- elif test -n "`ncftpget --version 2>/dev/null|grep -i ncftp`"; then
- dlcmd="ncftpget -z $glib_url$glib_file"
- elif test -n "`lynx --version 2>/dev/null|grep -i lynx`"; then
- dlcmd="lynx --source $glib_url$glib_file > $glib_file"
- elif test -n "`curl --version 2>/dev/null|grep -i curl`"; then
- 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."
- echo
- echo "*** Press ENTER to continue"
- read answer
- eval $dlcmd
- if `gunzip $glib_file`; then
- glib_file=`echo $glib_file|$sedpath s/\.gz$//`
- if `tar xf $glib_file`; then
- rm -f $glib_file
- AC_CHECK_GLIBDIR
- fi
- fi
- fi
+if test -z "$GLIB_LIBS"; then
+ echo
+ echo "*** If you don't have GLIB, you can get it from ftp://ftp.gtk.org/pub/glib/"
+ echo "*** We recommend you get the latest stable GLIB 2 version."
+ echo "*** Compile and install it, and make sure pkg-config finds it,"
+ echo "*** by adding the path where the .pc file is located to PKG_CONFIG_PATH"
+ echo