… | |
… | |
13 | |
13 | |
14 | dnl RXVT version |
14 | dnl RXVT version |
15 | changequote(, )dnl |
15 | changequote(, )dnl |
16 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
17 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
17 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
18 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
19 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
18 | dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
20 | changequote([, ])dnl |
19 | changequote([, ])dnl |
21 | AC_SUBST(VERSION)dnl |
20 | AC_SUBST(VERSION)dnl |
22 | AC_SUBST(DATE)dnl |
21 | AC_SUBST(DATE)dnl |
23 | AC_SUBST(LSMDATE)dnl |
22 | AC_SUBST(LSMDATE)dnl |
24 | AC_SUBST(LIBVERSION)dnl |
23 | AC_SUBST(LIBVERSION)dnl |
… | |
… | |
82 | |
81 | |
83 | dnl solaris needs to link libnsl and socket |
82 | dnl solaris needs to link libnsl and socket |
84 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
83 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
85 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
84 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
86 | |
85 | |
87 | AC_ENABLE_SHARED(no)dnl# libtool |
86 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
88 | AC_ENABLE_STATIC(yes)dnl# libtool |
87 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
89 | AC_PROG_LIBTOOL()dnl# libtool |
88 | dnl AC_PROG_LIBTOOL()dnl# libtool |
90 | |
89 | |
91 | MALLOC_TYPE=S |
90 | MALLOC_TYPE=S |
92 | support_addstrings=no |
91 | support_addstrings=no |
93 | support_frills=no |
92 | support_frills=no |
94 | support_inheritpixmap=no |
93 | support_inheritpixmap=no |
… | |
… | |
519 | sys/time.h \ |
518 | sys/time.h \ |
520 | utmp.h \ |
519 | utmp.h \ |
521 | utmpx.h \ |
520 | utmpx.h \ |
522 | stdint.h \ |
521 | stdint.h \ |
523 | pty.h \ |
522 | pty.h \ |
|
|
523 | wchar.h \ |
|
|
524 | cwchar \ |
|
|
525 | clocale \ |
524 | ) |
526 | ) |
525 | |
527 | |
526 | AC_HEADER_TIME |
528 | AC_HEADER_TIME |
527 | |
529 | |
528 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
530 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
… | |
… | |
606 | |
608 | |
607 | dnl# see usage below |
609 | dnl# see usage below |
608 | AC_DEFUN(RXVT_CHECK_SIZE, |
610 | AC_DEFUN(RXVT_CHECK_SIZE, |
609 | [AC_CACHE_CHECK([for $2], $1, |
611 | [AC_CACHE_CHECK([for $2], $1, |
610 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
612 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
611 | if test $ac_cv_sizeof_char -ge $3; then |
613 | if test "$ac_cv_sizeof_char" -ge $3; then |
612 | $1="$4 char" |
614 | $1="$4 char" |
613 | else |
615 | else |
614 | if test $ac_cv_sizeof_short -ge $3; then |
616 | if test "$ac_cv_sizeof_short" -ge $3; then |
615 | $1="$4 short" |
617 | $1="$4 short" |
616 | else |
618 | else |
617 | if test $ac_cv_sizeof_int -ge $3; then |
619 | if test "$ac_cv_sizeof_int" -ge $3; then |
618 | $1="$4 int" |
620 | $1="$4 int" |
619 | else |
621 | else |
620 | if test $ac_cv_sizeof_long -ge $3; then |
622 | if test "$ac_cv_sizeof_long" -ge $3; then |
621 | $1="$4 long" |
623 | $1="$4 long" |
622 | else |
624 | else |
623 | if test $ac_cv_sizeof_long_long -ge $3; then |
625 | if test "$ac_cv_sizeof_long_long" -ge $3; then |
624 | $1="$4 long long" |
626 | $1="$4 long long" |
625 | else |
627 | else |
626 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
628 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
627 | fi |
629 | fi |
628 | fi |
630 | fi |
… | |
… | |
655 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
657 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
656 | dnl AC_SUBST(rxvt_uint64_typedef) |
658 | dnl AC_SUBST(rxvt_uint64_typedef) |
657 | dnl# |
659 | dnl# |
658 | dnl# Now look for another we use |
660 | dnl# Now look for another we use |
659 | dnl# |
661 | dnl# |
660 | if test $ac_cv_sizeof_int_p -eq 8; then |
662 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
661 | rxvt_intp_define="#define intp_t int64_t" |
663 | rxvt_intp_define="#define intp_t int64_t" |
662 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
664 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
663 | else |
665 | else |
664 | if test $ac_cv_sizeof_int_p -eq 4; then |
666 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
665 | rxvt_intp_define="#define intp_t int32_t" |
667 | rxvt_intp_define="#define intp_t int32_t" |
666 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
668 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
667 | else |
669 | else |
668 | if test $ac_cv_sizeof_int_p -eq 2; then |
670 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
669 | rxvt_intp_define="#define intp_t int16_t" |
671 | rxvt_intp_define="#define intp_t int16_t" |
670 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
672 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
671 | else |
673 | else |
672 | rxvt_intp_define="#error set intp_t" |
674 | rxvt_intp_define="#error set intp_t" |
673 | rxvt_u_intp_define="#error set u_intp_t" |
675 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
705 | unlockpt \ |
707 | unlockpt \ |
706 | isastream \ |
708 | isastream \ |
707 | on_exit \ |
709 | on_exit \ |
708 | nanosleep \ |
710 | nanosleep \ |
709 | updwtmp \ |
711 | updwtmp \ |
|
|
712 | updwtmpx \ |
710 | ttyslot \ |
713 | ttyslot \ |
711 | ) |
714 | ) |
712 | dnl# Note: On NetBSD, openpty() exists in libutil. Don't pull it in |
715 | dnl# Note: On NetBSD, openpty() exists in libutil. Don't pull it in |
713 | |
716 | |
714 | dnl# -------------------------------------------------------------------------- |
717 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
757 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
760 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
758 | #include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[rxvt_cv_struct_utmpx_host=yes],[rxvt_cv_struct_utmpx_host=no])]) |
761 | #include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[rxvt_cv_struct_utmpx_host=yes],[rxvt_cv_struct_utmpx_host=no])]) |
759 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
762 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
760 | AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host) |
763 | AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host) |
761 | fi |
764 | fi |
|
|
765 | |
|
|
766 | AC_CACHE_CHECK(for session in utmpx struct, rxvt_cv_struct_utmpx_session, |
|
|
767 | [AC_TRY_COMPILE([#include <sys/types.h> |
|
|
768 | #include <utmpx.h>], |
|
|
769 | [struct utmpx utx; utx.ut_session;], |
|
|
770 | rxvt_cv_struct_utmpx_session=yes, rxvt_cv_struct_utmpx_session=no)]) |
|
|
771 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
772 | AC_DEFINE(HAVE_UTMPX_SESSION, 1, Define if struct utmpx contains ut_session) |
|
|
773 | fi |
762 | ) dnl# AC_CHECK_HEADER(utmpx.h |
774 | ) dnl# AC_CHECK_HEADER(utmpx.h |
763 | |
|
|
764 | |
775 | |
765 | dnl# -------------------------------------------------------------------------- |
776 | dnl# -------------------------------------------------------------------------- |
766 | dnl# check for struct lastlog |
777 | dnl# check for struct lastlog |
767 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
778 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
768 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
779 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
… | |
… | |
1441 | echo ". functions could not be found. ." |
1452 | echo ". functions could not be found. ." |
1442 | echo ". XIM is now being DISABLED! ." |
1453 | echo ". XIM is now being DISABLED! ." |
1443 | echo ".----------------------------------------------------------------." |
1454 | echo ".----------------------------------------------------------------." |
1444 | fi |
1455 | fi |
1445 | |
1456 | |
1446 | echo " *** Please check src/feature.h for further options ***" |
1457 | echo " *** Optionally check src/feature.h for further options ***" |
1447 | echo |
1458 | echo |
1448 | |
1459 | |
1449 | echo ".----------------------------------------------------------------." |
1460 | echo ".----------------------------------------------------------------." |
1450 | echo ". NOTE: most features are disabled by default, try ." |
1461 | echo ". NOTE: most features are disabled by default, try ." |
1451 | echo ". configure --help to get an idea of the optional features ." |
1462 | echo ". configure --help to get an idea of the optional features, ." |
|
|
1463 | echo ". or read ./README.configure ." |
|
|
1464 | echo ". ." |
|
|
1465 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
1466 | echo ". you do not want to read documentation and still want some ." |
|
|
1467 | echo ". useful features. ." |
1452 | echo ".----------------------------------------------------------------." |
1468 | echo ".----------------------------------------------------------------." |
1453 | echo |
1469 | echo |
1454 | |
1470 | |