--- rxvt-unicode/configure 2007/11/11 04:08:00 1.116 +++ rxvt-unicode/configure 2007/11/18 01:02:09 1.117 @@ -1922,6 +1922,7 @@ 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 "" @@ -5367,7 +5368,8 @@ -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 @@ -5509,7 +5511,8 @@ -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 @@ -12973,7 +12976,7 @@ 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. @@ -13018,7 +13021,7 @@ 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 @@ -13165,6 +13168,8 @@ 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; } @@ -13238,6 +13243,7 @@ support_xft=no fi + LIBS="$ac_save_LIBS" if test x$support_xft = xyes; then