… | |
… | |
457 | AC_PATH_XTRA |
457 | AC_PATH_XTRA |
458 | |
458 | |
459 | dnl# the only reasonable way to find libXpm is do-it-yourself |
459 | dnl# the only reasonable way to find libXpm is do-it-yourself |
460 | dnl# only check if we want xpm-background |
460 | dnl# only check if we want xpm-background |
461 | |
461 | |
462 | LIBAFTERIMAGE_CFLAGS= |
462 | AFTERIMAGE_CFLAGS= |
463 | AFTERIMAGE_LIBS= |
463 | AFTERIMAGE_LIBS= |
464 | have_afterimage= |
|
|
465 | AFTERIMAGE_VERSION= |
464 | AFTERIMAGE_VERSION= |
466 | |
465 | |
467 | if test x$support_afterimage = xyes; then |
466 | if test x$support_afterimage = xyes; then |
468 | support_afterimage=no |
467 | support_afterimage=no |
469 | |
468 | |
470 | if test "x$afterimage_config" = "x" ; then |
469 | if test "x$afterimage_config" = "x" ; then |
471 | AC_PATH_PROG(afterimage_config, afterimage-config, no) |
470 | AC_PATH_PROG(afterimage_config, afterimage-config, no) |
472 | fi |
471 | fi |
473 | AC_PROG_AWK |
472 | AC_PROG_AWK |
474 | AC_MSG_CHECKING(for libAfterImage version >= 1.15 ) |
473 | AC_MSG_CHECKING(for libAfterImage version >= 1.15) |
475 | AFTERIMAGE_VERSION=`$afterimage_config --version` |
474 | AFTERIMAGE_VERSION=`$afterimage_config --version` |
476 | if test -n $AFTERIMAGE_VERSION ; then |
475 | if test -n $AFTERIMAGE_VERSION ; then |
477 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
476 | AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
478 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
477 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
479 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
478 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
480 | libai_ver_major=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $1}'` |
479 | libai_ver_major=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $1}'` |
481 | libai_ver_minor=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $2}'` |
480 | libai_ver_minor=`echo $AFTERIMAGE_VERSION | $AWK -F . '{print $2}'` |
482 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
481 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
483 | support_afterimage=yes; |
482 | support_afterimage=yes |
484 | fi |
483 | fi |
485 | fi |
484 | fi |
486 | fi |
485 | fi |
487 | |
486 | |
488 | if test "x$support_afterimage" = "xyes"; then |
487 | if test "x$support_afterimage" = "xyes"; then |
… | |
… | |
915 | dnl# Attack the libs |
914 | dnl# Attack the libs |
916 | AC_SUBST(LIBS) |
915 | AC_SUBST(LIBS) |
917 | AC_SUBST(X_LIBS) |
916 | AC_SUBST(X_LIBS) |
918 | AC_SUBST(X_EXTRA_LIBS) |
917 | AC_SUBST(X_EXTRA_LIBS) |
919 | |
918 | |
920 | AC_SUBST(LIBAFTERIMAGE_CFLAGS) |
919 | AC_SUBST(AFTERIMAGE_CFLAGS) |
921 | AC_SUBST(AFTERIMAGE_LIBS) |
920 | AC_SUBST(AFTERIMAGE_LIBS) |
922 | |
921 | |
923 | AC_ARG_PROGRAM |
922 | AC_ARG_PROGRAM |
924 | |
923 | |
925 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
924 | dnl# test for "sun" or "__sun__" before include sys_ioctl |