… | |
… | |
237 | [ --enable-afterimage enable integration with libAfterImage for background images], |
237 | [ --enable-afterimage enable integration with libAfterImage for background images], |
238 | [if test x$enableval = xyes -o x$enableval = xno; then |
238 | [if test x$enableval = xyes -o x$enableval = xno; then |
239 | support_afterimage=$enableval |
239 | support_afterimage=$enableval |
240 | fi]) |
240 | fi]) |
241 | |
241 | |
242 | AC_ARG_WITH(afterimage_config, [ --with-afterimage-config=DIR use libAfterImage config script in DIR], afterimage_config="$withval",afterimage_config=NO) |
242 | AC_ARG_WITH(afterimage_config, |
|
|
243 | [ --with-afterimage-config=DIR use libAfterImage config script in DIR], |
|
|
244 | [if test "x$withval" != x; then |
|
|
245 | afterimage_config=$withval/afterimage-config |
|
|
246 | fi]) |
243 | |
247 | |
244 | AC_ARG_ENABLE(afterstep, |
248 | AC_ARG_ENABLE(afterstep, |
245 | [ --enable-afterstep enable integration with AfterStep window manager], |
249 | [ --enable-afterstep enable integration with AfterStep window manager], |
246 | [if test x$enableval = xyes -o x$enableval = xno; then |
250 | [if test x$enableval = xyes -o x$enableval = xno; then |
247 | support_afterstep=$enableval |
251 | support_afterstep=$enableval |
… | |
… | |
435 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
439 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
436 | fi]) |
440 | fi]) |
437 | |
441 | |
438 | dnl# -------------------------------------------------------------------------- |
442 | dnl# -------------------------------------------------------------------------- |
439 | |
443 | |
440 | AC_PATH_PROG(MV, mv, mv) |
|
|
441 | AC_PATH_PROG(CP, cp, cp) |
444 | AC_PATH_PROG(CP, cp, cp) |
442 | AC_PATH_PROG(LN, ln, ln) |
|
|
443 | AC_PATH_PROG(SED, sed, sed) |
445 | AC_PATH_PROG(SED, sed, sed) |
444 | AC_PATH_PROG(ECHO, echo, echo) |
446 | AC_PATH_PROG(ECHO, echo, echo) |
445 | AC_PATH_PROG(CMP, cmp, cmp) |
|
|
446 | AC_PATH_PROG(TIC, tic) |
447 | AC_PATH_PROG(TIC, tic) |
447 | |
448 | |
448 | dnl# need a neat way to detect SVR4 or its features |
449 | dnl# need a neat way to detect SVR4 or its features |
449 | dnl# in src/command.c we use these functions: |
450 | dnl# in src/command.c we use these functions: |
450 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
451 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
… | |
… | |
465 | |
466 | |
466 | LIBAFTERIMAGE_CFLAGS= |
467 | LIBAFTERIMAGE_CFLAGS= |
467 | AFTERIMAGE_LIBS= |
468 | AFTERIMAGE_LIBS= |
468 | have_afterimage= |
469 | have_afterimage= |
469 | |
470 | |
470 | if test x$support_afterimage == xyes; then |
471 | if test x$support_afterimage = xyes; then |
471 | AC_MSG_CHECKING(installed libAfterImage) |
|
|
472 | support_afterimage=no |
472 | support_afterimage=no |
|
|
473 | |
473 | if test "$afterimage_config" = "NO" ; then |
474 | if test "x$afterimage_config" = "x" ; then |
474 | if afterimage-config --version > /dev/null 2>&1 ; then |
475 | AC_PATH_PROG(afterimage_config, afterimage-config, no) |
475 | afterimage_config=afterimage-config |
476 | fi |
476 | else |
477 | |
477 | if test -x /usr/local/bin/afterimage-config; then |
478 | AC_MSG_CHECKING(for libAfterImage) |
478 | afterimage_config=/usr/local/bin/afterimage-config |
|
|
479 | fi |
|
|
480 | fi |
|
|
481 | else |
|
|
482 | afterimage_config=$afterimage_config/afterimage-config |
|
|
483 | fi |
|
|
484 | if $afterimage_config --version > /dev/null 2>&1 ; then |
479 | if $afterimage_config --version >/dev/null 2>&1 ; then |
485 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
480 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
486 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
481 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
487 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
482 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
488 | support_afterimage=yes |
483 | support_afterimage=yes |
489 | fi |
484 | fi |
490 | fi |
485 | fi |
491 | |
486 | |
492 | if test "x$support_afterimage" = "xyes"; then |
487 | if test "x$support_afterimage" = "xyes"; then |
493 | AC_MSG_RESULT($AFTERIMAGE_LIBS) |
488 | AC_MSG_RESULT($AFTERIMAGE_LIBS) |
494 | else |
489 | else |
495 | AC_MSG_RESULT(afterimage-config not found in $afterimage_config - can't use libAfterImage for images.) |
490 | AC_MSG_RESULT(no) |
496 | fi |
491 | fi |
497 | fi |
492 | fi |
498 | |
493 | |
499 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
494 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
500 | VT_FIND_LIBXPM |
495 | VT_FIND_LIBXPM |
501 | if test x$no_xpm = xyes; then |
496 | if test x$no_xpm = xyes; then |
… | |
… | |
959 | |
954 | |
960 | if test x$support_perl = xyes; then |
955 | if test x$support_perl = xyes; then |
961 | support_frills=yes |
956 | support_frills=yes |
962 | fi |
957 | fi |
963 | |
958 | |
964 | AC_SUBST(DEBUG) |
|
|
965 | AC_SUBST(DINCLUDE) |
|
|
966 | AC_SUBST(CFLAGS) |
959 | AC_SUBST(CFLAGS) |
967 | AC_SUBST(CPPFLAGS) |
960 | AC_SUBST(CPPFLAGS) |
968 | AC_SUBST(LDFLAGS) |
961 | AC_SUBST(LDFLAGS) |
969 | AC_SUBST(X_CFLAGS) |
962 | AC_SUBST(X_CFLAGS) |
970 | |
963 | |
971 | dnl# Attack the libs |
964 | dnl# Attack the libs |
972 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
965 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
973 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
974 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
966 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
975 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
967 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
976 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
968 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
977 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
969 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
978 | fi |
970 | fi |
979 | AC_SUBST(DLIB) |
|
|
980 | AC_SUBST(LIBS) |
971 | AC_SUBST(LIBS) |
981 | AC_SUBST(X_LIBS) |
972 | AC_SUBST(X_LIBS) |
982 | AC_SUBST(X_EXTRA_LIBS) |
973 | AC_SUBST(X_EXTRA_LIBS) |
983 | |
974 | |
984 | AC_SUBST(LIBAFTERIMAGE_CFLAGS) |
975 | AC_SUBST(LIBAFTERIMAGE_CFLAGS) |
… | |
… | |
1030 | if test x$support_xpm = xyes; then |
1021 | if test x$support_xpm = xyes; then |
1031 | echo " Xpm library: $XPM_LIBS" |
1022 | echo " Xpm library: $XPM_LIBS" |
1032 | fi |
1023 | fi |
1033 | |
1024 | |
1034 | if test x$support_afterimage = xyes; then |
1025 | if test x$support_afterimage = xyes; then |
1035 | echo " AfterImage library: $AFTERIMAGE_LIBS" |
1026 | echo " AfterImage support: yes" |
1036 | fi |
1027 | fi |
1037 | |
1028 | |
1038 | if test x$support_afterstep = xyes; then |
1029 | if test x$support_afterstep = xyes; then |
1039 | echo " With AfterStep integration" |
1030 | echo " AfterStep integration: yes" |
1040 | fi |
1031 | fi |
1041 | |
1032 | |
1042 | if test x$term != x; then |
1033 | if test x$term != x; then |
1043 | echo " set TERM to: $term" |
1034 | echo " set TERM to: $term" |
1044 | fi |
1035 | fi |