get_accepted_kbinput()
- Translate Ctrl-8 into NANO_DELETE_KEY, since it apparently is
generated at the statusbar prompt sometimes on Linux. (DLR)
+- configure.ac:
+ - Check for glib 2.x and then 1.2.x if we need glib. (DLR)
- nano.spec.in:
- Update for the 1.3 branch of nano. (DLR)
- THANKS:
AC_CHECK_FUNCS(snprintf vsnprintf strcasecmp strncasecmp)
if test "x$ac_cv_func_snprintf" = "xno" -o "xac_cv_func_vsnprintf" = "xno"
then
- AM_PATH_GLIB(1.2.4,,
- [AC_MSG_ERROR([
+ AM_PATH_GLIB_2_0(2.0.0,,
+ [AM_PATH_GLIB(1.2.4,,
+ [AC_MSG_ERROR([
*** snprintf() and/or vsnprintf() not found. GLIB not found either.
*** You need both snprintf() and vsnprintf(). Alternatively you can
*** install the GLIB library which can be found at ftp://ftp.gtk.org/.])],
- glib)
- glib_cflags=`$GLIB_CONFIG --cflags glib`
- glib_libs=`$GLIB_CONFIG --libs glib`
+ glib)])
fi
dnl Checks for typedefs, structures, and compiler characteristics.
AC_SUBST(CURSES_LIB)
-if test "x$glib_cflags" != "x"
+if test "x$GLIB_CFLAGS" != "x"
then
- CFLAGS="$CFLAGS $glib_cflags"
+ CFLAGS="$CFLAGS $GLIB_CFLAGS"
fi
-if test "x$glib_libs" != "x"
+if test "x$GLIB_LIBS" != "x"
then
- LDFLAGS="$LDFLAGS $glib_libs"
+ LDFLAGS="$LDFLAGS $GLIB_LIBS"
fi
AC_CONFIG_FILES([