ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.39 by sasha, Fri Jun 8 20:04:10 2007 UTC vs.
Revision 1.50 by ayin, Wed Jun 13 11:30:42 2007 UTC

13changequote(, )dnl 13changequote(, )dnl
14VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 14VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
15DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 15DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
16dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 16dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
17changequote([, ])dnl 17changequote([, ])dnl
18AC_SUBST(VERSION)dnl 18AC_SUBST(VERSION)dnl
19AC_SUBST(DATE)dnl 19AC_SUBST(DATE)dnl
20AC_SUBST(LSMDATE)dnl 20AC_SUBST(LSMDATE)dnl
21AC_SUBST(LIBVERSION)dnl 21AC_SUBST(LIBVERSION)dnl
22echo "" 22echo ""
23echo "configuring for rxvt $VERSION" 23echo "configuring for rxvt $VERSION"
24echo "" 24echo ""
25 25
26orig_CXXFLAGS="$CXXFLAGS" 26orig_CXXFLAGS="$CXXFLAGS"
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
242AC_ARG_WITH(afterimage_config, [ --with-afterimage-config=DIR use libAfterImage config script in DIR], afterimage_config="$withval",afterimage_config=NO) 242AC_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
244AC_ARG_ENABLE(afterstep, 248AC_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
438dnl# -------------------------------------------------------------------------- 442dnl# --------------------------------------------------------------------------
439 443
440AC_PATH_PROG(MV, mv, mv)
441AC_PATH_PROG(CP, cp, cp) 444AC_PATH_PROG(CP, cp, cp)
442AC_PATH_PROG(LN, ln, ln)
443AC_PATH_PROG(SED, sed, sed) 445AC_PATH_PROG(SED, sed, sed)
444AC_PATH_PROG(ECHO, echo, echo) 446AC_PATH_PROG(ECHO, echo, echo)
445AC_PATH_PROG(CMP, cmp, cmp)
446AC_PATH_PROG(TIC, tic) 447AC_PATH_PROG(TIC, tic)
447 448
448dnl# need a neat way to detect SVR4 or its features 449dnl# need a neat way to detect SVR4 or its features
449dnl# in src/command.c we use these functions: 450dnl# in src/command.c we use these functions:
450dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> 451dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
465 466
466LIBAFTERIMAGE_CFLAGS= 467LIBAFTERIMAGE_CFLAGS=
467AFTERIMAGE_LIBS= 468AFTERIMAGE_LIBS=
468have_afterimage= 469have_afterimage=
469 470
470if test x$support_afterimage == xyes; then 471if 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
497fi 492fi
498 493
499if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then 494if 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
558#include <stdlib.h> 553#include <stdlib.h>
559main() 554main()
560{ 555{
561 exit(0); 556 exit(0);
562 (void) XOpenDisplay("foobar"); 557 (void) XOpenDisplay("foobar");
563}]])],[rxvt_cv_rpath=yes],[rxvt_cv_rpath=no],[dnl 558}]])],[rxvt_cv_rpath=yes],[rxvt_cv_rpath=no],[dnl
564 AC_MSG_WARN(You may need to check the LIBS line)])]) 559 AC_MSG_WARN(You may need to check the LIBS line)])])
565if test x$rxvt_cv_rpath != xyes; then 560if test x$rxvt_cv_rpath != xyes; then
566 changequote(, )dnl 561 changequote(, )dnl
567 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' 562 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
568 changequote([, ])dnl 563 changequote([, ])dnl
569 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` 564 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
572#include <stdlib.h> 567#include <stdlib.h>
573main() 568main()
574{ 569{
575 exit(0); 570 exit(0);
576 (void) XOpenDisplay("foobar"); 571 (void) XOpenDisplay("foobar");
577}]])],[rxvt_cv_R=yes],[rxvt_cv_R=no],[rxvt_cv_R=no])]) 572}]])],[rxvt_cv_R=yes],[rxvt_cv_R=no],[rxvt_cv_R=no])])
578 if test x$rxvt_cv_R != xyes; then 573 if test x$rxvt_cv_R != xyes; then
579 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 574 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
580 fi 575 fi
581fi 576fi
582 577
716dnl# find ttys/ttytab 711dnl# find ttys/ttytab
717AC_CACHE_CHECK(where ttys/ttytab is located, rxvt_cv_path_ttytab, 712AC_CACHE_CHECK(where ttys/ttytab is located, rxvt_cv_path_ttytab,
718[for ttys_file in dnl 713[for ttys_file in dnl
719 /etc/ttys /etc/ttytab; 714 /etc/ttys /etc/ttytab;
720do 715do
721 if test -f "$ttys_file" ; then 716 if test -f "$ttys_file" ; then
722 rxvt_cv_path_ttytab=$ttys_file 717 rxvt_cv_path_ttytab=$ttys_file
723 break 718 break
724 fi 719 fi
725done 720done
726]) 721])
959 954
960if test x$support_perl = xyes; then 955if test x$support_perl = xyes; then
961 support_frills=yes 956 support_frills=yes
962fi 957fi
963 958
964AC_SUBST(DEBUG)
965AC_SUBST(DINCLUDE)
966AC_SUBST(CFLAGS) 959AC_SUBST(CFLAGS)
967AC_SUBST(CPPFLAGS) 960AC_SUBST(CPPFLAGS)
968AC_SUBST(LDFLAGS) 961AC_SUBST(LDFLAGS)
969AC_SUBST(X_CFLAGS) 962AC_SUBST(X_CFLAGS)
970 963
971dnl# Attack the libs 964dnl# Attack the libs
972if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 965if 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"`
978fi 970fi
979AC_SUBST(DLIB)
980AC_SUBST(LIBS) 971AC_SUBST(LIBS)
981AC_SUBST(X_LIBS) 972AC_SUBST(X_LIBS)
982AC_SUBST(X_EXTRA_LIBS) 973AC_SUBST(X_EXTRA_LIBS)
983 974
984AC_SUBST(LIBAFTERIMAGE_CFLAGS) 975AC_SUBST(LIBAFTERIMAGE_CFLAGS)
1030if test x$support_xpm = xyes; then 1021if test x$support_xpm = xyes; then
1031 echo " Xpm library: $XPM_LIBS" 1022 echo " Xpm library: $XPM_LIBS"
1032fi 1023fi
1033 1024
1034if test x$support_afterimage = xyes; then 1025if test x$support_afterimage = xyes; then
1035 echo " AfterImage library: $AFTERIMAGE_LIBS" 1026 echo " AfterImage support: yes"
1036fi 1027fi
1037 1028
1038if test x$support_afterstep = xyes; then 1029if test x$support_afterstep = xyes; then
1039 echo " With AfterStep integration" 1030 echo " AfterStep integration: yes"
1040fi 1031fi
1041 1032
1042if test x$term != x; then 1033if test x$term != x; then
1043 echo " set TERM to: $term" 1034 echo " set TERM to: $term"
1044fi 1035fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines