- fix a serious bug while setting the XIM destroy callback
on (typical) 64 bit systems.
- fix memory leak in pixmap code.
+ - do not link rxvtc against every lib on the planet anymore.
8.4 Sat Oct 27 14:02:13 CEST 2007
- overhaul of the transparency/pixmap code (sasha).
/* Define to 1 if you have the `openpty' function. */
#undef HAVE_OPENPTY
+/* Define to 1 if you have the `port_create' function. */
+#undef HAVE_PORT_CREATE
+
+/* Define to 1 if you have the <port.h> header file. */
+#undef HAVE_PORT_H
+
/* Define to 1 if you have the `posix_openpt' function. */
#undef HAVE_POSIX_OPENPT
VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
+
echo ""
echo "configuring for rxvt $VERSION"
echo ""
-for ac_header in sys/epoll.h sys/event.h sys/queue.h
+
+for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-for ac_func in epoll_ctl kqueue
+
+for ac_func in epoll_ctl kqueue port_create
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
- LIBS="$LIBS `$PKG_CONFIG xft --libs`"
+ X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
else
# Extract the first word of "xft-config", so it can be a program name with args.
if test $XFT_CONFIG != no; then
- LIBS="$LIBS `$XFT_CONFIG --libs`"
+ X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
fi
fi
done
+ ac_save_LIBS="$LIBS"
+ LIBS="$LIBS $X_LIBS"
{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
support_xft=no
fi
+ LIBS="$ac_save_LIBS"
if test x$support_xft = xyes; then
AC_SUBST(DATE)dnl
AC_SUBST(LSMDATE)dnl
AC_SUBST(LIBVERSION)dnl
+
echo ""
echo "configuring for rxvt $VERSION"
echo ""
if test x$support_xft = xyes; then
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
- LIBS="$LIBS `$PKG_CONFIG xft --libs`"
+ X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
else
AC_PATH_PROG(XFT_CONFIG, xft-config, no)
if test $XFT_CONFIG != no; then
- LIBS="$LIBS `$XFT_CONFIG --libs`"
+ X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
fi
fi
+ save_LIBS="$LIBS"
+ LIBS="$LIBS $X_LIBS"
AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
- AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no])
+ AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no])
+ LIBS="$save_LIBS"
if test x$support_xft = xyes; then
AC_DEFINE(XFT, 1, Define to enable xft support)