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

Comparing rxvt-unicode/configure (file contents):
Revision 1.148 by root, Wed Nov 16 20:22:12 2011 UTC vs.
Revision 1.150 by root, Sun Dec 18 02:23:11 2011 UTC

1367 --enable-256-color enable 256-color support 1367 --enable-256-color enable 256-color support
1368 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1368 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1369 --enable-combining enable composition of base and combining characters 1369 --enable-combining enable composition of base and combining characters
1370 --enable-xft enable xft support on systems that have it 1370 --enable-xft enable xft support on systems that have it
1371 --enable-font-styles enable bold and italic support 1371 --enable-font-styles enable bold and italic support
1372 --enable-afterimage enable integration with libAfterImage for background images 1372 --enable-afterimage enable integration with libAfterImage for background images (deprecated)
1373 --enable-pixbuf enable integration with gdk-pixbuf for background images 1373 --enable-pixbuf enable integration with gdk-pixbuf for background images
1374 --enable-startup-notification enable freedesktop startup notification support 1374 --enable-startup-notification enable freedesktop startup notification support
1375 --enable-transparency enable transparent backgrounds 1375 --enable-transparency enable transparent backgrounds
1376 --enable-fading enable colors fading when off focus 1376 --enable-fading enable colors fading when off focus
1377 --enable-rxvt-scroll enable rxvt style scrollbar 1377 --enable-rxvt-scroll enable rxvt style scrollbar
4670support_scroll_next=yes 4670support_scroll_next=yes
4671support_scroll_xterm=yes 4671support_scroll_xterm=yes
4672support_xim=yes 4672support_xim=yes
4673support_pixbuf=yes 4673support_pixbuf=yes
4674support_startup_notification=yes 4674support_startup_notification=yes
4675support_afterimage=yes
4676support_xft=yes 4675support_xft=yes
4677support_unicode3=no 4676support_unicode3=no
4678support_combining=yes 4677support_combining=yes
4679support_8bitctrls=no 4678support_8bitctrls=no
4680support_iso14755=yes 4679support_iso14755=yes
4703 support_utmp=no 4702 support_utmp=no
4704 support_wtmp=no 4703 support_wtmp=no
4705 support_xim=no 4704 support_xim=no
4706 support_pixbuf=no 4705 support_pixbuf=no
4707 support_startup_notification=no 4706 support_startup_notification=no
4708 support_afterimage=no
4709 support_xft=no 4707 support_xft=no
4710 support_unicode3=no 4708 support_unicode3=no
4711 support_combining=no 4709 support_combining=no
4712 support_8bitctrls=no 4710 support_8bitctrls=no
4713 support_iso14755=no 4711 support_iso14755=no
4732 support_utmp=yes 4730 support_utmp=yes
4733 support_wtmp=yes 4731 support_wtmp=yes
4734 support_xim=yes 4732 support_xim=yes
4735 support_pixbuf=yes 4733 support_pixbuf=yes
4736 support_startup_notification=yes 4734 support_startup_notification=yes
4737 support_afterimage=yes
4738 support_xft=yes 4735 support_xft=yes
4739 support_unicode3=yes 4736 support_unicode3=yes
4740 support_combining=yes 4737 support_combining=yes
4741 #support_8bitctrls=yes 4738 #support_8bitctrls=yes
4742 support_iso14755=yes 4739 support_iso14755=yes
4746 fi 4743 fi
4747 4744
4748fi 4745fi
4749 4746
4750 4747
4751ASSERTIONS=no 4748support_assertions=no
4752# Check whether --enable-assert was given. 4749# Check whether --enable-assert was given.
4753if test "${enable_assert+set}" = set; then : 4750if test "${enable_assert+set}" = set; then :
4754 enableval=$enable_assert; if test x$enableval = xyes; then 4751 enableval=$enable_assert; if test x$enableval = xyes; then
4755 ASSERTIONS=yes 4752 support_assertions=yes
4756 fi 4753 fi
4757fi 4754fi
4758 4755
4759if test x$ASSERTIONS = xno; then 4756if test x$support_assertions = xno; then
4760 4757
4761$as_echo "#define NDEBUG 1" >>confdefs.h 4758$as_echo "#define NDEBUG 1" >>confdefs.h
4762 4759
4763fi 4760fi
4764 4761
4765WARNINGS=no 4762support_warnings=no
4766# Check whether --enable-warnings was given. 4763# Check whether --enable-warnings was given.
4767if test "${enable_warnings+set}" = set; then : 4764if test "${enable_warnings+set}" = set; then :
4768 enableval=$enable_warnings; if test x$enableval = xyes; then 4765 enableval=$enable_warnings; if test x$enableval = xyes; then
4769 WARNINGS=yes 4766 support_warnings=yes
4770 fi 4767 fi
4771fi 4768fi
4772 4769
4773if test x$GXX = xyes; then 4770if test x$GXX = xyes; then
4774 if test $WARNINGS = yes; then 4771 if test $support_warnings = yes; then
4775 save_CXXFLAGS="$CXXFLAGS" 4772 save_CXXFLAGS="$CXXFLAGS"
4776 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" 4773 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */ 4775/* end confdefs.h. */
4779 4776
4780int 4777int
4781main () 4778main ()
6424 6421
6425 6422
6426 6423
6427AFTERIMAGE_CFLAGS= 6424AFTERIMAGE_CFLAGS=
6428AFTERIMAGE_LIBS= 6425AFTERIMAGE_LIBS=
6429AFTERIMAGE_VERSION=
6430 6426
6431if test x$support_afterimage = xyes; then 6427if test x$support_afterimage = xyes; then
6432 support_afterimage=no 6428 support_afterimage=no
6433 6429
6434 if test "x$afterimage_config" = "x" ; then 6430 if test "x$afterimage_config" = "x" ; then
6475 6471
6476 fi 6472 fi
6477 if test "x$afterimage_config" != "xno" ; then 6473 if test "x$afterimage_config" != "xno" ; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6479$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } 6475$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6480 xAFTERIMAGE_VERSION=`$afterimage_config --version` 6476 AFTERIMAGE_VERSION=`$afterimage_config --version`
6481 if test -n "$xAFTERIMAGE_VERSION" ; then 6477 if test -n "$AFTERIMAGE_VERSION" ; then
6482 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 6478 AFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6483 xAFTERIMAGE_LIBS=`$afterimage_config --libs` 6479 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6484 if test "x$xAFTERIMAGE_LIBS" != "x"; then 6480 if test "x$AFTERIMAGE_LIBS" != "x"; then
6485 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` 6481 libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .`
6486 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` 6482 libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .`
6487 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then 6483 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6488 support_afterimage=yes 6484 support_afterimage=yes
6489 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6490 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6491 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6492 fi 6485 fi
6493 fi 6486 fi
6494 fi 6487 fi
6495 if test "x$support_afterimage" = "xyes"; then 6488 if test "x$support_afterimage" = "xyes"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6503$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h 6496$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6504 6497
6505 else 6498 else
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507$as_echo "no" >&6; } 6500$as_echo "no" >&6; }
6501 AFTERIMAGE_CFLAGS=
6502 AFTERIMAGE_LIBS=
6508 fi 6503 fi
6509 fi 6504 fi
6510fi 6505fi
6511 6506
6512 6507
6954 6949
6955fi 6950fi
6956 6951
6957 6952
6958 6953
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5 6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6960$as_echo_n "checking where utmp is located... " >&6; } 6955$as_echo_n "checking for a fallback location of utmp... " >&6; }
6961if test "${pt_cv_path_utmp+set}" = set; then : 6956if test "${pt_cv_path_utmp+set}" = set; then :
6962 $as_echo_n "(cached) " >&6 6957 $as_echo_n "(cached) " >&6
6963else 6958else
6959
6964 if test "$cross_compiling" = yes; then : 6960if test "$cross_compiling" != yes; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5
6966$as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
6967else
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969/* end confdefs.h. */
6970#include <stdio.h>
6971#include <stdlib.h>
6972#include <sys/stat.h>
6973
6974#include <sys/types.h>
6975#include <utmp.h>
6976
6977int main()
6978{
6979 const char **path, *list[] = { "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; 6961 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6980 FILE *f = fopen("conftestval", "w"); 6962 if test -f "$file"; then
6981 if (!f) return 1;
6982#ifdef UTMP_FILE
6983 fprintf(f, "%s\n", UTMP_FILE);
6984#elif defined(_PATH_UTMP)
6985 fprintf(f, "%s\n", _PATH_UTMP);
6986#else
6987 for (path = list; *path; path++) {
6988 struct stat st;
6989 if (stat(*path, &st) == 0) {
6990 fprintf(f, "%s\n", *path);
6991 break;
6992 }
6993 }
6994#endif
6995 return fclose(f) != 0;
6996}
6997_ACEOF
6998if ac_fn_cxx_try_run "$LINENO"; then :
6999 pt_cv_path_utmp=`cat conftestval`
7000else
7001 pt_cv_path_utmp= 6963 pt_cv_path_utmp=$file
6964 break
6965 fi
6966 done
7002fi 6967fi
7003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7004 conftest.$ac_objext conftest.beam conftest.$ac_ext
7005fi
7006
7007fi 6968fi
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
7009$as_echo "$pt_cv_path_utmp" >&6; } 6970$as_echo "$pt_cv_path_utmp" >&6; }
7010if test x$pt_cv_path_utmp != x; then 6971if test x$pt_cv_path_utmp != x; then
7011 6972
7012cat >>confdefs.h <<_ACEOF 6973cat >>confdefs.h <<_ACEOF
7013#define UTMP_FILE "$pt_cv_path_utmp" 6974#define PT_UTMP_FILE "$pt_cv_path_utmp"
7014_ACEOF 6975_ACEOF
7015 6976
6977elif test "$cross_compiling" = yes; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6979$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
7016fi 6980fi
7017 6981
7018 6982
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5 6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
7020$as_echo_n "checking where wtmp is located... " >&6; } 6984$as_echo_n "checking for a fallback location of wtmp... " >&6; }
7021if test "${pt_cv_path_wtmp+set}" = set; then : 6985if test "${pt_cv_path_wtmp+set}" = set; then :
7022 $as_echo_n "(cached) " >&6 6986 $as_echo_n "(cached) " >&6
7023else 6987else
6988
7024 if test "$cross_compiling" = yes; then : 6989if test "$cross_compiling" != yes; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5
7026$as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
7027else
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029/* end confdefs.h. */
7030#include <stdio.h>
7031#include <stdlib.h>
7032#include <sys/stat.h>
7033
7034#include <sys/types.h>
7035#ifdef HAVE_UTMP_H
7036#include <utmp.h>
7037#endif
7038
7039int main()
7040{
7041 const char **path, *list[] = { "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; 6990 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
7042 FILE *f = fopen("conftestval", "w"); 6991 if test -f "$file"; then
7043 if (!f) return 1;
7044#ifdef WTMP_FILE
7045 fprintf(f, "%s\n", WTMP_FILE);
7046#elif defined(_PATH_WTMP)
7047 fprintf(f, "%s\n", _PATH_WTMP);
7048#else
7049 for (path = list; *path; path++) {
7050 struct stat st;
7051 if (stat(*path, &st) == 0) {
7052 fprintf(f, "%s\n", *path);
7053 break;
7054 }
7055 }
7056#endif
7057 return fclose(f) != 0;
7058}
7059_ACEOF
7060if ac_fn_cxx_try_run "$LINENO"; then :
7061 pt_cv_path_wtmp=`cat conftestval`
7062else
7063 pt_cv_path_wtmp= 6992 pt_cv_path_wtmp=$file
6993 break
6994 fi
6995 done
7064fi 6996fi
7065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7066 conftest.$ac_objext conftest.beam conftest.$ac_ext
7067fi
7068
7069fi 6997fi
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
7071$as_echo "$pt_cv_path_wtmp" >&6; } 6999$as_echo "$pt_cv_path_wtmp" >&6; }
7072if test x$pt_cv_path_wtmp != x; then 7000if test x$pt_cv_path_wtmp != x; then
7073 7001
7074cat >>confdefs.h <<_ACEOF 7002cat >>confdefs.h <<_ACEOF
7075#define WTMP_FILE "$pt_cv_path_wtmp" 7003#define PT_WTMP_FILE "$pt_cv_path_wtmp"
7076_ACEOF 7004_ACEOF
7077 7005
7006elif test "$cross_compiling" = yes; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7008$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
7078fi 7009fi
7079 7010
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
7081$as_echo_n "checking where wtmpx is located... " >&6; } 7012$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
7082if test "${pt_cv_path_wtmpx+set}" = set; then : 7013if test "${pt_cv_path_wtmpx+set}" = set; then :
7083 $as_echo_n "(cached) " >&6 7014 $as_echo_n "(cached) " >&6
7084else 7015else
7016
7085 if test "$cross_compiling" = yes; then : 7017if test "$cross_compiling" != yes; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMPX_FILE in config.h manually" >&5 7018 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7087$as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} 7019 if test -f "$file"; then
7088else
7089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090/* end confdefs.h. */
7091#include <stdio.h>
7092#include <stdlib.h>
7093#include <sys/stat.h>
7094
7095#ifdef HAVE_UTMPX_H
7096#include <utmpx.h>
7097#endif
7098
7099int main()
7100{
7101 const char **path, *list[] = { "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
7102 FILE *f = fopen("conftestval", "w");
7103 if (!f) return 1;
7104#ifdef WTMPX_FILE
7105 fprintf(f, "%s\n", WTMPX_FILE);
7106#elif defined(_PATH_WTMPX)
7107 fprintf(f, "%s\n", _PATH_WTMPX);
7108#else
7109 for (path = list; *path; path++) {
7110 struct stat st;
7111 if (stat(*path, &st) == 0) {
7112 fprintf(f, "%s\n", *path);
7113 break;
7114 }
7115 }
7116#endif
7117 return fclose(f) != 0;
7118}
7119_ACEOF
7120if ac_fn_cxx_try_run "$LINENO"; then :
7121 pt_cv_path_wtmpx=`cat conftestval`
7122else
7123 pt_cv_path_wtmpx= 7020 pt_cv_path_wtmpx=$file
7021 break
7022 fi
7023 done
7124fi 7024fi
7125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7126 conftest.$ac_objext conftest.beam conftest.$ac_ext
7127fi
7128
7129fi 7025fi
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7131$as_echo "$pt_cv_path_wtmpx" >&6; } 7027$as_echo "$pt_cv_path_wtmpx" >&6; }
7132if test x$pt_cv_path_wtmpx != x; then 7028if test x$pt_cv_path_wtmpx != x; then
7133 7029
7134cat >>confdefs.h <<_ACEOF 7030cat >>confdefs.h <<_ACEOF
7135#define WTMPX_FILE "$pt_cv_path_wtmpx" 7031#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7136_ACEOF 7032_ACEOF
7137 7033
7034elif test "$cross_compiling" = yes; then
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7036$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7138fi 7037fi
7139 7038
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7141$as_echo_n "checking where lastlog is located... " >&6; } 7040$as_echo_n "checking for a fallback location of lastlog... " >&6; }
7142if test "${pt_cv_path_lastlog+set}" = set; then : 7041if test "${pt_cv_path_lastlog+set}" = set; then :
7143 $as_echo_n "(cached) " >&6 7042 $as_echo_n "(cached) " >&6
7144else 7043else
7044
7145 if test "$cross_compiling" = yes; then : 7045if test "$cross_compiling" != yes; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5 7046 for file in "/var/log/lastlog"; do
7147$as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} 7047 if test -f "$file"; then
7148else
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150/* end confdefs.h. */
7151#include <stdio.h>
7152#include <stdlib.h>
7153#include <sys/stat.h>
7154
7155#include <sys/types.h>
7156#ifdef HAVE_UTMP_H
7157#include <utmp.h>
7158#endif
7159#ifdef HAVE_LASTLOG_H
7160#include <lastlog.h>
7161#endif
7162
7163int main()
7164{
7165 const char **path, *list[] = { "/var/log/lastlog", NULL };
7166 FILE *f = fopen("conftestval", "w");
7167 if (!f) return 1;
7168#ifdef LASTLOG_FILE
7169 fprintf(f, "%s\n", LASTLOG_FILE);
7170#elif defined(_PATH_LASTLOG)
7171 fprintf(f, "%s\n", _PATH_LASTLOG);
7172#else
7173 for (path = list; *path; path++) {
7174 struct stat st;
7175 if (stat(*path, &st) == 0) {
7176 fprintf(f, "%s\n", *path);
7177 break;
7178 }
7179 }
7180#endif
7181 return fclose(f) != 0;
7182}
7183_ACEOF
7184if ac_fn_cxx_try_run "$LINENO"; then :
7185 pt_cv_path_lastlog=`cat conftestval`
7186else
7187 pt_cv_path_lastlog= 7048 pt_cv_path_lastlog=$file
7049 break
7050 fi
7051 done
7188fi 7052fi
7189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7190 conftest.$ac_objext conftest.beam conftest.$ac_ext
7191fi
7192
7193fi 7053fi
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7195$as_echo "$pt_cv_path_lastlog" >&6; } 7055$as_echo "$pt_cv_path_lastlog" >&6; }
7196if test x$pt_cv_path_lastlog != x; then 7056if test x$pt_cv_path_lastlog != x; then
7197 7057
7198cat >>confdefs.h <<_ACEOF 7058cat >>confdefs.h <<_ACEOF
7199#define LASTLOG_FILE "$pt_cv_path_lastlog" 7059#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7200_ACEOF 7060_ACEOF
7201 7061
7062elif test "$cross_compiling" = yes; then
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7064$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7202fi 7065fi
7203 7066
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7205$as_echo_n "checking where lastlogx is located... " >&6; } 7068$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
7206if test "${pt_cv_path_lastlogx+set}" = set; then : 7069if test "${pt_cv_path_lastlogx+set}" = set; then :
7207 $as_echo_n "(cached) " >&6 7070 $as_echo_n "(cached) " >&6
7208else 7071else
7072
7209 if test "$cross_compiling" = yes; then : 7073if test "$cross_compiling" != yes; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 7074 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7211$as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} 7075 if test -f "$file"; then
7212else
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214/* end confdefs.h. */
7215#include <stdio.h>
7216#include <stdlib.h>
7217#include <sys/stat.h>
7218
7219#ifdef HAVE_UTMPX_H
7220#include <utmpx.h>
7221#endif
7222
7223int main()
7224{
7225 const char **path, *list[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
7226 FILE *f = fopen("conftestval", "w");
7227 if (!f) return 1;
7228#ifdef LASTLOGX_FILE
7229 fprintf(f, "%s\n", LASTLOGX_FILE);
7230#elif defined(_PATH_LASTLOGX)
7231 fprintf(f, "%s\n", _PATH_LASTLOGX);
7232#else
7233 for (path = list; *path; path++) {
7234 struct stat st;
7235 if (stat(*path, &st) == 0) {
7236 fprintf(f, "%s\n", *path);
7237 break;
7238 }
7239 }
7240#endif
7241 return fclose(f) != 0;
7242}
7243_ACEOF
7244if ac_fn_cxx_try_run "$LINENO"; then :
7245 pt_cv_path_lastlogx=`cat conftestval`
7246else
7247 pt_cv_path_lastlogx= 7076 pt_cv_path_lastlogx=$file
7077 break
7078 fi
7079 done
7248fi 7080fi
7249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7250 conftest.$ac_objext conftest.beam conftest.$ac_ext
7251fi
7252
7253fi 7081fi
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7255$as_echo "$pt_cv_path_lastlogx" >&6; } 7083$as_echo "$pt_cv_path_lastlogx" >&6; }
7256if test x$pt_cv_path_lastlogx != x; then 7084if test x$pt_cv_path_lastlogx != x; then
7257 7085
7258cat >>confdefs.h <<_ACEOF 7086cat >>confdefs.h <<_ACEOF
7259#define LASTLOGX_FILE "$pt_cv_path_lastlogx" 7087#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7260_ACEOF 7088_ACEOF
7261 7089
7090elif test "$cross_compiling" = yes; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7092$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7262fi 7093fi
7263 7094
7264 7095
7265 7096
7266 7097
7550 7381
7551fi 7382fi
7552done 7383done
7553 7384
7554 7385
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7556$as_echo_n "checking for UNIX98 ptys... " >&6; } 7387$as_echo_n "checking for UNIX98 ptys... " >&6; }
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558/* end confdefs.h. */ 7389/* end confdefs.h. */
7559#include <stdlib.h> 7390#include <stdlib.h>
7560int 7391int
7561main () 7392main ()
7562{ 7393{
7568if ac_fn_cxx_try_link "$LINENO"; then : 7399if ac_fn_cxx_try_link "$LINENO"; then :
7569 unix98_pty=yes 7400 unix98_pty=yes
7570 7401
7571$as_echo "#define UNIX98_PTY 1" >>confdefs.h 7402$as_echo "#define UNIX98_PTY 1" >>confdefs.h
7572 7403
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574$as_echo "yes" >&6; } 7405$as_echo "yes" >&6; }
7575else 7406else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577$as_echo "no" >&6; } 7408$as_echo "no" >&6; }
7578fi 7409fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines