… | |
… | |
601 | PERL |
601 | PERL |
602 | XFT_CONFIG |
602 | XFT_CONFIG |
603 | AFTERIMAGE_LIBS |
603 | AFTERIMAGE_LIBS |
604 | AFTERIMAGE_CFLAGS |
604 | AFTERIMAGE_CFLAGS |
605 | afterimage_config |
605 | afterimage_config |
|
|
606 | STARTUP_NOTIFICATION_LIBS |
|
|
607 | STARTUP_NOTIFICATION_CFLAGS |
606 | PIXBUF_LIBS |
608 | PIXBUF_LIBS |
607 | PIXBUF_CFLAGS |
609 | PIXBUF_CFLAGS |
608 | PKG_CONFIG |
610 | PKG_CONFIG |
609 | X_EXTRA_LIBS |
611 | X_EXTRA_LIBS |
610 | X_LIBS |
612 | X_LIBS |
… | |
… | |
691 | enable_xft |
693 | enable_xft |
692 | enable_font_styles |
694 | enable_font_styles |
693 | enable_afterimage |
695 | enable_afterimage |
694 | with_afterimage_config |
696 | with_afterimage_config |
695 | enable_pixbuf |
697 | enable_pixbuf |
|
|
698 | enable_startup_notification |
696 | enable_transparency |
699 | enable_transparency |
697 | enable_fading |
700 | enable_fading |
698 | enable_rxvt_scroll |
701 | enable_rxvt_scroll |
699 | enable_next_scroll |
702 | enable_next_scroll |
700 | enable_xterm_scroll |
703 | enable_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 |
… | |
… | |
4665 | support_scroll_rxvt=yes |
4669 | support_scroll_rxvt=yes |
4666 | support_scroll_next=yes |
4670 | support_scroll_next=yes |
4667 | support_scroll_xterm=yes |
4671 | support_scroll_xterm=yes |
4668 | support_xim=yes |
4672 | support_xim=yes |
4669 | support_pixbuf=yes |
4673 | support_pixbuf=yes |
4670 | support_afterimage=yes |
4674 | support_startup_notification=yes |
4671 | support_xft=yes |
4675 | support_xft=yes |
4672 | support_unicode3=no |
4676 | support_unicode3=no |
4673 | support_combining=yes |
4677 | support_combining=yes |
4674 | support_8bitctrls=no |
4678 | support_8bitctrls=no |
4675 | support_iso14755=yes |
4679 | support_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 | |
4741 | fi |
4745 | fi |
4742 | |
4746 | |
4743 | |
4747 | |
4744 | ASSERTIONS=no |
4748 | support_assertions=no |
4745 | # Check whether --enable-assert was given. |
4749 | # Check whether --enable-assert was given. |
4746 | if test "${enable_assert+set}" = set; then : |
4750 | if 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 |
4750 | fi |
4754 | fi |
4751 | |
4755 | |
4752 | if test x$ASSERTIONS = xno; then |
4756 | if 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 | |
4756 | fi |
4760 | fi |
4757 | |
4761 | |
4758 | WARNINGS=no |
4762 | support_warnings=no |
4759 | # Check whether --enable-warnings was given. |
4763 | # Check whether --enable-warnings was given. |
4760 | if test "${enable_warnings+set}" = set; then : |
4764 | if 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 |
4764 | fi |
4768 | fi |
4765 | |
4769 | |
4766 | if test x$GXX = xyes; then |
4770 | if 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 | |
4773 | int |
4777 | int |
4774 | main () |
4778 | main () |
… | |
… | |
4854 | |
4858 | |
4855 | # Check whether --enable-pixbuf was given. |
4859 | # Check whether --enable-pixbuf was given. |
4856 | if test "${enable_pixbuf+set}" = set; then : |
4860 | if 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 |
|
|
4864 | fi |
|
|
4865 | |
|
|
4866 | |
|
|
4867 | # Check whether --enable-startup-notification was given. |
|
|
4868 | if 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 |
4860 | fi |
4872 | fi |
4861 | |
4873 | |
4862 | |
4874 | |
4863 | # Check whether --enable-transparency was given. |
4875 | # Check whether --enable-transparency was given. |
… | |
… | |
6338 | fi |
6350 | fi |
6339 | |
6351 | |
6340 | |
6352 | |
6341 | |
6353 | |
6342 | |
6354 | |
|
|
6355 | STARTUP_NOTIFICATION_CFLAGS= |
|
|
6356 | STARTUP_NOTIFICATION_LIBS= |
|
|
6357 | |
|
|
6358 | if 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. |
|
|
6361 | set 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; } |
|
|
6364 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
|
|
6365 | $as_echo_n "(cached) " >&6 |
|
|
6366 | else |
|
|
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 |
|
|
6373 | for as_dir in $PATH |
|
|
6374 | do |
|
|
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 |
|
|
6383 | done |
|
|
6384 | done |
|
|
6385 | IFS=$as_save_IFS |
|
|
6386 | |
|
|
6387 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
6388 | ;; |
|
|
6389 | esac |
|
|
6390 | fi |
|
|
6391 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
6392 | if test -n "$PKG_CONFIG"; then |
|
|
6393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
|
|
6394 | $as_echo "$PKG_CONFIG" >&6; } |
|
|
6395 | else |
|
|
6396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6397 | $as_echo "no" >&6; } |
|
|
6398 | fi |
|
|
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 |
|
|
6419 | fi |
|
|
6420 | |
|
|
6421 | |
|
|
6422 | |
|
|
6423 | |
6343 | AFTERIMAGE_CFLAGS= |
6424 | AFTERIMAGE_CFLAGS= |
6344 | AFTERIMAGE_LIBS= |
6425 | AFTERIMAGE_LIBS= |
6345 | AFTERIMAGE_VERSION= |
|
|
6346 | |
6426 | |
6347 | if test x$support_afterimage = xyes; then |
6427 | if 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 |
6426 | fi |
6505 | fi |
6427 | |
6506 | |
6428 | |
6507 | |
… | |
… | |
6870 | |
6949 | |
6871 | fi |
6950 | fi |
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; } |
6877 | if test "${pt_cv_path_utmp+set}" = set; then : |
6956 | if test "${pt_cv_path_utmp+set}" = set; then : |
6878 | $as_echo_n "(cached) " >&6 |
6957 | $as_echo_n "(cached) " >&6 |
6879 | else |
6958 | else |
|
|
6959 | |
6880 | if test "$cross_compiling" = yes; then : |
6960 | if 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;} |
|
|
6883 | else |
|
|
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 | |
|
|
6893 | int 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 |
|
|
6914 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6915 | pt_cv_path_utmp=`cat conftestval` |
|
|
6916 | else |
|
|
6917 | pt_cv_path_utmp= |
6963 | pt_cv_path_utmp=$file |
|
|
6964 | break |
|
|
6965 | fi |
|
|
6966 | done |
6918 | fi |
6967 | fi |
6919 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
6920 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
6921 | fi |
|
|
6922 | |
|
|
6923 | fi |
6968 | fi |
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; } |
6926 | if test x$pt_cv_path_utmp != x; then |
6971 | if test x$pt_cv_path_utmp != x; then |
6927 | |
6972 | |
6928 | cat >>confdefs.h <<_ACEOF |
6973 | cat >>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 | |
|
|
6977 | elif 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;} |
6932 | fi |
6980 | fi |
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; } |
6937 | if test "${pt_cv_path_wtmp+set}" = set; then : |
6985 | if test "${pt_cv_path_wtmp+set}" = set; then : |
6938 | $as_echo_n "(cached) " >&6 |
6986 | $as_echo_n "(cached) " >&6 |
6939 | else |
6987 | else |
|
|
6988 | |
6940 | if test "$cross_compiling" = yes; then : |
6989 | if 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;} |
|
|
6943 | else |
|
|
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 | |
|
|
6955 | int 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 |
|
|
6976 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6977 | pt_cv_path_wtmp=`cat conftestval` |
|
|
6978 | else |
|
|
6979 | pt_cv_path_wtmp= |
6992 | pt_cv_path_wtmp=$file |
|
|
6993 | break |
|
|
6994 | fi |
|
|
6995 | done |
6980 | fi |
6996 | fi |
6981 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
6982 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
6983 | fi |
|
|
6984 | |
|
|
6985 | fi |
6997 | fi |
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; } |
6988 | if test x$pt_cv_path_wtmp != x; then |
7000 | if test x$pt_cv_path_wtmp != x; then |
6989 | |
7001 | |
6990 | cat >>confdefs.h <<_ACEOF |
7002 | cat >>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 | |
|
|
7006 | elif 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;} |
6994 | fi |
7009 | fi |
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; } |
6998 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
7013 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
6999 | $as_echo_n "(cached) " >&6 |
7014 | $as_echo_n "(cached) " >&6 |
7000 | else |
7015 | else |
|
|
7016 | |
7001 | if test "$cross_compiling" = yes; then : |
7017 | if 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 |
7004 | else |
|
|
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 | |
|
|
7015 | int 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 |
|
|
7036 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7037 | pt_cv_path_wtmpx=`cat conftestval` |
|
|
7038 | else |
|
|
7039 | pt_cv_path_wtmpx= |
7020 | pt_cv_path_wtmpx=$file |
|
|
7021 | break |
|
|
7022 | fi |
|
|
7023 | done |
7040 | fi |
7024 | fi |
7041 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7042 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7043 | fi |
|
|
7044 | |
|
|
7045 | fi |
7025 | fi |
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; } |
7048 | if test x$pt_cv_path_wtmpx != x; then |
7028 | if test x$pt_cv_path_wtmpx != x; then |
7049 | |
7029 | |
7050 | cat >>confdefs.h <<_ACEOF |
7030 | cat >>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 | |
|
|
7034 | elif 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;} |
7054 | fi |
7037 | fi |
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; } |
7058 | if test "${pt_cv_path_lastlog+set}" = set; then : |
7041 | if test "${pt_cv_path_lastlog+set}" = set; then : |
7059 | $as_echo_n "(cached) " >&6 |
7042 | $as_echo_n "(cached) " >&6 |
7060 | else |
7043 | else |
|
|
7044 | |
7061 | if test "$cross_compiling" = yes; then : |
7045 | if 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 |
7064 | else |
|
|
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 | |
|
|
7079 | int 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 |
|
|
7100 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7101 | pt_cv_path_lastlog=`cat conftestval` |
|
|
7102 | else |
|
|
7103 | pt_cv_path_lastlog= |
7048 | pt_cv_path_lastlog=$file |
|
|
7049 | break |
|
|
7050 | fi |
|
|
7051 | done |
7104 | fi |
7052 | fi |
7105 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7106 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7107 | fi |
|
|
7108 | |
|
|
7109 | fi |
7053 | fi |
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; } |
7112 | if test x$pt_cv_path_lastlog != x; then |
7056 | if test x$pt_cv_path_lastlog != x; then |
7113 | |
7057 | |
7114 | cat >>confdefs.h <<_ACEOF |
7058 | cat >>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 | |
|
|
7062 | elif 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;} |
7118 | fi |
7065 | fi |
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; } |
7122 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
7069 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
7123 | $as_echo_n "(cached) " >&6 |
7070 | $as_echo_n "(cached) " >&6 |
7124 | else |
7071 | else |
|
|
7072 | |
7125 | if test "$cross_compiling" = yes; then : |
7073 | if 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 |
7128 | else |
|
|
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 | |
|
|
7139 | int 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 |
|
|
7160 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7161 | pt_cv_path_lastlogx=`cat conftestval` |
|
|
7162 | else |
|
|
7163 | pt_cv_path_lastlogx= |
7076 | pt_cv_path_lastlogx=$file |
|
|
7077 | break |
|
|
7078 | fi |
|
|
7079 | done |
7164 | fi |
7080 | fi |
7165 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7166 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7167 | fi |
|
|
7168 | |
|
|
7169 | fi |
7081 | fi |
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; } |
7172 | if test x$pt_cv_path_lastlogx != x; then |
7084 | if test x$pt_cv_path_lastlogx != x; then |
7173 | |
7085 | |
7174 | cat >>confdefs.h <<_ACEOF |
7086 | cat >>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 | |
|
|
7090 | elif 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;} |
7178 | fi |
7093 | fi |
7179 | |
7094 | |
7180 | |
7095 | |
7181 | |
7096 | |
7182 | |
7097 | |
… | |
… | |
7466 | |
7381 | |
7467 | fi |
7382 | fi |
7468 | done |
7383 | done |
7469 | |
7384 | |
7470 | |
7385 | |
7471 | have_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; } |
|
|
7475 | if 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 |
|
|
7482 | else |
|
|
7483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7484 | $as_echo "no" >&6; } |
|
|
7485 | fi |
|
|
7486 | |
|
|
7487 | case $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 | ;; |
|
|
7512 | esac |
|
|
7513 | |
|
|
7514 | if 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 |
7388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7518 | /* end confdefs.h. */ |
7389 | /* end confdefs.h. */ |
7519 | #include <stdlib.h> |
7390 | #include <stdlib.h> |
7520 | int |
7391 | int |
7521 | main () |
7392 | main () |
7522 | { |
7393 | { |
… | |
… | |
7528 | if ac_fn_cxx_try_link "$LINENO"; then : |
7399 | if 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; } |
7535 | else |
7406 | else |
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; } |
7538 | fi |
7409 | fi |
7539 | rm -f core conftest.err conftest.$ac_objext \ |
7410 | rm -f core conftest.err conftest.$ac_objext \ |
7540 | conftest$ac_exeext conftest.$ac_ext |
7411 | conftest$ac_exeext conftest.$ac_ext |
7541 | fi |
|
|
7542 | |
7412 | |
7543 | if test -z "$unix98_pty"; then |
7413 | if 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; } |
7546 | if test "${ac_cv_search_openpty+set}" = set; then : |
7416 | if test "${ac_cv_search_openpty+set}" = set; then : |