[PATCH] glib2.0 mini patch works with todays anoncvs



hi,

now that mc is ported to support gettext 0.11.5 here is a mini version
of the glib2.0 patch that i made this morning. i checked it and it works
perfectly. compiled mc without any issues and it has full glib2.0
support. although i would really like to see mc glib_gettext support
which may make things easier for future but for now this does it's job
too.

by the way i changed automake and aclocal to automake-1.6 and
aclocal-1.6 the reasons are known for gnome 2.x users. we have automake
1.4-p6 and automake-1.6 installed side by side in the same prefix where
automake is either 1.4 or 1.6 or linked (depends how the user has set it
up) but now that mc seems to support 1.6 anyways so we can set it to
full version to be more strict.

anyways applying the patch should work out of the box.

nice day.

-- 
Name....: Ali Akcaagac
Status..: Student Of Computer & Economic Science
E-Mail..: mailto:ali akcaagac stud fh-wilhelmshaven de
WWW.....: http://www.fh-wilhelmshaven.de/~akcaagaa
diff -ruN mc-cvs/autogen.sh mc/autogen.sh
--- mc-cvs/autogen.sh	2002-09-16 12:13:53.000000000 +0200
+++ mc/autogen.sh	2002-09-16 20:17:20.000000000 +0200
@@ -4,8 +4,8 @@
 # Make it possible to specify path in the environment
 : ${AUTOCONF=autoconf}
 : ${AUTOHEADER=autoheader}
-: ${AUTOMAKE=automake}
-: ${ACLOCAL=aclocal}
+: ${AUTOMAKE=automake-1.6}
+: ${ACLOCAL=aclocal-1.6}
 : ${GETTEXTIZE=gettextize}
 : ${AUTOPOINT=autopoint}
 
diff -ruN mc-cvs/configure.in mc/configure.in
--- mc-cvs/configure.in	2002-09-16 12:13:53.000000000 +0200
+++ mc/configure.in	2002-09-16 20:17:22.000000000 +0200
@@ -21,18 +21,10 @@
 
 
 dnl
-dnl Find glib 1.2.x.  This check should be kept close to the beginning,
-dnl as it tends to fail often.
+dnl Find glib 2.x.
 dnl
-
-dnl This temporary variable is a workaround for a bug in Autoconf-2.53
-glib_path=$PATH:/usr/local/bin
-
-dnl Klugde for FreeBSD, where glib-config is renamed to glib12-config.
-AC_PATH_PROGS([GLIB_CONFIG], [glib-config glib12-config],,[$glib_path])
-
-AC_ARG_VAR([GLIB_CONFIG], [Path to glib-config])
-AM_PATH_GLIB(1.2.0,,[AC_MSG_ERROR([Test for GLIB failed.  MC requires GLIB.])])
+PKG_CHECK_MODULES(GLIB, "glib-2.0")
+AC_SUBST(GLIB_CFLAGS)
 AC_SUBST(GLIB_LIBS)
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]