--- rxvt-unicode/configure.ac 2007/06/09 10:28:55 1.40 +++ rxvt-unicode/configure.ac 2007/06/09 11:22:10 1.43 @@ -239,7 +239,9 @@ support_afterimage=$enableval fi]) -AC_ARG_WITH(afterimage_config, [ --with-afterimage-config=DIR use libAfterImage config script in DIR], afterimage_config="$withval",afterimage_config=NO) +AC_ARG_WITH(afterimage_config, + [ --with-afterimage-config=DIR use libAfterImage config script in DIR], + [afterimage_config="$withval"]) AC_ARG_ENABLE(afterstep, [ --enable-afterstep enable integration with AfterStep window manager], @@ -468,32 +470,26 @@ have_afterimage= if test x$support_afterimage == xyes; then - AC_MSG_CHECKING(installed libAfterImage) - support_afterimage=no - if test "$afterimage_config" = "NO" ; then - if afterimage-config --version > /dev/null 2>&1 ; then - afterimage_config=afterimage-config - else - if test -x /usr/local/bin/afterimage-config; then - afterimage_config=/usr/local/bin/afterimage-config - fi - fi - else - afterimage_config=$afterimage_config/afterimage-config - fi - if $afterimage_config --version > /dev/null 2>&1 ; then - LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` - AFTERIMAGE_LIBS=`$afterimage_config --libs` - if test "x$AFTERIMAGE_LIBS" != "x"; then - support_afterimage=yes - fi - fi - - if test "x$support_afterimage" = "xyes"; then - AC_MSG_RESULT($AFTERIMAGE_LIBS) - else - AC_MSG_RESULT(afterimage-config not found in $afterimage_config - can't use libAfterImage for images.) - fi + AC_MSG_CHECKING(installed libAfterImage) + support_afterimage=no + if test "x$afterimage_config" = "x" ; then + AC_PATH_PROG(afterimage_config, afterimage-config, no) + else + afterimage_config=$afterimage_config/afterimage-config + fi + if $afterimage_config --version > /dev/null 2>&1 ; then + LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` + AFTERIMAGE_LIBS=`$afterimage_config --libs` + if test "x$AFTERIMAGE_LIBS" != "x"; then + support_afterimage=yes + fi + fi + + if test "x$support_afterimage" = "xyes"; then + AC_MSG_RESULT($AFTERIMAGE_LIBS) + else + AC_MSG_RESULT(afterimage-config not found in $afterimage_config - can't use libAfterImage for images.) + fi fi if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then