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

Comparing rxvt-unicode/configure (file contents):
Revision 1.146 by root, Wed Jun 22 15:18:05 2011 UTC vs.
Revision 1.150 by root, Sun Dec 18 02:23:11 2011 UTC

601PERL 601PERL
602XFT_CONFIG 602XFT_CONFIG
603AFTERIMAGE_LIBS 603AFTERIMAGE_LIBS
604AFTERIMAGE_CFLAGS 604AFTERIMAGE_CFLAGS
605afterimage_config 605afterimage_config
606STARTUP_NOTIFICATION_LIBS
607STARTUP_NOTIFICATION_CFLAGS
606PIXBUF_LIBS 608PIXBUF_LIBS
607PIXBUF_CFLAGS 609PIXBUF_CFLAGS
608PKG_CONFIG 610PKG_CONFIG
609X_EXTRA_LIBS 611X_EXTRA_LIBS
610X_LIBS 612X_LIBS
691enable_xft 693enable_xft
692enable_font_styles 694enable_font_styles
693enable_afterimage 695enable_afterimage
694with_afterimage_config 696with_afterimage_config
695enable_pixbuf 697enable_pixbuf
698enable_startup_notification
696enable_transparency 699enable_transparency
697enable_fading 700enable_fading
698enable_rxvt_scroll 701enable_rxvt_scroll
699enable_next_scroll 702enable_next_scroll
700enable_xterm_scroll 703enable_xterm_scroll
1364 --enable-256-color enable 256-color support 1367 --enable-256-color enable 256-color support
1365 --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
1366 --enable-combining enable composition of base and combining characters 1369 --enable-combining enable composition of base and combining characters
1367 --enable-xft enable xft support on systems that have it 1370 --enable-xft enable xft support on systems that have it
1368 --enable-font-styles enable bold and italic support 1371 --enable-font-styles enable bold and italic support
1369 --enable-afterimage enable integration with libAfterImage for background images 1372 --enable-afterimage enable integration with libAfterImage for background images (deprecated)
1370 --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
1371 --enable-transparency enable transparent backgrounds 1375 --enable-transparency enable transparent backgrounds
1372 --enable-fading enable colors fading when off focus 1376 --enable-fading enable colors fading when off focus
1373 --enable-rxvt-scroll enable rxvt style scrollbar 1377 --enable-rxvt-scroll enable rxvt style scrollbar
1374 --enable-next-scroll enable NeXT style scrollbar 1378 --enable-next-scroll enable NeXT style scrollbar
1375 --enable-xterm-scroll enable Xterm style scrollbar 1379 --enable-xterm-scroll enable Xterm style scrollbar
4665support_scroll_rxvt=yes 4669support_scroll_rxvt=yes
4666support_scroll_next=yes 4670support_scroll_next=yes
4667support_scroll_xterm=yes 4671support_scroll_xterm=yes
4668support_xim=yes 4672support_xim=yes
4669support_pixbuf=yes 4673support_pixbuf=yes
4670support_afterimage=yes 4674support_startup_notification=yes
4671support_xft=yes 4675support_xft=yes
4672support_unicode3=no 4676support_unicode3=no
4673support_combining=yes 4677support_combining=yes
4674support_8bitctrls=no 4678support_8bitctrls=no
4675support_iso14755=yes 4679support_iso14755=yes
4697 support_scroll_xterm=no 4701 support_scroll_xterm=no
4698 support_utmp=no 4702 support_utmp=no
4699 support_wtmp=no 4703 support_wtmp=no
4700 support_xim=no 4704 support_xim=no
4701 support_pixbuf=no 4705 support_pixbuf=no
4702 support_afterimage=no 4706 support_startup_notification=no
4703 support_xft=no 4707 support_xft=no
4704 support_unicode3=no 4708 support_unicode3=no
4705 support_combining=no 4709 support_combining=no
4706 support_8bitctrls=no 4710 support_8bitctrls=no
4707 support_iso14755=no 4711 support_iso14755=no
4725 support_scroll_xterm=yes 4729 support_scroll_xterm=yes
4726 support_utmp=yes 4730 support_utmp=yes
4727 support_wtmp=yes 4731 support_wtmp=yes
4728 support_xim=yes 4732 support_xim=yes
4729 support_pixbuf=yes 4733 support_pixbuf=yes
4730 support_afterimage=yes 4734 support_startup_notification=yes
4731 support_xft=yes 4735 support_xft=yes
4732 support_unicode3=yes 4736 support_unicode3=yes
4733 support_combining=yes 4737 support_combining=yes
4734 #support_8bitctrls=yes 4738 #support_8bitctrls=yes
4735 support_iso14755=yes 4739 support_iso14755=yes
4739 fi 4743 fi
4740 4744
4741fi 4745fi
4742 4746
4743 4747
4744ASSERTIONS=no 4748support_assertions=no
4745# Check whether --enable-assert was given. 4749# Check whether --enable-assert was given.
4746if test "${enable_assert+set}" = set; then : 4750if test "${enable_assert+set}" = set; then :
4747 enableval=$enable_assert; if test x$enableval = xyes; then 4751 enableval=$enable_assert; if test x$enableval = xyes; then
4748 ASSERTIONS=yes 4752 support_assertions=yes
4749 fi 4753 fi
4750fi 4754fi
4751 4755
4752if test x$ASSERTIONS = xno; then 4756if test x$support_assertions = xno; then
4753 4757
4754$as_echo "#define NDEBUG 1" >>confdefs.h 4758$as_echo "#define NDEBUG 1" >>confdefs.h
4755 4759
4756fi 4760fi
4757 4761
4758WARNINGS=no 4762support_warnings=no
4759# Check whether --enable-warnings was given. 4763# Check whether --enable-warnings was given.
4760if test "${enable_warnings+set}" = set; then : 4764if test "${enable_warnings+set}" = set; then :
4761 enableval=$enable_warnings; if test x$enableval = xyes; then 4765 enableval=$enable_warnings; if test x$enableval = xyes; then
4762 WARNINGS=yes 4766 support_warnings=yes
4763 fi 4767 fi
4764fi 4768fi
4765 4769
4766if test x$GXX = xyes; then 4770if test x$GXX = xyes; then
4767 if test $WARNINGS = yes; then 4771 if test $support_warnings = yes; then
4768 save_CXXFLAGS="$CXXFLAGS" 4772 save_CXXFLAGS="$CXXFLAGS"
4769 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" 4773 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */ 4775/* end confdefs.h. */
4772 4776
4773int 4777int
4774main () 4778main ()
4854 4858
4855# Check whether --enable-pixbuf was given. 4859# Check whether --enable-pixbuf was given.
4856if test "${enable_pixbuf+set}" = set; then : 4860if test "${enable_pixbuf+set}" = set; then :
4857 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then 4861 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4858 support_pixbuf=$enableval 4862 support_pixbuf=$enableval
4863 fi
4864fi
4865
4866
4867# Check whether --enable-startup-notification was given.
4868if test "${enable_startup_notification+set}" = set; then :
4869 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4870 support_startup_notification=$enableval
4859 fi 4871 fi
4860fi 4872fi
4861 4873
4862 4874
4863# Check whether --enable-transparency was given. 4875# Check whether --enable-transparency was given.
6338fi 6350fi
6339 6351
6340 6352
6341 6353
6342 6354
6355STARTUP_NOTIFICATION_CFLAGS=
6356STARTUP_NOTIFICATION_LIBS=
6357
6358if test x$support_startup_notification = xyes; then
6359 support_startup_notification=no
6360 # Extract the first word of "pkg-config", so it can be a program name with args.
6361set dummy pkg-config; ac_word=$2
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363$as_echo_n "checking for $ac_word... " >&6; }
6364if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6365 $as_echo_n "(cached) " >&6
6366else
6367 case $PKG_CONFIG in
6368 [\\/]* | ?:[\\/]*)
6369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6370 ;;
6371 *)
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH
6374do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381 break 2
6382 fi
6383done
6384 done
6385IFS=$as_save_IFS
6386
6387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6388 ;;
6389esac
6390fi
6391PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6392if test -n "$PKG_CONFIG"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6394$as_echo "$PKG_CONFIG" >&6; }
6395else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397$as_echo "no" >&6; }
6398fi
6399
6400
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6402$as_echo_n "checking for libstartup-notification... " >&6; }
6403 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6404 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6405 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6406 support_startup_notification=yes
6407 fi
6408
6409 if test x$support_startup_notification = xyes; then
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6411$as_echo "ok" >&6; }
6412
6413$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6414
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417$as_echo "no" >&6; }
6418 fi
6419fi
6420
6421
6422
6423
6343AFTERIMAGE_CFLAGS= 6424AFTERIMAGE_CFLAGS=
6344AFTERIMAGE_LIBS= 6425AFTERIMAGE_LIBS=
6345AFTERIMAGE_VERSION=
6346 6426
6347if test x$support_afterimage = xyes; then 6427if test x$support_afterimage = xyes; then
6348 support_afterimage=no 6428 support_afterimage=no
6349 6429
6350 if test "x$afterimage_config" = "x" ; then 6430 if test "x$afterimage_config" = "x" ; then
6391 6471
6392 fi 6472 fi
6393 if test "x$afterimage_config" != "xno" ; then 6473 if test "x$afterimage_config" != "xno" ; then
6394 { $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
6395$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } 6475$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6396 xAFTERIMAGE_VERSION=`$afterimage_config --version` 6476 AFTERIMAGE_VERSION=`$afterimage_config --version`
6397 if test -n "$xAFTERIMAGE_VERSION" ; then 6477 if test -n "$AFTERIMAGE_VERSION" ; then
6398 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 6478 AFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6399 xAFTERIMAGE_LIBS=`$afterimage_config --libs` 6479 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6400 if test "x$xAFTERIMAGE_LIBS" != "x"; then 6480 if test "x$AFTERIMAGE_LIBS" != "x"; then
6401 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` 6481 libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .`
6402 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` 6482 libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .`
6403 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
6404 support_afterimage=yes 6484 support_afterimage=yes
6405 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6406 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6407 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6408 fi 6485 fi
6409 fi 6486 fi
6410 fi 6487 fi
6411 if test "x$support_afterimage" = "xyes"; then 6488 if test "x$support_afterimage" = "xyes"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6419$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h 6496$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6420 6497
6421 else 6498 else
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; } 6500$as_echo "no" >&6; }
6501 AFTERIMAGE_CFLAGS=
6502 AFTERIMAGE_LIBS=
6424 fi 6503 fi
6425 fi 6504 fi
6426fi 6505fi
6427 6506
6428 6507
6870 6949
6871fi 6950fi
6872 6951
6873 6952
6874 6953
6875{ $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
6876$as_echo_n "checking where utmp is located... " >&6; } 6955$as_echo_n "checking for a fallback location of utmp... " >&6; }
6877if test "${pt_cv_path_utmp+set}" = set; then : 6956if test "${pt_cv_path_utmp+set}" = set; then :
6878 $as_echo_n "(cached) " >&6 6957 $as_echo_n "(cached) " >&6
6879else 6958else
6959
6880 if test "$cross_compiling" = yes; then : 6960if test "$cross_compiling" != yes; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5
6882$as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
6883else
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885/* end confdefs.h. */
6886#include <stdio.h>
6887#include <stdlib.h>
6888#include <sys/stat.h>
6889
6890#include <sys/types.h>
6891#include <utmp.h>
6892
6893int main()
6894{
6895 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
6896 FILE *f = fopen("conftestval", "w"); 6962 if test -f "$file"; then
6897 if (!f) return 1;
6898#ifdef UTMP_FILE
6899 fprintf(f, "%s\n", UTMP_FILE);
6900#elif defined(_PATH_UTMP)
6901 fprintf(f, "%s\n", _PATH_UTMP);
6902#else
6903 for (path = list; *path; path++) {
6904 struct stat st;
6905 if (stat(*path, &st) == 0) {
6906 fprintf(f, "%s\n", *path);
6907 break;
6908 }
6909 }
6910#endif
6911 return fclose(f) != 0;
6912}
6913_ACEOF
6914if ac_fn_cxx_try_run "$LINENO"; then :
6915 pt_cv_path_utmp=`cat conftestval`
6916else
6917 pt_cv_path_utmp= 6963 pt_cv_path_utmp=$file
6964 break
6965 fi
6966 done
6918fi 6967fi
6919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6920 conftest.$ac_objext conftest.beam conftest.$ac_ext
6921fi
6922
6923fi 6968fi
6924{ $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
6925$as_echo "$pt_cv_path_utmp" >&6; } 6970$as_echo "$pt_cv_path_utmp" >&6; }
6926if test x$pt_cv_path_utmp != x; then 6971if test x$pt_cv_path_utmp != x; then
6927 6972
6928cat >>confdefs.h <<_ACEOF 6973cat >>confdefs.h <<_ACEOF
6929#define UTMP_FILE "$pt_cv_path_utmp" 6974#define PT_UTMP_FILE "$pt_cv_path_utmp"
6930_ACEOF 6975_ACEOF
6931 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;}
6932fi 6980fi
6933 6981
6934 6982
6935{ $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
6936$as_echo_n "checking where wtmp is located... " >&6; } 6984$as_echo_n "checking for a fallback location of wtmp... " >&6; }
6937if test "${pt_cv_path_wtmp+set}" = set; then : 6985if test "${pt_cv_path_wtmp+set}" = set; then :
6938 $as_echo_n "(cached) " >&6 6986 $as_echo_n "(cached) " >&6
6939else 6987else
6988
6940 if test "$cross_compiling" = yes; then : 6989if test "$cross_compiling" != yes; then
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5
6942$as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
6943else
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945/* end confdefs.h. */
6946#include <stdio.h>
6947#include <stdlib.h>
6948#include <sys/stat.h>
6949
6950#include <sys/types.h>
6951#ifdef HAVE_UTMP_H
6952#include <utmp.h>
6953#endif
6954
6955int main()
6956{
6957 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
6958 FILE *f = fopen("conftestval", "w"); 6991 if test -f "$file"; then
6959 if (!f) return 1;
6960#ifdef WTMP_FILE
6961 fprintf(f, "%s\n", WTMP_FILE);
6962#elif defined(_PATH_WTMP)
6963 fprintf(f, "%s\n", _PATH_WTMP);
6964#else
6965 for (path = list; *path; path++) {
6966 struct stat st;
6967 if (stat(*path, &st) == 0) {
6968 fprintf(f, "%s\n", *path);
6969 break;
6970 }
6971 }
6972#endif
6973 return fclose(f) != 0;
6974}
6975_ACEOF
6976if ac_fn_cxx_try_run "$LINENO"; then :
6977 pt_cv_path_wtmp=`cat conftestval`
6978else
6979 pt_cv_path_wtmp= 6992 pt_cv_path_wtmp=$file
6993 break
6994 fi
6995 done
6980fi 6996fi
6981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6982 conftest.$ac_objext conftest.beam conftest.$ac_ext
6983fi
6984
6985fi 6997fi
6986{ $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
6987$as_echo "$pt_cv_path_wtmp" >&6; } 6999$as_echo "$pt_cv_path_wtmp" >&6; }
6988if test x$pt_cv_path_wtmp != x; then 7000if test x$pt_cv_path_wtmp != x; then
6989 7001
6990cat >>confdefs.h <<_ACEOF 7002cat >>confdefs.h <<_ACEOF
6991#define WTMP_FILE "$pt_cv_path_wtmp" 7003#define PT_WTMP_FILE "$pt_cv_path_wtmp"
6992_ACEOF 7004_ACEOF
6993 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;}
6994fi 7009fi
6995 7010
6996{ $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
6997$as_echo_n "checking where wtmpx is located... " >&6; } 7012$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
6998if test "${pt_cv_path_wtmpx+set}" = set; then : 7013if test "${pt_cv_path_wtmpx+set}" = set; then :
6999 $as_echo_n "(cached) " >&6 7014 $as_echo_n "(cached) " >&6
7000else 7015else
7016
7001 if test "$cross_compiling" = yes; then : 7017if test "$cross_compiling" != yes; then
7002 { $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
7003$as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} 7019 if test -f "$file"; then
7004else
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006/* end confdefs.h. */
7007#include <stdio.h>
7008#include <stdlib.h>
7009#include <sys/stat.h>
7010
7011#ifdef HAVE_UTMPX_H
7012#include <utmpx.h>
7013#endif
7014
7015int main()
7016{
7017 char **path, *list[] = { "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
7018 FILE *f = fopen("conftestval", "w");
7019 if (!f) return 1;
7020#ifdef WTMPX_FILE
7021 fprintf(f, "%s\n", WTMPX_FILE);
7022#elif defined(_PATH_WTMPX)
7023 fprintf(f, "%s\n", _PATH_WTMPX);
7024#else
7025 for (path = list; *path; path++) {
7026 struct stat st;
7027 if (stat(*path, &st) == 0) {
7028 fprintf(f, "%s\n", *path);
7029 break;
7030 }
7031 }
7032#endif
7033 return fclose(f) != 0;
7034}
7035_ACEOF
7036if ac_fn_cxx_try_run "$LINENO"; then :
7037 pt_cv_path_wtmpx=`cat conftestval`
7038else
7039 pt_cv_path_wtmpx= 7020 pt_cv_path_wtmpx=$file
7021 break
7022 fi
7023 done
7040fi 7024fi
7041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7042 conftest.$ac_objext conftest.beam conftest.$ac_ext
7043fi
7044
7045fi 7025fi
7046{ $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
7047$as_echo "$pt_cv_path_wtmpx" >&6; } 7027$as_echo "$pt_cv_path_wtmpx" >&6; }
7048if test x$pt_cv_path_wtmpx != x; then 7028if test x$pt_cv_path_wtmpx != x; then
7049 7029
7050cat >>confdefs.h <<_ACEOF 7030cat >>confdefs.h <<_ACEOF
7051#define WTMPX_FILE "$pt_cv_path_wtmpx" 7031#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7052_ACEOF 7032_ACEOF
7053 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;}
7054fi 7037fi
7055 7038
7056{ $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
7057$as_echo_n "checking where lastlog is located... " >&6; } 7040$as_echo_n "checking for a fallback location of lastlog... " >&6; }
7058if test "${pt_cv_path_lastlog+set}" = set; then : 7041if test "${pt_cv_path_lastlog+set}" = set; then :
7059 $as_echo_n "(cached) " >&6 7042 $as_echo_n "(cached) " >&6
7060else 7043else
7044
7061 if test "$cross_compiling" = yes; then : 7045if test "$cross_compiling" != yes; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5 7046 for file in "/var/log/lastlog"; do
7063$as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} 7047 if test -f "$file"; then
7064else
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h. */
7067#include <stdio.h>
7068#include <stdlib.h>
7069#include <sys/stat.h>
7070
7071#include <sys/types.h>
7072#ifdef HAVE_UTMP_H
7073#include <utmp.h>
7074#endif
7075#ifdef HAVE_LASTLOG_H
7076#include <lastlog.h>
7077#endif
7078
7079int main()
7080{
7081 char **path, *list[] = { "/var/log/lastlog", NULL };
7082 FILE *f = fopen("conftestval", "w");
7083 if (!f) return 1;
7084#ifdef LASTLOG_FILE
7085 fprintf(f, "%s\n", LASTLOG_FILE);
7086#elif defined(_PATH_LASTLOG)
7087 fprintf(f, "%s\n", _PATH_LASTLOG);
7088#else
7089 for (path = list; *path; path++) {
7090 struct stat st;
7091 if (stat(*path, &st) == 0) {
7092 fprintf(f, "%s\n", *path);
7093 break;
7094 }
7095 }
7096#endif
7097 return fclose(f) != 0;
7098}
7099_ACEOF
7100if ac_fn_cxx_try_run "$LINENO"; then :
7101 pt_cv_path_lastlog=`cat conftestval`
7102else
7103 pt_cv_path_lastlog= 7048 pt_cv_path_lastlog=$file
7049 break
7050 fi
7051 done
7104fi 7052fi
7105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7106 conftest.$ac_objext conftest.beam conftest.$ac_ext
7107fi
7108
7109fi 7053fi
7110{ $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
7111$as_echo "$pt_cv_path_lastlog" >&6; } 7055$as_echo "$pt_cv_path_lastlog" >&6; }
7112if test x$pt_cv_path_lastlog != x; then 7056if test x$pt_cv_path_lastlog != x; then
7113 7057
7114cat >>confdefs.h <<_ACEOF 7058cat >>confdefs.h <<_ACEOF
7115#define LASTLOG_FILE "$pt_cv_path_lastlog" 7059#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7116_ACEOF 7060_ACEOF
7117 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;}
7118fi 7065fi
7119 7066
7120{ $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
7121$as_echo_n "checking where lastlogx is located... " >&6; } 7068$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
7122if test "${pt_cv_path_lastlogx+set}" = set; then : 7069if test "${pt_cv_path_lastlogx+set}" = set; then :
7123 $as_echo_n "(cached) " >&6 7070 $as_echo_n "(cached) " >&6
7124else 7071else
7072
7125 if test "$cross_compiling" = yes; then : 7073if test "$cross_compiling" != yes; then
7126 { $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
7127$as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} 7075 if test -f "$file"; then
7128else
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h. */
7131#include <stdio.h>
7132#include <stdlib.h>
7133#include <sys/stat.h>
7134
7135#ifdef HAVE_UTMPX_H
7136#include <utmpx.h>
7137#endif
7138
7139int main()
7140{
7141 char **path, *list[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
7142 FILE *f = fopen("conftestval", "w");
7143 if (!f) return 1;
7144#ifdef LASTLOGX_FILE
7145 fprintf(f, "%s\n", LASTLOGX_FILE);
7146#elif defined(_PATH_LASTLOGX)
7147 fprintf(f, "%s\n", _PATH_LASTLOGX);
7148#else
7149 for (path = list; *path; path++) {
7150 struct stat st;
7151 if (stat(*path, &st) == 0) {
7152 fprintf(f, "%s\n", *path);
7153 break;
7154 }
7155 }
7156#endif
7157 return fclose(f) != 0;
7158}
7159_ACEOF
7160if ac_fn_cxx_try_run "$LINENO"; then :
7161 pt_cv_path_lastlogx=`cat conftestval`
7162else
7163 pt_cv_path_lastlogx= 7076 pt_cv_path_lastlogx=$file
7077 break
7078 fi
7079 done
7164fi 7080fi
7165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7166 conftest.$ac_objext conftest.beam conftest.$ac_ext
7167fi
7168
7169fi 7081fi
7170{ $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
7171$as_echo "$pt_cv_path_lastlogx" >&6; } 7083$as_echo "$pt_cv_path_lastlogx" >&6; }
7172if test x$pt_cv_path_lastlogx != x; then 7084if test x$pt_cv_path_lastlogx != x; then
7173 7085
7174cat >>confdefs.h <<_ACEOF 7086cat >>confdefs.h <<_ACEOF
7175#define LASTLOGX_FILE "$pt_cv_path_lastlogx" 7087#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7176_ACEOF 7088_ACEOF
7177 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;}
7178fi 7093fi
7179 7094
7180 7095
7181 7096
7182 7097
7466 7381
7467fi 7382fi
7468done 7383done
7469 7384
7470 7385
7471have_clone=no
7472
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
7474$as_echo_n "checking for /dev/ptc... " >&6; }
7475if test -e /dev/ptc; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7477$as_echo "yes" >&6; }
7478
7479$as_echo "#define CLONE_DEVICE \"/dev/ptc\"" >>confdefs.h
7480
7481 have_clone=yes
7482else
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484$as_echo "no" >&6; }
7485fi
7486
7487case $host in
7488 *-*-cygwin*)
7489 have_clone=yes
7490
7491$as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
7492
7493 ;;
7494 *)
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
7496$as_echo_n "checking for /dev/ptmx... " >&6; }
7497 if test -e /dev/ptmx; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7499$as_echo "yes" >&6; }
7500
7501$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
7502
7503
7504$as_echo "#define CLONE_DEVICE \"/dev/ptmx\"" >>confdefs.h
7505
7506 have_clone=yes
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509$as_echo "no" >&6; }
7510 fi
7511 ;;
7512esac
7513
7514if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
7515 { $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
7516$as_echo_n "checking for UNIX98 ptys... " >&6; } 7387$as_echo_n "checking for UNIX98 ptys... " >&6; }
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h. */ 7389/* end confdefs.h. */
7519#include <stdlib.h> 7390#include <stdlib.h>
7520int 7391int
7521main () 7392main ()
7522{ 7393{
7528if ac_fn_cxx_try_link "$LINENO"; then : 7399if ac_fn_cxx_try_link "$LINENO"; then :
7529 unix98_pty=yes 7400 unix98_pty=yes
7530 7401
7531$as_echo "#define UNIX98_PTY 1" >>confdefs.h 7402$as_echo "#define UNIX98_PTY 1" >>confdefs.h
7532 7403
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7534$as_echo "yes" >&6; } 7405$as_echo "yes" >&6; }
7535else 7406else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537$as_echo "no" >&6; } 7408$as_echo "no" >&6; }
7538fi 7409fi
7539rm -f core conftest.err conftest.$ac_objext \ 7410rm -f core conftest.err conftest.$ac_objext \
7540 conftest$ac_exeext conftest.$ac_ext 7411 conftest$ac_exeext conftest.$ac_ext
7541fi
7542 7412
7543if test -z "$unix98_pty"; then 7413if test -z "$unix98_pty"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7545$as_echo_n "checking for library containing openpty... " >&6; } 7415$as_echo_n "checking for library containing openpty... " >&6; }
7546if test "${ac_cv_search_openpty+set}" = set; then : 7416if test "${ac_cv_search_openpty+set}" = set; then :

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines