… | |
… | |
1375 | --enable-256-color enable 256-color support |
1375 | --enable-256-color enable 256-color support |
1376 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1376 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1377 | --enable-combining enable composition of base and combining characters |
1377 | --enable-combining enable composition of base and combining characters |
1378 | --enable-xft enable xft support on systems that have it |
1378 | --enable-xft enable xft support on systems that have it |
1379 | --enable-font-styles enable bold and italic support |
1379 | --enable-font-styles enable bold and italic support |
1380 | --enable-afterimage enable integration with libAfterImage for background images |
1380 | --enable-afterimage enable integration with libAfterImage for background images (deprecated) |
1381 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1381 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1382 | --enable-startup-notification enable freedesktop startup notification support |
1382 | --enable-startup-notification enable freedesktop startup notification support |
1383 | --enable-transparency enable transparent backgrounds |
1383 | --enable-transparency enable transparent backgrounds |
1384 | --enable-fading enable colors fading when off focus |
1384 | --enable-fading enable colors fading when off focus |
1385 | --enable-rxvt-scroll enable rxvt style scrollbar |
1385 | --enable-rxvt-scroll enable rxvt style scrollbar |
… | |
… | |
2746 | IFS=$ac_save_IFS |
2746 | IFS=$ac_save_IFS |
2747 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2747 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2748 | |
2748 | |
2749 | |
2749 | |
2750 | |
2750 | |
2751 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2751 | VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2752 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2752 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2753 | |
2753 | |
2754 | echo "" |
2754 | echo "" |
2755 | echo "configuring for rxvt $VERSION" |
2755 | echo "configuring for rxvt $VERSION" |
2756 | echo "" |
2756 | echo "" |
2757 | |
2757 | |
… | |
… | |
4420 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4420 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4421 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4421 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4422 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4422 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4423 | |
4423 | |
4424 | |
4424 | |
|
|
4425 | LINKER="$CXX" |
4425 | if test x$GCC = xyes && test x$GXX = xyes; then |
4426 | if test x$GCC = xyes && test x$GXX = xyes; then |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4427 | $as_echo_n "checking for working libsupc++... " >&6; } |
4428 | $as_echo_n "checking for working libsupc++... " >&6; } |
4428 | save_CXX="$CXX" |
4429 | save_CXX="$CXX" |
4429 | save_LIBS="$LIBS" |
4430 | save_LIBS="$LIBS" |
4430 | CXX="$CC" |
4431 | CXX="$CC" |
4431 | LIBS="$LIBS -lsupc++" |
4432 | LIBS="$LIBS -lsupc++" |
4432 | LINKER="$CC" |
|
|
4433 | |
4433 | |
4434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4435 | /* end confdefs.h. */ |
4435 | /* end confdefs.h. */ |
4436 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4436 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4437 | int |
4437 | int |
… | |
… | |
4443 | } |
4443 | } |
4444 | _ACEOF |
4444 | _ACEOF |
4445 | if ac_fn_cxx_try_link "$LINENO"; then : |
4445 | if ac_fn_cxx_try_link "$LINENO"; then : |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4447 | $as_echo "ok" >&6; } |
4447 | $as_echo "ok" >&6; } |
|
|
4448 | LINKER="$CC" |
4448 | else |
4449 | else |
4449 | |
4450 | |
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
4451 | $as_echo "no, making everything bigger and slower" >&6; } |
4452 | $as_echo "no, making everything bigger and slower" >&6; } |
4452 | LIBS="$save_LIBS" |
4453 | LIBS="$save_LIBS" |
4453 | LINKER="$save_CXX" |
|
|
4454 | |
4454 | |
4455 | |
4455 | |
4456 | fi |
4456 | fi |
4457 | rm -f core conftest.err conftest.$ac_objext \ |
4457 | rm -f core conftest.err conftest.$ac_objext \ |
4458 | conftest$ac_exeext conftest.$ac_ext |
4458 | conftest$ac_exeext conftest.$ac_ext |
… | |
… | |
4484 | else |
4484 | else |
4485 | CXXFLAGS="-O" |
4485 | CXXFLAGS="-O" |
4486 | fi |
4486 | fi |
4487 | CFLAGS="$CXXFLAGS" |
4487 | CFLAGS="$CXXFLAGS" |
4488 | fi |
4488 | fi |
4489 | |
|
|
4490 | case $host in |
|
|
4491 | *-*-solaris* ) |
|
|
4492 | |
|
|
4493 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
4494 | |
|
|
4495 | ;; |
|
|
4496 | esac |
|
|
4497 | |
4489 | |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
4499 | $as_echo_n "checking for library containing setlocale... " >&6; } |
4491 | $as_echo_n "checking for library containing setlocale... " >&6; } |
4500 | if ${ac_cv_search_setlocale+:} false; then : |
4492 | if ${ac_cv_search_setlocale+:} false; then : |
4501 | $as_echo_n "(cached) " >&6 |
4493 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4678 | support_scroll_next=yes |
4670 | support_scroll_next=yes |
4679 | support_scroll_xterm=yes |
4671 | support_scroll_xterm=yes |
4680 | support_xim=yes |
4672 | support_xim=yes |
4681 | support_pixbuf=yes |
4673 | support_pixbuf=yes |
4682 | support_startup_notification=yes |
4674 | support_startup_notification=yes |
4683 | support_afterimage=yes |
|
|
4684 | support_xft=yes |
4675 | support_xft=yes |
4685 | support_unicode3=no |
4676 | support_unicode3=no |
4686 | support_combining=yes |
4677 | support_combining=yes |
4687 | support_8bitctrls=no |
4678 | support_8bitctrls=no |
4688 | support_iso14755=yes |
4679 | support_iso14755=yes |
… | |
… | |
4711 | support_utmp=no |
4702 | support_utmp=no |
4712 | support_wtmp=no |
4703 | support_wtmp=no |
4713 | support_xim=no |
4704 | support_xim=no |
4714 | support_pixbuf=no |
4705 | support_pixbuf=no |
4715 | support_startup_notification=no |
4706 | support_startup_notification=no |
4716 | support_afterimage=no |
|
|
4717 | support_xft=no |
4707 | support_xft=no |
4718 | support_unicode3=no |
4708 | support_unicode3=no |
4719 | support_combining=no |
4709 | support_combining=no |
4720 | support_8bitctrls=no |
4710 | support_8bitctrls=no |
4721 | support_iso14755=no |
4711 | support_iso14755=no |
… | |
… | |
4740 | support_utmp=yes |
4730 | support_utmp=yes |
4741 | support_wtmp=yes |
4731 | support_wtmp=yes |
4742 | support_xim=yes |
4732 | support_xim=yes |
4743 | support_pixbuf=yes |
4733 | support_pixbuf=yes |
4744 | support_startup_notification=yes |
4734 | support_startup_notification=yes |
4745 | support_afterimage=yes |
|
|
4746 | support_xft=yes |
4735 | support_xft=yes |
4747 | support_unicode3=yes |
4736 | support_unicode3=yes |
4748 | support_combining=yes |
4737 | support_combining=yes |
4749 | #support_8bitctrls=yes |
4738 | #support_8bitctrls=yes |
4750 | support_iso14755=yes |
4739 | support_iso14755=yes |
… | |
… | |
4754 | fi |
4743 | fi |
4755 | |
4744 | |
4756 | fi |
4745 | fi |
4757 | |
4746 | |
4758 | |
4747 | |
4759 | ASSERTIONS=no |
4748 | support_assertions=no |
4760 | # Check whether --enable-assert was given. |
4749 | # Check whether --enable-assert was given. |
4761 | if test "${enable_assert+set}" = set; then : |
4750 | if test "${enable_assert+set}" = set; then : |
4762 | enableval=$enable_assert; if test x$enableval = xyes; then |
4751 | enableval=$enable_assert; if test x$enableval = xyes; then |
4763 | ASSERTIONS=yes |
4752 | support_assertions=yes |
4764 | fi |
4753 | fi |
4765 | fi |
4754 | fi |
4766 | |
4755 | |
4767 | if test x$ASSERTIONS = xno; then |
4756 | if test x$support_assertions = xno; then |
4768 | |
4757 | |
4769 | $as_echo "#define NDEBUG 1" >>confdefs.h |
4758 | $as_echo "#define NDEBUG 1" >>confdefs.h |
4770 | |
4759 | |
4771 | fi |
4760 | fi |
4772 | |
4761 | |
4773 | WARNINGS=no |
4762 | support_warnings=no |
4774 | # Check whether --enable-warnings was given. |
4763 | # Check whether --enable-warnings was given. |
4775 | if test "${enable_warnings+set}" = set; then : |
4764 | if test "${enable_warnings+set}" = set; then : |
4776 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4765 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4777 | WARNINGS=yes |
4766 | support_warnings=yes |
4778 | fi |
4767 | fi |
4779 | fi |
4768 | fi |
4780 | |
4769 | |
4781 | if test x$GXX = xyes; then |
4770 | if test x$GXX = xyes; then |
4782 | if test $WARNINGS = yes; then |
4771 | if test $support_warnings = yes; then |
4783 | save_CXXFLAGS="$CXXFLAGS" |
4772 | save_CXXFLAGS="$CXXFLAGS" |
4784 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
4773 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" |
4785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4786 | /* end confdefs.h. */ |
4775 | /* end confdefs.h. */ |
4787 | |
4776 | |
4788 | int |
4777 | int |
4789 | main () |
4778 | main () |
… | |
… | |
6432 | |
6421 | |
6433 | |
6422 | |
6434 | |
6423 | |
6435 | AFTERIMAGE_CFLAGS= |
6424 | AFTERIMAGE_CFLAGS= |
6436 | AFTERIMAGE_LIBS= |
6425 | AFTERIMAGE_LIBS= |
6437 | AFTERIMAGE_VERSION= |
|
|
6438 | |
6426 | |
6439 | if test x$support_afterimage = xyes; then |
6427 | if test x$support_afterimage = xyes; then |
6440 | support_afterimage=no |
6428 | support_afterimage=no |
6441 | |
6429 | |
6442 | if test "x$afterimage_config" = "x" ; then |
6430 | if test "x$afterimage_config" = "x" ; then |
… | |
… | |
6483 | |
6471 | |
6484 | fi |
6472 | fi |
6485 | if test "x$afterimage_config" != "xno" ; then |
6473 | if test "x$afterimage_config" != "xno" ; then |
6486 | { $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 |
6487 | $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } |
6475 | $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } |
6488 | xAFTERIMAGE_VERSION=`$afterimage_config --version` |
6476 | AFTERIMAGE_VERSION=`$afterimage_config --version` |
6489 | if test -n "$xAFTERIMAGE_VERSION" ; then |
6477 | if test -n "$AFTERIMAGE_VERSION" ; then |
6490 | xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
6478 | AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
6491 | xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
6479 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
6492 | if test "x$xAFTERIMAGE_LIBS" != "x"; then |
6480 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
6493 | libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
6481 | libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .` |
6494 | libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
6482 | libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .` |
6495 | 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 |
6496 | support_afterimage=yes |
6484 | support_afterimage=yes |
6497 | AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
|
|
6498 | AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
|
|
6499 | AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
|
|
6500 | fi |
6485 | fi |
6501 | fi |
6486 | fi |
6502 | fi |
6487 | fi |
6503 | if test "x$support_afterimage" = "xyes"; then |
6488 | if test "x$support_afterimage" = "xyes"; then |
6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 |
6489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 |
… | |
… | |
6511 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
6496 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
6512 | |
6497 | |
6513 | else |
6498 | else |
6514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6515 | $as_echo "no" >&6; } |
6500 | $as_echo "no" >&6; } |
|
|
6501 | AFTERIMAGE_CFLAGS= |
|
|
6502 | AFTERIMAGE_LIBS= |
6516 | fi |
6503 | fi |
6517 | fi |
6504 | fi |
6518 | fi |
6505 | fi |
6519 | |
6506 | |
6520 | |
6507 | |
… | |
… | |
6765 | |
6752 | |
6766 | fi |
6753 | fi |
6767 | |
6754 | |
6768 | done |
6755 | done |
6769 | |
6756 | |
|
|
6757 | |
|
|
6758 | case $host in |
|
|
6759 | *-*-solaris*) |
|
|
6760 | |
|
|
6761 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
6762 | |
|
|
6763 | ;; |
|
|
6764 | esac |
6770 | |
6765 | |
6771 | |
6766 | |
6772 | for ac_header in utmp.h |
6767 | for ac_header in utmp.h |
6773 | do : |
6768 | do : |
6774 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
6769 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
… | |
… | |
6909 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
6904 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
6910 | |
6905 | |
6911 | fi |
6906 | fi |
6912 | |
6907 | |
6913 | |
6908 | |
6914 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" " |
|
|
6915 | #include <sys/types.h> |
|
|
6916 | #include <utmpx.h> |
|
|
6917 | |
|
|
6918 | " |
|
|
6919 | if test "x$ac_cv_member_struct_utmpx_ut_session" = xyes; then : |
|
|
6920 | |
|
|
6921 | $as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h |
|
|
6922 | |
|
|
6923 | fi |
|
|
6924 | |
|
|
6925 | |
|
|
6926 | fi |
6909 | fi |
6927 | |
6910 | |
6928 | done |
6911 | done |
6929 | |
6912 | |
6930 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
6913 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
… | |
… | |
6962 | |
6945 | |
6963 | fi |
6946 | fi |
6964 | |
6947 | |
6965 | |
6948 | |
6966 | |
6949 | |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5 |
6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
6968 | $as_echo_n "checking where utmp is located... " >&6; } |
6951 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
6969 | if ${pt_cv_path_utmp+:} false; then : |
6952 | if ${pt_cv_path_utmp+:} false; then : |
6970 | $as_echo_n "(cached) " >&6 |
6953 | $as_echo_n "(cached) " >&6 |
6971 | else |
6954 | else |
|
|
6955 | |
6972 | if test "$cross_compiling" = yes; then : |
6956 | if test "$cross_compiling" != yes; then |
6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
6974 | $as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
6975 | else |
|
|
6976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6977 | /* end confdefs.h. */ |
|
|
6978 | #include <stdio.h> |
|
|
6979 | #include <stdlib.h> |
|
|
6980 | #include <sys/stat.h> |
|
|
6981 | |
|
|
6982 | #include <sys/types.h> |
|
|
6983 | #include <utmp.h> |
|
|
6984 | |
|
|
6985 | int main() |
|
|
6986 | { |
|
|
6987 | const char **path, *list[] = { "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
6957 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
6988 | FILE *f = fopen("conftestval", "w"); |
6958 | if test -f "$file"; then |
6989 | if (!f) return 1; |
|
|
6990 | #ifdef UTMP_FILE |
|
|
6991 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
6992 | #elif defined(_PATH_UTMP) |
|
|
6993 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
6994 | #else |
|
|
6995 | for (path = list; *path; path++) { |
|
|
6996 | struct stat st; |
|
|
6997 | if (stat(*path, &st) == 0) { |
|
|
6998 | fprintf(f, "%s\n", *path); |
|
|
6999 | break; |
|
|
7000 | } |
|
|
7001 | } |
|
|
7002 | #endif |
|
|
7003 | return fclose(f) != 0; |
|
|
7004 | } |
|
|
7005 | _ACEOF |
|
|
7006 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7007 | pt_cv_path_utmp=`cat conftestval` |
|
|
7008 | else |
|
|
7009 | pt_cv_path_utmp= |
6959 | pt_cv_path_utmp=$file |
|
|
6960 | break |
|
|
6961 | fi |
|
|
6962 | done |
7010 | fi |
6963 | fi |
7011 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7012 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7013 | fi |
|
|
7014 | |
|
|
7015 | fi |
6964 | fi |
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
7017 | $as_echo "$pt_cv_path_utmp" >&6; } |
6966 | $as_echo "$pt_cv_path_utmp" >&6; } |
7018 | if test x$pt_cv_path_utmp != x; then |
6967 | if test x$pt_cv_path_utmp != x; then |
7019 | |
6968 | |
7020 | cat >>confdefs.h <<_ACEOF |
6969 | cat >>confdefs.h <<_ACEOF |
7021 | #define UTMP_FILE "$pt_cv_path_utmp" |
6970 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
7022 | _ACEOF |
6971 | _ACEOF |
7023 | |
6972 | |
|
|
6973 | elif test "$cross_compiling" = yes; then |
|
|
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6975 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
7024 | fi |
6976 | fi |
7025 | |
6977 | |
7026 | |
6978 | |
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5 |
6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
7028 | $as_echo_n "checking where wtmp is located... " >&6; } |
6980 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
7029 | if ${pt_cv_path_wtmp+:} false; then : |
6981 | if ${pt_cv_path_wtmp+:} false; then : |
7030 | $as_echo_n "(cached) " >&6 |
6982 | $as_echo_n "(cached) " >&6 |
7031 | else |
6983 | else |
|
|
6984 | |
7032 | if test "$cross_compiling" = yes; then : |
6985 | if test "$cross_compiling" != yes; then |
7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
7034 | $as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
7035 | else |
|
|
7036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7037 | /* end confdefs.h. */ |
|
|
7038 | #include <stdio.h> |
|
|
7039 | #include <stdlib.h> |
|
|
7040 | #include <sys/stat.h> |
|
|
7041 | |
|
|
7042 | #include <sys/types.h> |
|
|
7043 | #ifdef HAVE_UTMP_H |
|
|
7044 | #include <utmp.h> |
|
|
7045 | #endif |
|
|
7046 | |
|
|
7047 | int main() |
|
|
7048 | { |
|
|
7049 | const char **path, *list[] = { "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
6986 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
7050 | FILE *f = fopen("conftestval", "w"); |
6987 | if test -f "$file"; then |
7051 | if (!f) return 1; |
|
|
7052 | #ifdef WTMP_FILE |
|
|
7053 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
7054 | #elif defined(_PATH_WTMP) |
|
|
7055 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
7056 | #else |
|
|
7057 | for (path = list; *path; path++) { |
|
|
7058 | struct stat st; |
|
|
7059 | if (stat(*path, &st) == 0) { |
|
|
7060 | fprintf(f, "%s\n", *path); |
|
|
7061 | break; |
|
|
7062 | } |
|
|
7063 | } |
|
|
7064 | #endif |
|
|
7065 | return fclose(f) != 0; |
|
|
7066 | } |
|
|
7067 | _ACEOF |
|
|
7068 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7069 | pt_cv_path_wtmp=`cat conftestval` |
|
|
7070 | else |
|
|
7071 | pt_cv_path_wtmp= |
6988 | pt_cv_path_wtmp=$file |
|
|
6989 | break |
|
|
6990 | fi |
|
|
6991 | done |
7072 | fi |
6992 | fi |
7073 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7074 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7075 | fi |
|
|
7076 | |
|
|
7077 | fi |
6993 | fi |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
7079 | $as_echo "$pt_cv_path_wtmp" >&6; } |
6995 | $as_echo "$pt_cv_path_wtmp" >&6; } |
7080 | if test x$pt_cv_path_wtmp != x; then |
6996 | if test x$pt_cv_path_wtmp != x; then |
7081 | |
6997 | |
7082 | cat >>confdefs.h <<_ACEOF |
6998 | cat >>confdefs.h <<_ACEOF |
7083 | #define WTMP_FILE "$pt_cv_path_wtmp" |
6999 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
7084 | _ACEOF |
7000 | _ACEOF |
7085 | |
7001 | |
|
|
7002 | elif test "$cross_compiling" = yes; then |
|
|
7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
7004 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
7086 | fi |
7005 | fi |
7087 | |
7006 | |
7088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5 |
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
7089 | $as_echo_n "checking where wtmpx is located... " >&6; } |
7008 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
7090 | if ${pt_cv_path_wtmpx+:} false; then : |
7009 | if ${pt_cv_path_wtmpx+:} false; then : |
7091 | $as_echo_n "(cached) " >&6 |
7010 | $as_echo_n "(cached) " >&6 |
7092 | else |
7011 | else |
|
|
7012 | |
7093 | if test "$cross_compiling" = yes; then : |
7013 | if test "$cross_compiling" != yes; then |
7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
7014 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
7095 | $as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
7015 | if test -f "$file"; then |
7096 | else |
|
|
7097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7098 | /* end confdefs.h. */ |
|
|
7099 | #include <stdio.h> |
|
|
7100 | #include <stdlib.h> |
|
|
7101 | #include <sys/stat.h> |
|
|
7102 | |
|
|
7103 | #ifdef HAVE_UTMPX_H |
|
|
7104 | #include <utmpx.h> |
|
|
7105 | #endif |
|
|
7106 | |
|
|
7107 | int main() |
|
|
7108 | { |
|
|
7109 | const char **path, *list[] = { "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
7110 | FILE *f = fopen("conftestval", "w"); |
|
|
7111 | if (!f) return 1; |
|
|
7112 | #ifdef WTMPX_FILE |
|
|
7113 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
7114 | #elif defined(_PATH_WTMPX) |
|
|
7115 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
7116 | #else |
|
|
7117 | for (path = list; *path; path++) { |
|
|
7118 | struct stat st; |
|
|
7119 | if (stat(*path, &st) == 0) { |
|
|
7120 | fprintf(f, "%s\n", *path); |
|
|
7121 | break; |
|
|
7122 | } |
|
|
7123 | } |
|
|
7124 | #endif |
|
|
7125 | return fclose(f) != 0; |
|
|
7126 | } |
|
|
7127 | _ACEOF |
|
|
7128 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7129 | pt_cv_path_wtmpx=`cat conftestval` |
|
|
7130 | else |
|
|
7131 | pt_cv_path_wtmpx= |
7016 | pt_cv_path_wtmpx=$file |
|
|
7017 | break |
|
|
7018 | fi |
|
|
7019 | done |
7132 | fi |
7020 | fi |
7133 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7134 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7135 | fi |
|
|
7136 | |
|
|
7137 | fi |
7021 | fi |
7138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
7022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
7139 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
7023 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
7140 | if test x$pt_cv_path_wtmpx != x; then |
7024 | if test x$pt_cv_path_wtmpx != x; then |
7141 | |
7025 | |
7142 | cat >>confdefs.h <<_ACEOF |
7026 | cat >>confdefs.h <<_ACEOF |
7143 | #define WTMPX_FILE "$pt_cv_path_wtmpx" |
7027 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
7144 | _ACEOF |
7028 | _ACEOF |
7145 | |
7029 | |
|
|
7030 | elif test "$cross_compiling" = yes; then |
|
|
7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
7032 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
7146 | fi |
7033 | fi |
7147 | |
7034 | |
7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5 |
7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
7149 | $as_echo_n "checking where lastlog is located... " >&6; } |
7036 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
7150 | if ${pt_cv_path_lastlog+:} false; then : |
7037 | if ${pt_cv_path_lastlog+:} false; then : |
7151 | $as_echo_n "(cached) " >&6 |
7038 | $as_echo_n "(cached) " >&6 |
7152 | else |
7039 | else |
|
|
7040 | |
7153 | if test "$cross_compiling" = yes; then : |
7041 | if test "$cross_compiling" != yes; then |
7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
7042 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
7155 | $as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
7043 | if test -f "$file"; then |
7156 | else |
|
|
7157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7158 | /* end confdefs.h. */ |
|
|
7159 | #include <stdio.h> |
|
|
7160 | #include <stdlib.h> |
|
|
7161 | #include <sys/stat.h> |
|
|
7162 | |
|
|
7163 | #include <sys/types.h> |
|
|
7164 | #ifdef HAVE_UTMP_H |
|
|
7165 | #include <utmp.h> |
|
|
7166 | #endif |
|
|
7167 | #ifdef HAVE_LASTLOG_H |
|
|
7168 | #include <lastlog.h> |
|
|
7169 | #endif |
|
|
7170 | |
|
|
7171 | int main() |
|
|
7172 | { |
|
|
7173 | const char **path, *list[] = { "/var/log/lastlog", NULL }; |
|
|
7174 | FILE *f = fopen("conftestval", "w"); |
|
|
7175 | if (!f) return 1; |
|
|
7176 | #ifdef LASTLOG_FILE |
|
|
7177 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
7178 | #elif defined(_PATH_LASTLOG) |
|
|
7179 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
7180 | #else |
|
|
7181 | for (path = list; *path; path++) { |
|
|
7182 | struct stat st; |
|
|
7183 | if (stat(*path, &st) == 0) { |
|
|
7184 | fprintf(f, "%s\n", *path); |
|
|
7185 | break; |
|
|
7186 | } |
|
|
7187 | } |
|
|
7188 | #endif |
|
|
7189 | return fclose(f) != 0; |
|
|
7190 | } |
|
|
7191 | _ACEOF |
|
|
7192 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7193 | pt_cv_path_lastlog=`cat conftestval` |
|
|
7194 | else |
|
|
7195 | pt_cv_path_lastlog= |
7044 | pt_cv_path_lastlog=$file |
|
|
7045 | break |
|
|
7046 | fi |
|
|
7047 | done |
7196 | fi |
7048 | fi |
7197 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7198 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7199 | fi |
|
|
7200 | |
|
|
7201 | fi |
7049 | fi |
7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
7203 | $as_echo "$pt_cv_path_lastlog" >&6; } |
7051 | $as_echo "$pt_cv_path_lastlog" >&6; } |
7204 | if test x$pt_cv_path_lastlog != x; then |
7052 | if test x$pt_cv_path_lastlog != x; then |
7205 | |
7053 | |
7206 | cat >>confdefs.h <<_ACEOF |
7054 | cat >>confdefs.h <<_ACEOF |
7207 | #define LASTLOG_FILE "$pt_cv_path_lastlog" |
7055 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
7208 | _ACEOF |
7056 | _ACEOF |
7209 | |
7057 | |
|
|
7058 | elif test "$cross_compiling" = yes; then |
|
|
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
7060 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
7210 | fi |
7061 | fi |
7211 | |
7062 | |
7212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5 |
7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
7213 | $as_echo_n "checking where lastlogx is located... " >&6; } |
7064 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
7214 | if ${pt_cv_path_lastlogx+:} false; then : |
7065 | if ${pt_cv_path_lastlogx+:} false; then : |
7215 | $as_echo_n "(cached) " >&6 |
7066 | $as_echo_n "(cached) " >&6 |
7216 | else |
7067 | else |
|
|
7068 | |
7217 | if test "$cross_compiling" = yes; then : |
7069 | if test "$cross_compiling" != yes; then |
7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
7070 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
7219 | $as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
7071 | if test -f "$file"; then |
7220 | else |
|
|
7221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7222 | /* end confdefs.h. */ |
|
|
7223 | #include <stdio.h> |
|
|
7224 | #include <stdlib.h> |
|
|
7225 | #include <sys/stat.h> |
|
|
7226 | |
|
|
7227 | #ifdef HAVE_UTMPX_H |
|
|
7228 | #include <utmpx.h> |
|
|
7229 | #endif |
|
|
7230 | |
|
|
7231 | int main() |
|
|
7232 | { |
|
|
7233 | const char **path, *list[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
7234 | FILE *f = fopen("conftestval", "w"); |
|
|
7235 | if (!f) return 1; |
|
|
7236 | #ifdef LASTLOGX_FILE |
|
|
7237 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
7238 | #elif defined(_PATH_LASTLOGX) |
|
|
7239 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
7240 | #else |
|
|
7241 | for (path = list; *path; path++) { |
|
|
7242 | struct stat st; |
|
|
7243 | if (stat(*path, &st) == 0) { |
|
|
7244 | fprintf(f, "%s\n", *path); |
|
|
7245 | break; |
|
|
7246 | } |
|
|
7247 | } |
|
|
7248 | #endif |
|
|
7249 | return fclose(f) != 0; |
|
|
7250 | } |
|
|
7251 | _ACEOF |
|
|
7252 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7253 | pt_cv_path_lastlogx=`cat conftestval` |
|
|
7254 | else |
|
|
7255 | pt_cv_path_lastlogx= |
7072 | pt_cv_path_lastlogx=$file |
|
|
7073 | break |
|
|
7074 | fi |
|
|
7075 | done |
7256 | fi |
7076 | fi |
7257 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7258 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7259 | fi |
|
|
7260 | |
|
|
7261 | fi |
7077 | fi |
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
7263 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
7079 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
7264 | if test x$pt_cv_path_lastlogx != x; then |
7080 | if test x$pt_cv_path_lastlogx != x; then |
7265 | |
7081 | |
7266 | cat >>confdefs.h <<_ACEOF |
7082 | cat >>confdefs.h <<_ACEOF |
7267 | #define LASTLOGX_FILE "$pt_cv_path_lastlogx" |
7083 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
7268 | _ACEOF |
7084 | _ACEOF |
7269 | |
7085 | |
|
|
7086 | elif test "$cross_compiling" = yes; then |
|
|
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
7088 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
7270 | fi |
7089 | fi |
7271 | |
7090 | |
7272 | |
7091 | |
7273 | |
7092 | |
7274 | |
7093 | |
… | |
… | |
7449 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7268 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
7450 | |
7269 | |
7451 | fi |
7270 | fi |
7452 | |
7271 | |
7453 | |
7272 | |
|
|
7273 | case $host in |
|
|
7274 | *-*-solaris*) |
|
|
7275 | |
|
|
7276 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7277 | |
|
|
7278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7279 | $as_echo_n "checking for library containing sendmsg... " >&6; } |
|
|
7280 | if ${ac_cv_search_sendmsg+:} false; then : |
|
|
7281 | $as_echo_n "(cached) " >&6 |
|
|
7282 | else |
|
|
7283 | ac_func_search_save_LIBS=$LIBS |
|
|
7284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7285 | /* end confdefs.h. */ |
|
|
7286 | |
|
|
7287 | /* Override any GCC internal prototype to avoid an error. |
|
|
7288 | Use char because int might match the return type of a GCC |
|
|
7289 | builtin and then its argument prototype would still apply. */ |
|
|
7290 | #ifdef __cplusplus |
|
|
7291 | extern "C" |
|
|
7292 | #endif |
|
|
7293 | char sendmsg (); |
|
|
7294 | int |
|
|
7295 | main () |
|
|
7296 | { |
|
|
7297 | return sendmsg (); |
|
|
7298 | ; |
|
|
7299 | return 0; |
|
|
7300 | } |
|
|
7301 | _ACEOF |
|
|
7302 | for ac_lib in '' socket; do |
|
|
7303 | if test -z "$ac_lib"; then |
|
|
7304 | ac_res="none required" |
|
|
7305 | else |
|
|
7306 | ac_res=-l$ac_lib |
|
|
7307 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7308 | fi |
|
|
7309 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7310 | ac_cv_search_sendmsg=$ac_res |
|
|
7311 | fi |
|
|
7312 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7313 | conftest$ac_exeext |
|
|
7314 | if ${ac_cv_search_sendmsg+:} false; then : |
|
|
7315 | break |
|
|
7316 | fi |
|
|
7317 | done |
|
|
7318 | if ${ac_cv_search_sendmsg+:} false; then : |
|
|
7319 | |
|
|
7320 | else |
|
|
7321 | ac_cv_search_sendmsg=no |
|
|
7322 | fi |
|
|
7323 | rm conftest.$ac_ext |
|
|
7324 | LIBS=$ac_func_search_save_LIBS |
|
|
7325 | fi |
|
|
7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
7327 | $as_echo "$ac_cv_search_sendmsg" >&6; } |
|
|
7328 | ac_res=$ac_cv_search_sendmsg |
|
|
7329 | if test "$ac_res" != no; then : |
|
|
7330 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7331 | |
|
|
7332 | fi |
|
|
7333 | |
|
|
7334 | ;; |
|
|
7335 | esac |
|
|
7336 | |
7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
7455 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
7338 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
7456 | if ${pt_cv_can_pass_fds+:} false; then : |
7339 | if ${pt_cv_can_pass_fds+:} false; then : |
7457 | $as_echo_n "(cached) " >&6 |
7340 | $as_echo_n "(cached) " >&6 |
7458 | else |
7341 | else |
… | |
… | |
7558 | |
7441 | |
7559 | fi |
7442 | fi |
7560 | done |
7443 | done |
7561 | |
7444 | |
7562 | |
7445 | |
7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
7564 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
7447 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
7565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7566 | /* end confdefs.h. */ |
7449 | /* end confdefs.h. */ |
7567 | #include <stdlib.h> |
7450 | #include <stdlib.h> |
7568 | int |
7451 | int |
7569 | main () |
7452 | main () |
7570 | { |
7453 | { |
… | |
… | |
7576 | if ac_fn_cxx_try_link "$LINENO"; then : |
7459 | if ac_fn_cxx_try_link "$LINENO"; then : |
7577 | unix98_pty=yes |
7460 | unix98_pty=yes |
7578 | |
7461 | |
7579 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
7462 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
7580 | |
7463 | |
7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
7582 | $as_echo "yes" >&6; } |
7465 | $as_echo "yes" >&6; } |
7583 | else |
7466 | else |
7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7585 | $as_echo "no" >&6; } |
7468 | $as_echo "no" >&6; } |
7586 | fi |
7469 | fi |