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

Comparing rxvt-unicode/configure (file contents):
Revision 1.147 by mikachu, Tue Nov 15 01:13:49 2011 UTC vs.
Revision 1.151 by sf-exg, Thu Jan 19 11:09:56 2012 UTC

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
2746IFS=$ac_save_IFS 2746IFS=$ac_save_IFS
2747case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2747case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2748 2748
2749 2749
2750 2750
2751VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2751VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2752DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2752DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2753 2753
2754echo "" 2754echo ""
2755echo "configuring for rxvt $VERSION" 2755echo "configuring for rxvt $VERSION"
2756echo "" 2756echo ""
2757 2757
4420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4420ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4423 4423
4424 4424
4425LINKER="$CXX"
4425if test x$GCC = xyes && test x$GXX = xyes; then 4426if 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
4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435/* end confdefs.h. */ 4435/* end confdefs.h. */
4436struct test { }; void f() try { throw new test; } catch (...) { throw; } 4436struct test { }; void f() try { throw new test; } catch (...) { throw; }
4437int 4437int
4443} 4443}
4444_ACEOF 4444_ACEOF
4445if ac_fn_cxx_try_link "$LINENO"; then : 4445if 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"
4448else 4449else
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
4456fi 4456fi
4457rm -f core conftest.err conftest.$ac_objext \ 4457rm -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"
4488fi 4488fi
4489
4490case $host in
4491 *-*-solaris* )
4492
4493$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4494
4495 ;;
4496esac
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; }
4500if ${ac_cv_search_setlocale+:} false; then : 4492if ${ac_cv_search_setlocale+:} false; then :
4501 $as_echo_n "(cached) " >&6 4493 $as_echo_n "(cached) " >&6
4678support_scroll_next=yes 4670support_scroll_next=yes
4679support_scroll_xterm=yes 4671support_scroll_xterm=yes
4680support_xim=yes 4672support_xim=yes
4681support_pixbuf=yes 4673support_pixbuf=yes
4682support_startup_notification=yes 4674support_startup_notification=yes
4683support_afterimage=yes
4684support_xft=yes 4675support_xft=yes
4685support_unicode3=no 4676support_unicode3=no
4686support_combining=yes 4677support_combining=yes
4687support_8bitctrls=no 4678support_8bitctrls=no
4688support_iso14755=yes 4679support_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
4756fi 4745fi
4757 4746
4758 4747
4759ASSERTIONS=no 4748support_assertions=no
4760# Check whether --enable-assert was given. 4749# Check whether --enable-assert was given.
4761if test "${enable_assert+set}" = set; then : 4750if 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
4765fi 4754fi
4766 4755
4767if test x$ASSERTIONS = xno; then 4756if 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
4771fi 4760fi
4772 4761
4773WARNINGS=no 4762support_warnings=no
4774# Check whether --enable-warnings was given. 4763# Check whether --enable-warnings was given.
4775if test "${enable_warnings+set}" = set; then : 4764if 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
4779fi 4768fi
4780 4769
4781if test x$GXX = xyes; then 4770if 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
4788int 4777int
4789main () 4778main ()
6432 6421
6433 6422
6434 6423
6435AFTERIMAGE_CFLAGS= 6424AFTERIMAGE_CFLAGS=
6436AFTERIMAGE_LIBS= 6425AFTERIMAGE_LIBS=
6437AFTERIMAGE_VERSION=
6438 6426
6439if test x$support_afterimage = xyes; then 6427if 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
6518fi 6505fi
6519 6506
6520 6507
6765 6752
6766fi 6753fi
6767 6754
6768done 6755done
6769 6756
6757
6758case $host in
6759 *-*-solaris*)
6760
6761$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6762
6763 ;;
6764esac
6770 6765
6771 6766
6772for ac_header in utmp.h 6767for ac_header in utmp.h
6773do : 6768do :
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
6911fi 6906fi
6912 6907
6913 6908
6914ac_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"
6919if test "x$ac_cv_member_struct_utmpx_ut_session" = xyes; then :
6920
6921$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
6922
6923fi
6924
6925
6926fi 6909fi
6927 6910
6928done 6911done
6929 6912
6930ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " 6913ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
6962 6945
6963fi 6946fi
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; }
6969if ${pt_cv_path_utmp+:} false; then : 6952if ${pt_cv_path_utmp+:} false; then :
6970 $as_echo_n "(cached) " >&6 6953 $as_echo_n "(cached) " >&6
6971else 6954else
6955
6972 if test "$cross_compiling" = yes; then : 6956if 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;}
6975else
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
6985int 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
7006if ac_fn_cxx_try_run "$LINENO"; then :
7007 pt_cv_path_utmp=`cat conftestval`
7008else
7009 pt_cv_path_utmp= 6959 pt_cv_path_utmp=$file
6960 break
6961 fi
6962 done
7010fi 6963fi
7011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7012 conftest.$ac_objext conftest.beam conftest.$ac_ext
7013fi
7014
7015fi 6964fi
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; }
7018if test x$pt_cv_path_utmp != x; then 6967if test x$pt_cv_path_utmp != x; then
7019 6968
7020cat >>confdefs.h <<_ACEOF 6969cat >>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
6973elif 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;}
7024fi 6976fi
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; }
7029if ${pt_cv_path_wtmp+:} false; then : 6981if ${pt_cv_path_wtmp+:} false; then :
7030 $as_echo_n "(cached) " >&6 6982 $as_echo_n "(cached) " >&6
7031else 6983else
6984
7032 if test "$cross_compiling" = yes; then : 6985if 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;}
7035else
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
7047int 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
7068if ac_fn_cxx_try_run "$LINENO"; then :
7069 pt_cv_path_wtmp=`cat conftestval`
7070else
7071 pt_cv_path_wtmp= 6988 pt_cv_path_wtmp=$file
6989 break
6990 fi
6991 done
7072fi 6992fi
7073rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7074 conftest.$ac_objext conftest.beam conftest.$ac_ext
7075fi
7076
7077fi 6993fi
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; }
7080if test x$pt_cv_path_wtmp != x; then 6996if test x$pt_cv_path_wtmp != x; then
7081 6997
7082cat >>confdefs.h <<_ACEOF 6998cat >>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
7002elif 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;}
7086fi 7005fi
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; }
7090if ${pt_cv_path_wtmpx+:} false; then : 7009if ${pt_cv_path_wtmpx+:} false; then :
7091 $as_echo_n "(cached) " >&6 7010 $as_echo_n "(cached) " >&6
7092else 7011else
7012
7093 if test "$cross_compiling" = yes; then : 7013if 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
7096else
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
7107int 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
7128if ac_fn_cxx_try_run "$LINENO"; then :
7129 pt_cv_path_wtmpx=`cat conftestval`
7130else
7131 pt_cv_path_wtmpx= 7016 pt_cv_path_wtmpx=$file
7017 break
7018 fi
7019 done
7132fi 7020fi
7133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7134 conftest.$ac_objext conftest.beam conftest.$ac_ext
7135fi
7136
7137fi 7021fi
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; }
7140if test x$pt_cv_path_wtmpx != x; then 7024if test x$pt_cv_path_wtmpx != x; then
7141 7025
7142cat >>confdefs.h <<_ACEOF 7026cat >>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
7030elif 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;}
7146fi 7033fi
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; }
7150if ${pt_cv_path_lastlog+:} false; then : 7037if ${pt_cv_path_lastlog+:} false; then :
7151 $as_echo_n "(cached) " >&6 7038 $as_echo_n "(cached) " >&6
7152else 7039else
7040
7153 if test "$cross_compiling" = yes; then : 7041if 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
7156else
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
7171int 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
7192if ac_fn_cxx_try_run "$LINENO"; then :
7193 pt_cv_path_lastlog=`cat conftestval`
7194else
7195 pt_cv_path_lastlog= 7044 pt_cv_path_lastlog=$file
7045 break
7046 fi
7047 done
7196fi 7048fi
7197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7198 conftest.$ac_objext conftest.beam conftest.$ac_ext
7199fi
7200
7201fi 7049fi
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; }
7204if test x$pt_cv_path_lastlog != x; then 7052if test x$pt_cv_path_lastlog != x; then
7205 7053
7206cat >>confdefs.h <<_ACEOF 7054cat >>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
7058elif 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;}
7210fi 7061fi
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; }
7214if ${pt_cv_path_lastlogx+:} false; then : 7065if ${pt_cv_path_lastlogx+:} false; then :
7215 $as_echo_n "(cached) " >&6 7066 $as_echo_n "(cached) " >&6
7216else 7067else
7068
7217 if test "$cross_compiling" = yes; then : 7069if 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
7220else
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
7231int 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
7252if ac_fn_cxx_try_run "$LINENO"; then :
7253 pt_cv_path_lastlogx=`cat conftestval`
7254else
7255 pt_cv_path_lastlogx= 7072 pt_cv_path_lastlogx=$file
7073 break
7074 fi
7075 done
7256fi 7076fi
7257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7258 conftest.$ac_objext conftest.beam conftest.$ac_ext
7259fi
7260
7261fi 7077fi
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; }
7264if test x$pt_cv_path_lastlogx != x; then 7080if test x$pt_cv_path_lastlogx != x; then
7265 7081
7266cat >>confdefs.h <<_ACEOF 7082cat >>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
7086elif 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;}
7270fi 7089fi
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
7451fi 7270fi
7452 7271
7453 7272
7273case $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; }
7280if ${ac_cv_search_sendmsg+:} false; then :
7281 $as_echo_n "(cached) " >&6
7282else
7283 ac_func_search_save_LIBS=$LIBS
7284cat 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
7291extern "C"
7292#endif
7293char sendmsg ();
7294int
7295main ()
7296{
7297return sendmsg ();
7298 ;
7299 return 0;
7300}
7301_ACEOF
7302for 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
7311fi
7312rm -f core conftest.err conftest.$ac_objext \
7313 conftest$ac_exeext
7314 if ${ac_cv_search_sendmsg+:} false; then :
7315 break
7316fi
7317done
7318if ${ac_cv_search_sendmsg+:} false; then :
7319
7320else
7321 ac_cv_search_sendmsg=no
7322fi
7323rm conftest.$ac_ext
7324LIBS=$ac_func_search_save_LIBS
7325fi
7326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7327$as_echo "$ac_cv_search_sendmsg" >&6; }
7328ac_res=$ac_cv_search_sendmsg
7329if test "$ac_res" != no; then :
7330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7331
7332fi
7333
7334 ;;
7335esac
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; }
7456if ${pt_cv_can_pass_fds+:} false; then : 7339if ${pt_cv_can_pass_fds+:} false; then :
7457 $as_echo_n "(cached) " >&6 7340 $as_echo_n "(cached) " >&6
7458else 7341else
7558 7441
7559fi 7442fi
7560done 7443done
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 7448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h. */ 7449/* end confdefs.h. */
7567#include <stdlib.h> 7450#include <stdlib.h>
7568int 7451int
7569main () 7452main ()
7570{ 7453{
7576if ac_fn_cxx_try_link "$LINENO"; then : 7459if 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; }
7583else 7466else
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; }
7586fi 7469fi

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines