… | |
… | |
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 |
… | |
… | |
708 | unlockpt \ |
707 | unlockpt \ |
709 | isastream \ |
708 | isastream \ |
710 | on_exit \ |
709 | on_exit \ |
711 | nanosleep \ |
710 | nanosleep \ |
712 | updwtmp \ |
711 | updwtmp \ |
|
|
712 | updwtmpx \ |
713 | ttyslot \ |
713 | ttyslot \ |
714 | ) |
714 | ) |
715 | 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 |
716 | |
716 | |
717 | dnl# -------------------------------------------------------------------------- |
717 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
760 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
760 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
761 | #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])]) |
762 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
762 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
763 | 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) |
764 | 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 |
765 | ) dnl# AC_CHECK_HEADER(utmpx.h |
774 | ) dnl# AC_CHECK_HEADER(utmpx.h |
766 | |
|
|
767 | |
775 | |
768 | dnl# -------------------------------------------------------------------------- |
776 | dnl# -------------------------------------------------------------------------- |
769 | dnl# check for struct lastlog |
777 | dnl# check for struct lastlog |
770 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
778 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
771 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
779 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |