Mercurial > hg > xemacs-beta
comparison configure @ 1070:989ddde6705d
[xemacs-hg @ 2002-10-24 16:19:39 by youngs]
2002-10-25 Stephen J. Turnbull <stephen@xemacs.org>
* configure.in (Check for POSIX functions): New section head.
getaddrinfo is detected on HP-UX 11.XX, but appears to be
non-functional. Disable it. Based on work by Darryl Okahata.
author | youngs |
---|---|
date | Thu, 24 Oct 2002 16:21:17 +0000 |
parents | 89cca5f594bd |
children | 184461bc8de4 |
comparison
equal
deleted
inserted
replaced
1069:13daf40fb997 | 1070:989ddde6705d |
---|---|
4522 | 4522 |
4523 cat > conftest.$ac_ext <<EOF | 4523 cat > conftest.$ac_ext <<EOF |
4524 #line 4525 "configure" | 4524 #line 4525 "configure" |
4525 #include "confdefs.h" | 4525 #include "confdefs.h" |
4526 #include <stdio.h> | 4526 #include <stdio.h> |
4527 int main() | 4527 main() |
4528 { | 4528 { |
4529 FILE *f=fopen("conftestval", "w"); | 4529 FILE *f=fopen("conftestval", "w"); |
4530 if (!f) return(1); | 4530 if (!f) exit(1); |
4531 fprintf(f, "%d\n", sizeof(short)); | 4531 fprintf(f, "%d\n", sizeof(short)); |
4532 return(0); | 4532 exit(0); |
4533 } | 4533 } |
4534 EOF | 4534 EOF |
4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
4536 then | 4536 then |
4537 ac_cv_sizeof_short=`cat conftestval` | 4537 ac_cv_sizeof_short=`cat conftestval` |
4564 | 4564 |
4565 cat > conftest.$ac_ext <<EOF | 4565 cat > conftest.$ac_ext <<EOF |
4566 #line 4567 "configure" | 4566 #line 4567 "configure" |
4567 #include "confdefs.h" | 4567 #include "confdefs.h" |
4568 #include <stdio.h> | 4568 #include <stdio.h> |
4569 int main() | 4569 main() |
4570 { | 4570 { |
4571 FILE *f=fopen("conftestval", "w"); | 4571 FILE *f=fopen("conftestval", "w"); |
4572 if (!f) return(1); | 4572 if (!f) exit(1); |
4573 fprintf(f, "%d\n", sizeof(int)); | 4573 fprintf(f, "%d\n", sizeof(int)); |
4574 return(0); | 4574 exit(0); |
4575 } | 4575 } |
4576 EOF | 4576 EOF |
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
4578 then | 4578 then |
4579 ac_cv_sizeof_int=`cat conftestval` | 4579 ac_cv_sizeof_int=`cat conftestval` |
4600 | 4600 |
4601 cat > conftest.$ac_ext <<EOF | 4601 cat > conftest.$ac_ext <<EOF |
4602 #line 4603 "configure" | 4602 #line 4603 "configure" |
4603 #include "confdefs.h" | 4603 #include "confdefs.h" |
4604 #include <stdio.h> | 4604 #include <stdio.h> |
4605 int main() | 4605 main() |
4606 { | 4606 { |
4607 FILE *f=fopen("conftestval", "w"); | 4607 FILE *f=fopen("conftestval", "w"); |
4608 if (!f) return(1); | 4608 if (!f) exit(1); |
4609 fprintf(f, "%d\n", sizeof(long)); | 4609 fprintf(f, "%d\n", sizeof(long)); |
4610 return(0); | 4610 exit(0); |
4611 } | 4611 } |
4612 EOF | 4612 EOF |
4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
4614 then | 4614 then |
4615 ac_cv_sizeof_long=`cat conftestval` | 4615 ac_cv_sizeof_long=`cat conftestval` |
4636 | 4636 |
4637 cat > conftest.$ac_ext <<EOF | 4637 cat > conftest.$ac_ext <<EOF |
4638 #line 4639 "configure" | 4638 #line 4639 "configure" |
4639 #include "confdefs.h" | 4639 #include "confdefs.h" |
4640 #include <stdio.h> | 4640 #include <stdio.h> |
4641 int main() | 4641 main() |
4642 { | 4642 { |
4643 FILE *f=fopen("conftestval", "w"); | 4643 FILE *f=fopen("conftestval", "w"); |
4644 if (!f) return(1); | 4644 if (!f) exit(1); |
4645 fprintf(f, "%d\n", sizeof(long long)); | 4645 fprintf(f, "%d\n", sizeof(long long)); |
4646 return(0); | 4646 exit(0); |
4647 } | 4647 } |
4648 EOF | 4648 EOF |
4649 if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 4649 if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
4650 then | 4650 then |
4651 ac_cv_sizeof_long_long=`cat conftestval` | 4651 ac_cv_sizeof_long_long=`cat conftestval` |
4672 | 4672 |
4673 cat > conftest.$ac_ext <<EOF | 4673 cat > conftest.$ac_ext <<EOF |
4674 #line 4675 "configure" | 4674 #line 4675 "configure" |
4675 #include "confdefs.h" | 4675 #include "confdefs.h" |
4676 #include <stdio.h> | 4676 #include <stdio.h> |
4677 int main() | 4677 main() |
4678 { | 4678 { |
4679 FILE *f=fopen("conftestval", "w"); | 4679 FILE *f=fopen("conftestval", "w"); |
4680 if (!f) return(1); | 4680 if (!f) exit(1); |
4681 fprintf(f, "%d\n", sizeof(void *)); | 4681 fprintf(f, "%d\n", sizeof(void *)); |
4682 return(0); | 4682 exit(0); |
4683 } | 4683 } |
4684 EOF | 4684 EOF |
4685 if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 4685 if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
4686 then | 4686 then |
4687 ac_cv_sizeof_void_p=`cat conftestval` | 4687 ac_cv_sizeof_void_p=`cat conftestval` |
11705 fi | 11705 fi |
11706 fi | 11706 fi |
11707 | 11707 |
11708 fi | 11708 fi |
11709 | 11709 |
11710 | |
11710 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask | 11711 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask |
11711 do | 11712 do |
11712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 11713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11713 echo "configure:11714: checking for $ac_func" >&5 | 11714 echo "configure:11715: checking for $ac_func" >&5 |
11714 | 11715 |
11715 cat > conftest.$ac_ext <<EOF | 11716 cat > conftest.$ac_ext <<EOF |
11716 #line 11717 "configure" | 11717 #line 11718 "configure" |
11717 #include "confdefs.h" | 11718 #include "confdefs.h" |
11718 /* System header to define __stub macros and hopefully few prototypes, | 11719 /* System header to define __stub macros and hopefully few prototypes, |
11719 which can conflict with char $ac_func(); below. */ | 11720 which can conflict with char $ac_func(); below. */ |
11720 #include <assert.h> | 11721 #include <assert.h> |
11721 /* Override any gcc2 internal prototype to avoid an error. */ | 11722 /* Override any gcc2 internal prototype to avoid an error. */ |
11734 $ac_func(); | 11735 $ac_func(); |
11735 #endif | 11736 #endif |
11736 | 11737 |
11737 ; return 0; } | 11738 ; return 0; } |
11738 EOF | 11739 EOF |
11739 if { (eval echo configure:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11740 if { (eval echo configure:11741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11740 rm -rf conftest* | 11741 rm -rf conftest* |
11741 eval "ac_cv_func_$ac_func=yes" | 11742 eval "ac_cv_func_$ac_func=yes" |
11742 else | 11743 else |
11743 echo "configure: failed program was:" >&5 | 11744 echo "configure: failed program was:" >&5 |
11744 cat conftest.$ac_ext >&5 | 11745 cat conftest.$ac_ext >&5 |
11762 echo "$ac_t""no" 1>&6 | 11763 echo "$ac_t""no" 1>&6 |
11763 fi | 11764 fi |
11764 done | 11765 done |
11765 | 11766 |
11766 | 11767 |
11768 if test "$ac_cv_func_getaddrinfo" != "no" ; then | |
11769 case "$opsys" in | |
11770 hpux11 ) | |
11771 echo "configure: warning: Use of getaddrinfo is disabled for HP-UX 11.XX." 1>&2 | |
11772 ac_cv_func_getaddrinfo=no | |
11773 ;; | |
11774 esac | |
11775 fi | |
11776 | |
11767 | 11777 |
11768 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp | 11778 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp |
11769 do | 11779 do |
11770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 11780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11771 echo "configure:11772: checking for $ac_func" >&5 | 11781 echo "configure:11782: checking for $ac_func" >&5 |
11772 | 11782 |
11773 cat > conftest.$ac_ext <<EOF | 11783 cat > conftest.$ac_ext <<EOF |
11774 #line 11775 "configure" | 11784 #line 11785 "configure" |
11775 #include "confdefs.h" | 11785 #include "confdefs.h" |
11776 /* System header to define __stub macros and hopefully few prototypes, | 11786 /* System header to define __stub macros and hopefully few prototypes, |
11777 which can conflict with char $ac_func(); below. */ | 11787 which can conflict with char $ac_func(); below. */ |
11778 #include <assert.h> | 11788 #include <assert.h> |
11779 /* Override any gcc2 internal prototype to avoid an error. */ | 11789 /* Override any gcc2 internal prototype to avoid an error. */ |
11792 $ac_func(); | 11802 $ac_func(); |
11793 #endif | 11803 #endif |
11794 | 11804 |
11795 ; return 0; } | 11805 ; return 0; } |
11796 EOF | 11806 EOF |
11797 if { (eval echo configure:11798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11807 if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11798 rm -rf conftest* | 11808 rm -rf conftest* |
11799 eval "ac_cv_func_$ac_func=yes" | 11809 eval "ac_cv_func_$ac_func=yes" |
11800 else | 11810 else |
11801 echo "configure: failed program was:" >&5 | 11811 echo "configure: failed program was:" >&5 |
11802 cat conftest.$ac_ext >&5 | 11812 cat conftest.$ac_ext >&5 |
11821 fi | 11831 fi |
11822 done | 11832 done |
11823 | 11833 |
11824 | 11834 |
11825 echo $ac_n "checking for openpty""... $ac_c" 1>&6 | 11835 echo $ac_n "checking for openpty""... $ac_c" 1>&6 |
11826 echo "configure:11827: checking for openpty" >&5 | 11836 echo "configure:11837: checking for openpty" >&5 |
11827 | 11837 |
11828 cat > conftest.$ac_ext <<EOF | 11838 cat > conftest.$ac_ext <<EOF |
11829 #line 11830 "configure" | 11839 #line 11840 "configure" |
11830 #include "confdefs.h" | 11840 #include "confdefs.h" |
11831 /* System header to define __stub macros and hopefully few prototypes, | 11841 /* System header to define __stub macros and hopefully few prototypes, |
11832 which can conflict with char openpty(); below. */ | 11842 which can conflict with char openpty(); below. */ |
11833 #include <assert.h> | 11843 #include <assert.h> |
11834 /* Override any gcc2 internal prototype to avoid an error. */ | 11844 /* Override any gcc2 internal prototype to avoid an error. */ |
11847 openpty(); | 11857 openpty(); |
11848 #endif | 11858 #endif |
11849 | 11859 |
11850 ; return 0; } | 11860 ; return 0; } |
11851 EOF | 11861 EOF |
11852 if { (eval echo configure:11853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11862 if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11853 rm -rf conftest* | 11863 rm -rf conftest* |
11854 eval "ac_cv_func_openpty=yes" | 11864 eval "ac_cv_func_openpty=yes" |
11855 else | 11865 else |
11856 echo "configure: failed program was:" >&5 | 11866 echo "configure: failed program was:" >&5 |
11857 cat conftest.$ac_ext >&5 | 11867 cat conftest.$ac_ext >&5 |
11866 else | 11876 else |
11867 echo "$ac_t""no" 1>&6 | 11877 echo "$ac_t""no" 1>&6 |
11868 | 11878 |
11869 | 11879 |
11870 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 | 11880 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 |
11871 echo "configure:11872: checking for openpty in -lutil" >&5 | 11881 echo "configure:11882: checking for openpty in -lutil" >&5 |
11872 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` | 11882 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` |
11873 | 11883 |
11874 xe_check_libs=" -lutil " | 11884 xe_check_libs=" -lutil " |
11875 cat > conftest.$ac_ext <<EOF | 11885 cat > conftest.$ac_ext <<EOF |
11876 #line 11877 "configure" | 11886 #line 11887 "configure" |
11877 #include "confdefs.h" | 11887 #include "confdefs.h" |
11878 /* Override any gcc2 internal prototype to avoid an error. */ | 11888 /* Override any gcc2 internal prototype to avoid an error. */ |
11879 /* We use char because int might match the return type of a gcc2 | 11889 /* We use char because int might match the return type of a gcc2 |
11880 builtin and then its argument prototype would still apply. */ | 11890 builtin and then its argument prototype would still apply. */ |
11881 char openpty(); | 11891 char openpty(); |
11882 | 11892 |
11883 int main() { | 11893 int main() { |
11884 openpty() | 11894 openpty() |
11885 ; return 0; } | 11895 ; return 0; } |
11886 EOF | 11896 EOF |
11887 if { (eval echo configure:11888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11888 rm -rf conftest* | 11898 rm -rf conftest* |
11889 eval "ac_cv_lib_$ac_lib_var=yes" | 11899 eval "ac_cv_lib_$ac_lib_var=yes" |
11890 else | 11900 else |
11891 echo "configure: failed program was:" >&5 | 11901 echo "configure: failed program was:" >&5 |
11892 cat conftest.$ac_ext >&5 | 11902 cat conftest.$ac_ext >&5 |
11917 | 11927 |
11918 for ac_hdr in libutil.h util.h | 11928 for ac_hdr in libutil.h util.h |
11919 do | 11929 do |
11920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
11922 echo "configure:11923: checking for $ac_hdr" >&5 | 11932 echo "configure:11933: checking for $ac_hdr" >&5 |
11923 | 11933 |
11924 cat > conftest.$ac_ext <<EOF | 11934 cat > conftest.$ac_ext <<EOF |
11925 #line 11926 "configure" | 11935 #line 11936 "configure" |
11926 #include "confdefs.h" | 11936 #include "confdefs.h" |
11927 #include <$ac_hdr> | 11937 #include <$ac_hdr> |
11928 EOF | 11938 EOF |
11929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11930 { (eval echo configure:11931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11940 { (eval echo configure:11941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11932 if test -z "$ac_err"; then | 11942 if test -z "$ac_err"; then |
11933 rm -rf conftest* | 11943 rm -rf conftest* |
11934 eval "ac_cv_header_$ac_safe=yes" | 11944 eval "ac_cv_header_$ac_safe=yes" |
11935 else | 11945 else |
11962 case "$opsys" in | 11972 case "$opsys" in |
11963 hpux*) for ac_hdr in sys/ptyio.h | 11973 hpux*) for ac_hdr in sys/ptyio.h |
11964 do | 11974 do |
11965 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11966 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
11967 echo "configure:11968: checking for $ac_hdr" >&5 | 11977 echo "configure:11978: checking for $ac_hdr" >&5 |
11968 | 11978 |
11969 cat > conftest.$ac_ext <<EOF | 11979 cat > conftest.$ac_ext <<EOF |
11970 #line 11971 "configure" | 11980 #line 11981 "configure" |
11971 #include "confdefs.h" | 11981 #include "confdefs.h" |
11972 #include <$ac_hdr> | 11982 #include <$ac_hdr> |
11973 EOF | 11983 EOF |
11974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11975 { (eval echo configure:11976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11985 { (eval echo configure:11986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11977 if test -z "$ac_err"; then | 11987 if test -z "$ac_err"; then |
11978 rm -rf conftest* | 11988 rm -rf conftest* |
11979 eval "ac_cv_header_$ac_safe=yes" | 11989 eval "ac_cv_header_$ac_safe=yes" |
11980 else | 11990 else |
12003 ;; | 12013 ;; |
12004 *) for ac_hdr in pty.h | 12014 *) for ac_hdr in pty.h |
12005 do | 12015 do |
12006 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 12016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12007 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 12017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
12008 echo "configure:12009: checking for $ac_hdr" >&5 | 12018 echo "configure:12019: checking for $ac_hdr" >&5 |
12009 | 12019 |
12010 cat > conftest.$ac_ext <<EOF | 12020 cat > conftest.$ac_ext <<EOF |
12011 #line 12012 "configure" | 12021 #line 12022 "configure" |
12012 #include "confdefs.h" | 12022 #include "confdefs.h" |
12013 #include <$ac_hdr> | 12023 #include <$ac_hdr> |
12014 EOF | 12024 EOF |
12015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12016 { (eval echo configure:12017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12026 { (eval echo configure:12027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12018 if test -z "$ac_err"; then | 12028 if test -z "$ac_err"; then |
12019 rm -rf conftest* | 12029 rm -rf conftest* |
12020 eval "ac_cv_header_$ac_safe=yes" | 12030 eval "ac_cv_header_$ac_safe=yes" |
12021 else | 12031 else |
12044 | 12054 |
12045 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h | 12055 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h |
12046 do | 12056 do |
12047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 12057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 12058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
12049 echo "configure:12050: checking for $ac_hdr" >&5 | 12059 echo "configure:12060: checking for $ac_hdr" >&5 |
12050 | 12060 |
12051 cat > conftest.$ac_ext <<EOF | 12061 cat > conftest.$ac_ext <<EOF |
12052 #line 12053 "configure" | 12062 #line 12063 "configure" |
12053 #include "confdefs.h" | 12063 #include "confdefs.h" |
12054 #include <$ac_hdr> | 12064 #include <$ac_hdr> |
12055 EOF | 12065 EOF |
12056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12057 { (eval echo configure:12058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12067 { (eval echo configure:12068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12059 if test -z "$ac_err"; then | 12069 if test -z "$ac_err"; then |
12060 rm -rf conftest* | 12070 rm -rf conftest* |
12061 eval "ac_cv_header_$ac_safe=yes" | 12071 eval "ac_cv_header_$ac_safe=yes" |
12062 else | 12072 else |
12088 | 12098 |
12089 for ac_hdr in stropts.h | 12099 for ac_hdr in stropts.h |
12090 do | 12100 do |
12091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 12101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 12102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
12093 echo "configure:12094: checking for $ac_hdr" >&5 | 12103 echo "configure:12104: checking for $ac_hdr" >&5 |
12094 | 12104 |
12095 cat > conftest.$ac_ext <<EOF | 12105 cat > conftest.$ac_ext <<EOF |
12096 #line 12097 "configure" | 12106 #line 12107 "configure" |
12097 #include "confdefs.h" | 12107 #include "confdefs.h" |
12098 #include <$ac_hdr> | 12108 #include <$ac_hdr> |
12099 EOF | 12109 EOF |
12100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12101 { (eval echo configure:12102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12111 { (eval echo configure:12112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12103 if test -z "$ac_err"; then | 12113 if test -z "$ac_err"; then |
12104 rm -rf conftest* | 12114 rm -rf conftest* |
12105 eval "ac_cv_header_$ac_safe=yes" | 12115 eval "ac_cv_header_$ac_safe=yes" |
12106 else | 12116 else |
12129 | 12139 |
12130 if test "$ac_cv_header_stropts_h" = "yes"; then | 12140 if test "$ac_cv_header_stropts_h" = "yes"; then |
12131 for ac_func in isastream | 12141 for ac_func in isastream |
12132 do | 12142 do |
12133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 12143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12134 echo "configure:12135: checking for $ac_func" >&5 | 12144 echo "configure:12145: checking for $ac_func" >&5 |
12135 | 12145 |
12136 cat > conftest.$ac_ext <<EOF | 12146 cat > conftest.$ac_ext <<EOF |
12137 #line 12138 "configure" | 12147 #line 12148 "configure" |
12138 #include "confdefs.h" | 12148 #include "confdefs.h" |
12139 /* System header to define __stub macros and hopefully few prototypes, | 12149 /* System header to define __stub macros and hopefully few prototypes, |
12140 which can conflict with char $ac_func(); below. */ | 12150 which can conflict with char $ac_func(); below. */ |
12141 #include <assert.h> | 12151 #include <assert.h> |
12142 /* Override any gcc2 internal prototype to avoid an error. */ | 12152 /* Override any gcc2 internal prototype to avoid an error. */ |
12155 $ac_func(); | 12165 $ac_func(); |
12156 #endif | 12166 #endif |
12157 | 12167 |
12158 ; return 0; } | 12168 ; return 0; } |
12159 EOF | 12169 EOF |
12160 if { (eval echo configure:12161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12170 if { (eval echo configure:12171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12161 rm -rf conftest* | 12171 rm -rf conftest* |
12162 eval "ac_cv_func_$ac_func=yes" | 12172 eval "ac_cv_func_$ac_func=yes" |
12163 else | 12173 else |
12164 echo "configure: failed program was:" >&5 | 12174 echo "configure: failed program was:" >&5 |
12165 cat conftest.$ac_ext >&5 | 12175 cat conftest.$ac_ext >&5 |
12186 | 12196 |
12187 for ac_hdr in strtio.h | 12197 for ac_hdr in strtio.h |
12188 do | 12198 do |
12189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 12199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 12200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
12191 echo "configure:12192: checking for $ac_hdr" >&5 | 12201 echo "configure:12202: checking for $ac_hdr" >&5 |
12192 | 12202 |
12193 cat > conftest.$ac_ext <<EOF | 12203 cat > conftest.$ac_ext <<EOF |
12194 #line 12195 "configure" | 12204 #line 12205 "configure" |
12195 #include "confdefs.h" | 12205 #include "confdefs.h" |
12196 #include <$ac_hdr> | 12206 #include <$ac_hdr> |
12197 EOF | 12207 EOF |
12198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12199 { (eval echo configure:12200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12209 { (eval echo configure:12210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12201 if test -z "$ac_err"; then | 12211 if test -z "$ac_err"; then |
12202 rm -rf conftest* | 12212 rm -rf conftest* |
12203 eval "ac_cv_header_$ac_safe=yes" | 12213 eval "ac_cv_header_$ac_safe=yes" |
12204 else | 12214 else |
12227 fi | 12237 fi |
12228 | 12238 |
12229 for ac_func in getloadavg | 12239 for ac_func in getloadavg |
12230 do | 12240 do |
12231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 12241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12232 echo "configure:12233: checking for $ac_func" >&5 | 12242 echo "configure:12243: checking for $ac_func" >&5 |
12233 | 12243 |
12234 cat > conftest.$ac_ext <<EOF | 12244 cat > conftest.$ac_ext <<EOF |
12235 #line 12236 "configure" | 12245 #line 12246 "configure" |
12236 #include "confdefs.h" | 12246 #include "confdefs.h" |
12237 /* System header to define __stub macros and hopefully few prototypes, | 12247 /* System header to define __stub macros and hopefully few prototypes, |
12238 which can conflict with char $ac_func(); below. */ | 12248 which can conflict with char $ac_func(); below. */ |
12239 #include <assert.h> | 12249 #include <assert.h> |
12240 /* Override any gcc2 internal prototype to avoid an error. */ | 12250 /* Override any gcc2 internal prototype to avoid an error. */ |
12253 $ac_func(); | 12263 $ac_func(); |
12254 #endif | 12264 #endif |
12255 | 12265 |
12256 ; return 0; } | 12266 ; return 0; } |
12257 EOF | 12267 EOF |
12258 if { (eval echo configure:12259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12268 if { (eval echo configure:12269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12259 rm -rf conftest* | 12269 rm -rf conftest* |
12260 eval "ac_cv_func_$ac_func=yes" | 12270 eval "ac_cv_func_$ac_func=yes" |
12261 else | 12271 else |
12262 echo "configure: failed program was:" >&5 | 12272 echo "configure: failed program was:" >&5 |
12263 cat conftest.$ac_ext >&5 | 12273 cat conftest.$ac_ext >&5 |
12286 if test "$ac_cv_func_getloadavg" = "yes"; then | 12296 if test "$ac_cv_func_getloadavg" = "yes"; then |
12287 for ac_hdr in sys/loadavg.h | 12297 for ac_hdr in sys/loadavg.h |
12288 do | 12298 do |
12289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 12299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 12300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
12291 echo "configure:12292: checking for $ac_hdr" >&5 | 12301 echo "configure:12302: checking for $ac_hdr" >&5 |
12292 | 12302 |
12293 cat > conftest.$ac_ext <<EOF | 12303 cat > conftest.$ac_ext <<EOF |
12294 #line 12295 "configure" | 12304 #line 12305 "configure" |
12295 #include "confdefs.h" | 12305 #include "confdefs.h" |
12296 #include <$ac_hdr> | 12306 #include <$ac_hdr> |
12297 EOF | 12307 EOF |
12298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12299 { (eval echo configure:12300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12309 { (eval echo configure:12310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12301 if test -z "$ac_err"; then | 12311 if test -z "$ac_err"; then |
12302 rm -rf conftest* | 12312 rm -rf conftest* |
12303 eval "ac_cv_header_$ac_safe=yes" | 12313 eval "ac_cv_header_$ac_safe=yes" |
12304 else | 12314 else |
12330 echo " xemacs will be linked with \"getloadavg.o\"" | 12340 echo " xemacs will be linked with \"getloadavg.o\"" |
12331 fi | 12341 fi |
12332 | 12342 |
12333 | 12343 |
12334 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 | 12344 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 |
12335 echo "configure:12336: checking for kstat_open in -lkstat" >&5 | 12345 echo "configure:12346: checking for kstat_open in -lkstat" >&5 |
12336 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` | 12346 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` |
12337 | 12347 |
12338 xe_check_libs=" -lkstat " | 12348 xe_check_libs=" -lkstat " |
12339 cat > conftest.$ac_ext <<EOF | 12349 cat > conftest.$ac_ext <<EOF |
12340 #line 12341 "configure" | 12350 #line 12351 "configure" |
12341 #include "confdefs.h" | 12351 #include "confdefs.h" |
12342 /* Override any gcc2 internal prototype to avoid an error. */ | 12352 /* Override any gcc2 internal prototype to avoid an error. */ |
12343 /* We use char because int might match the return type of a gcc2 | 12353 /* We use char because int might match the return type of a gcc2 |
12344 builtin and then its argument prototype would still apply. */ | 12354 builtin and then its argument prototype would still apply. */ |
12345 char kstat_open(); | 12355 char kstat_open(); |
12346 | 12356 |
12347 int main() { | 12357 int main() { |
12348 kstat_open() | 12358 kstat_open() |
12349 ; return 0; } | 12359 ; return 0; } |
12350 EOF | 12360 EOF |
12351 if { (eval echo configure:12352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12361 if { (eval echo configure:12362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12352 rm -rf conftest* | 12362 rm -rf conftest* |
12353 eval "ac_cv_lib_$ac_lib_var=yes" | 12363 eval "ac_cv_lib_$ac_lib_var=yes" |
12354 else | 12364 else |
12355 echo "configure: failed program was:" >&5 | 12365 echo "configure: failed program was:" >&5 |
12356 cat conftest.$ac_ext >&5 | 12366 cat conftest.$ac_ext >&5 |
12381 | 12391 |
12382 for ac_hdr in kstat.h | 12392 for ac_hdr in kstat.h |
12383 do | 12393 do |
12384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 12394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 12395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
12386 echo "configure:12387: checking for $ac_hdr" >&5 | 12396 echo "configure:12397: checking for $ac_hdr" >&5 |
12387 | 12397 |
12388 cat > conftest.$ac_ext <<EOF | 12398 cat > conftest.$ac_ext <<EOF |
12389 #line 12390 "configure" | 12399 #line 12400 "configure" |
12390 #include "confdefs.h" | 12400 #include "confdefs.h" |
12391 #include <$ac_hdr> | 12401 #include <$ac_hdr> |
12392 EOF | 12402 EOF |
12393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12394 { (eval echo configure:12395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12404 { (eval echo configure:12405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12396 if test -z "$ac_err"; then | 12406 if test -z "$ac_err"; then |
12397 rm -rf conftest* | 12407 rm -rf conftest* |
12398 eval "ac_cv_header_$ac_safe=yes" | 12408 eval "ac_cv_header_$ac_safe=yes" |
12399 else | 12409 else |
12421 done | 12431 done |
12422 | 12432 |
12423 | 12433 |
12424 | 12434 |
12425 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 | 12435 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 |
12426 echo "configure:12427: checking for kvm_read in -lkvm" >&5 | 12436 echo "configure:12437: checking for kvm_read in -lkvm" >&5 |
12427 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` | 12437 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` |
12428 | 12438 |
12429 xe_check_libs=" -lkvm " | 12439 xe_check_libs=" -lkvm " |
12430 cat > conftest.$ac_ext <<EOF | 12440 cat > conftest.$ac_ext <<EOF |
12431 #line 12432 "configure" | 12441 #line 12442 "configure" |
12432 #include "confdefs.h" | 12442 #include "confdefs.h" |
12433 /* Override any gcc2 internal prototype to avoid an error. */ | 12443 /* Override any gcc2 internal prototype to avoid an error. */ |
12434 /* We use char because int might match the return type of a gcc2 | 12444 /* We use char because int might match the return type of a gcc2 |
12435 builtin and then its argument prototype would still apply. */ | 12445 builtin and then its argument prototype would still apply. */ |
12436 char kvm_read(); | 12446 char kvm_read(); |
12437 | 12447 |
12438 int main() { | 12448 int main() { |
12439 kvm_read() | 12449 kvm_read() |
12440 ; return 0; } | 12450 ; return 0; } |
12441 EOF | 12451 EOF |
12442 if { (eval echo configure:12443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12452 if { (eval echo configure:12453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12443 rm -rf conftest* | 12453 rm -rf conftest* |
12444 eval "ac_cv_lib_$ac_lib_var=yes" | 12454 eval "ac_cv_lib_$ac_lib_var=yes" |
12445 else | 12455 else |
12446 echo "configure: failed program was:" >&5 | 12456 echo "configure: failed program was:" >&5 |
12447 cat conftest.$ac_ext >&5 | 12457 cat conftest.$ac_ext >&5 |
12471 | 12481 |
12472 | 12482 |
12473 fi | 12483 fi |
12474 | 12484 |
12475 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 12485 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
12476 echo "configure:12477: checking whether netdb declares h_errno" >&5 | 12486 echo "configure:12487: checking whether netdb declares h_errno" >&5 |
12477 cat > conftest.$ac_ext <<EOF | 12487 cat > conftest.$ac_ext <<EOF |
12478 #line 12479 "configure" | 12488 #line 12489 "configure" |
12479 #include "confdefs.h" | 12489 #include "confdefs.h" |
12480 #include <netdb.h> | 12490 #include <netdb.h> |
12481 int main() { | 12491 int main() { |
12482 return h_errno; | 12492 return h_errno; |
12483 ; return 0; } | 12493 ; return 0; } |
12484 EOF | 12494 EOF |
12485 if { (eval echo configure:12486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12495 if { (eval echo configure:12496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12486 rm -rf conftest* | 12496 rm -rf conftest* |
12487 echo "$ac_t""yes" 1>&6 | 12497 echo "$ac_t""yes" 1>&6 |
12488 { test "$extra_verbose" = "yes" && cat << \EOF | 12498 { test "$extra_verbose" = "yes" && cat << \EOF |
12489 Defining HAVE_H_ERRNO | 12499 Defining HAVE_H_ERRNO |
12490 EOF | 12500 EOF |
12500 echo "$ac_t""no" 1>&6 | 12510 echo "$ac_t""no" 1>&6 |
12501 fi | 12511 fi |
12502 rm -f conftest* | 12512 rm -f conftest* |
12503 | 12513 |
12504 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 | 12514 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 |
12505 echo "configure:12506: checking for sigsetjmp" >&5 | 12515 echo "configure:12516: checking for sigsetjmp" >&5 |
12506 cat > conftest.$ac_ext <<EOF | 12516 cat > conftest.$ac_ext <<EOF |
12507 #line 12508 "configure" | 12517 #line 12518 "configure" |
12508 #include "confdefs.h" | 12518 #include "confdefs.h" |
12509 #include <setjmp.h> | 12519 #include <setjmp.h> |
12510 int main() { | 12520 int main() { |
12511 sigjmp_buf bar; sigsetjmp (bar, 0); | 12521 sigjmp_buf bar; sigsetjmp (bar, 0); |
12512 ; return 0; } | 12522 ; return 0; } |
12513 EOF | 12523 EOF |
12514 if { (eval echo configure:12515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 12524 if { (eval echo configure:12525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
12515 rm -rf conftest* | 12525 rm -rf conftest* |
12516 echo "$ac_t""yes" 1>&6 | 12526 echo "$ac_t""yes" 1>&6 |
12517 { test "$extra_verbose" = "yes" && cat << \EOF | 12527 { test "$extra_verbose" = "yes" && cat << \EOF |
12518 Defining HAVE_SIGSETJMP | 12528 Defining HAVE_SIGSETJMP |
12519 EOF | 12529 EOF |
12529 echo "$ac_t""no" 1>&6 | 12539 echo "$ac_t""no" 1>&6 |
12530 fi | 12540 fi |
12531 rm -f conftest* | 12541 rm -f conftest* |
12532 | 12542 |
12533 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 12543 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
12534 echo "configure:12535: checking whether localtime caches TZ" >&5 | 12544 echo "configure:12545: checking whether localtime caches TZ" >&5 |
12535 | 12545 |
12536 if test "$ac_cv_func_tzset" = "yes"; then | 12546 if test "$ac_cv_func_tzset" = "yes"; then |
12537 cat > conftest.$ac_ext <<EOF | 12547 cat > conftest.$ac_ext <<EOF |
12538 #line 12539 "configure" | 12548 #line 12549 "configure" |
12539 #include "confdefs.h" | 12549 #include "confdefs.h" |
12540 #include <time.h> | 12550 #include <time.h> |
12541 #if STDC_HEADERS | 12551 #if STDC_HEADERS |
12542 # include <stdlib.h> | 12552 # include <stdlib.h> |
12543 #endif | 12553 #endif |
12568 if (localtime (&now)->tm_hour != hour_unset) | 12578 if (localtime (&now)->tm_hour != hour_unset) |
12569 exit (1); | 12579 exit (1); |
12570 exit (0); | 12580 exit (0); |
12571 } | 12581 } |
12572 EOF | 12582 EOF |
12573 if { (eval echo configure:12574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 12583 if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
12574 then | 12584 then |
12575 emacs_cv_localtime_cache=no | 12585 emacs_cv_localtime_cache=no |
12576 else | 12586 else |
12577 conftest_rc="$?" | 12587 conftest_rc="$?" |
12578 echo "configure: failed program was:" >&5 | 12588 echo "configure: failed program was:" >&5 |
12598 | 12608 |
12599 fi | 12609 fi |
12600 | 12610 |
12601 if test "$HAVE_TIMEVAL" = "yes"; then | 12611 if test "$HAVE_TIMEVAL" = "yes"; then |
12602 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 | 12612 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 |
12603 echo "configure:12604: checking whether gettimeofday accepts one or two arguments" >&5 | 12613 echo "configure:12614: checking whether gettimeofday accepts one or two arguments" >&5 |
12604 cat > conftest.$ac_ext <<EOF | 12614 cat > conftest.$ac_ext <<EOF |
12605 #line 12606 "configure" | 12615 #line 12616 "configure" |
12606 #include "confdefs.h" | 12616 #include "confdefs.h" |
12607 | 12617 |
12608 #ifdef TIME_WITH_SYS_TIME | 12618 #ifdef TIME_WITH_SYS_TIME |
12609 #include <sys/time.h> | 12619 #include <sys/time.h> |
12610 #include <time.h> | 12620 #include <time.h> |
12621 struct timeval time; | 12631 struct timeval time; |
12622 gettimeofday (&time, 0); | 12632 gettimeofday (&time, 0); |
12623 | 12633 |
12624 ; return 0; } | 12634 ; return 0; } |
12625 EOF | 12635 EOF |
12626 if { (eval echo configure:12627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12636 if { (eval echo configure:12637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12627 rm -rf conftest* | 12637 rm -rf conftest* |
12628 echo "$ac_t""two" 1>&6 | 12638 echo "$ac_t""two" 1>&6 |
12629 else | 12639 else |
12630 echo "configure: failed program was:" >&5 | 12640 echo "configure: failed program was:" >&5 |
12631 cat conftest.$ac_ext >&5 | 12641 cat conftest.$ac_ext >&5 |
12643 rm -f conftest* | 12653 rm -f conftest* |
12644 fi | 12654 fi |
12645 | 12655 |
12646 | 12656 |
12647 echo $ac_n "checking for inline""... $ac_c" 1>&6 | 12657 echo $ac_n "checking for inline""... $ac_c" 1>&6 |
12648 echo "configure:12649: checking for inline" >&5 | 12658 echo "configure:12659: checking for inline" >&5 |
12649 | 12659 |
12650 ac_cv_c_inline=no | 12660 ac_cv_c_inline=no |
12651 for ac_kw in inline __inline__ __inline; do | 12661 for ac_kw in inline __inline__ __inline; do |
12652 cat > conftest.$ac_ext <<EOF | 12662 cat > conftest.$ac_ext <<EOF |
12653 #line 12654 "configure" | 12663 #line 12664 "configure" |
12654 #include "confdefs.h" | 12664 #include "confdefs.h" |
12655 | 12665 |
12656 int main() { | 12666 int main() { |
12657 } $ac_kw foo() { | 12667 } $ac_kw foo() { |
12658 ; return 0; } | 12668 ; return 0; } |
12659 EOF | 12669 EOF |
12660 if { (eval echo configure:12661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 12670 if { (eval echo configure:12671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
12661 rm -rf conftest* | 12671 rm -rf conftest* |
12662 ac_cv_c_inline=$ac_kw; break | 12672 ac_cv_c_inline=$ac_kw; break |
12663 else | 12673 else |
12664 echo "configure: failed program was:" >&5 | 12674 echo "configure: failed program was:" >&5 |
12665 cat conftest.$ac_ext >&5 | 12675 cat conftest.$ac_ext >&5 |
12696 | 12706 |
12697 if test "$__DECC" != "yes"; then | 12707 if test "$__DECC" != "yes"; then |
12698 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 12708 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
12699 # for constant arguments. Useless! | 12709 # for constant arguments. Useless! |
12700 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 12710 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
12701 echo "configure:12702: checking for working alloca.h" >&5 | 12711 echo "configure:12712: checking for working alloca.h" >&5 |
12702 | 12712 |
12703 cat > conftest.$ac_ext <<EOF | 12713 cat > conftest.$ac_ext <<EOF |
12704 #line 12705 "configure" | 12714 #line 12715 "configure" |
12705 #include "confdefs.h" | 12715 #include "confdefs.h" |
12706 #include <alloca.h> | 12716 #include <alloca.h> |
12707 int main() { | 12717 int main() { |
12708 char *p = alloca(2 * sizeof(int)); | 12718 char *p = alloca(2 * sizeof(int)); |
12709 ; return 0; } | 12719 ; return 0; } |
12710 EOF | 12720 EOF |
12711 if { (eval echo configure:12712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12721 if { (eval echo configure:12722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12712 rm -rf conftest* | 12722 rm -rf conftest* |
12713 ac_cv_header_alloca_h=yes | 12723 ac_cv_header_alloca_h=yes |
12714 else | 12724 else |
12715 echo "configure: failed program was:" >&5 | 12725 echo "configure: failed program was:" >&5 |
12716 cat conftest.$ac_ext >&5 | 12726 cat conftest.$ac_ext >&5 |
12730 } | 12740 } |
12731 | 12741 |
12732 fi | 12742 fi |
12733 | 12743 |
12734 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 12744 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
12735 echo "configure:12736: checking for alloca" >&5 | 12745 echo "configure:12746: checking for alloca" >&5 |
12736 | 12746 |
12737 cat > conftest.$ac_ext <<EOF | 12747 cat > conftest.$ac_ext <<EOF |
12738 #line 12739 "configure" | 12748 #line 12749 "configure" |
12739 #include "confdefs.h" | 12749 #include "confdefs.h" |
12740 | 12750 |
12741 #ifdef __GNUC__ | 12751 #ifdef __GNUC__ |
12742 # define alloca __builtin_alloca | 12752 # define alloca __builtin_alloca |
12743 #else | 12753 #else |
12761 | 12771 |
12762 int main() { | 12772 int main() { |
12763 char *p = (char *) alloca(1); | 12773 char *p = (char *) alloca(1); |
12764 ; return 0; } | 12774 ; return 0; } |
12765 EOF | 12775 EOF |
12766 if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12776 if { (eval echo configure:12777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12767 rm -rf conftest* | 12777 rm -rf conftest* |
12768 ac_cv_func_alloca_works=yes | 12778 ac_cv_func_alloca_works=yes |
12769 else | 12779 else |
12770 echo "configure: failed program was:" >&5 | 12780 echo "configure: failed program was:" >&5 |
12771 cat conftest.$ac_ext >&5 | 12781 cat conftest.$ac_ext >&5 |
12800 EOF | 12810 EOF |
12801 } | 12811 } |
12802 | 12812 |
12803 | 12813 |
12804 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 12814 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
12805 echo "configure:12806: checking whether alloca needs Cray hooks" >&5 | 12815 echo "configure:12816: checking whether alloca needs Cray hooks" >&5 |
12806 | 12816 |
12807 cat > conftest.$ac_ext <<EOF | 12817 cat > conftest.$ac_ext <<EOF |
12808 #line 12809 "configure" | 12818 #line 12819 "configure" |
12809 #include "confdefs.h" | 12819 #include "confdefs.h" |
12810 #if defined(CRAY) && ! defined(CRAY2) | 12820 #if defined(CRAY) && ! defined(CRAY2) |
12811 webecray | 12821 webecray |
12812 #else | 12822 #else |
12813 wenotbecray | 12823 wenotbecray |
12827 | 12837 |
12828 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 12838 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
12829 if test $ac_cv_os_cray = yes; then | 12839 if test $ac_cv_os_cray = yes; then |
12830 for ac_func in _getb67 GETB67 getb67; do | 12840 for ac_func in _getb67 GETB67 getb67; do |
12831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 12841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12832 echo "configure:12833: checking for $ac_func" >&5 | 12842 echo "configure:12843: checking for $ac_func" >&5 |
12833 | 12843 |
12834 cat > conftest.$ac_ext <<EOF | 12844 cat > conftest.$ac_ext <<EOF |
12835 #line 12836 "configure" | 12845 #line 12846 "configure" |
12836 #include "confdefs.h" | 12846 #include "confdefs.h" |
12837 /* System header to define __stub macros and hopefully few prototypes, | 12847 /* System header to define __stub macros and hopefully few prototypes, |
12838 which can conflict with char $ac_func(); below. */ | 12848 which can conflict with char $ac_func(); below. */ |
12839 #include <assert.h> | 12849 #include <assert.h> |
12840 /* Override any gcc2 internal prototype to avoid an error. */ | 12850 /* Override any gcc2 internal prototype to avoid an error. */ |
12853 $ac_func(); | 12863 $ac_func(); |
12854 #endif | 12864 #endif |
12855 | 12865 |
12856 ; return 0; } | 12866 ; return 0; } |
12857 EOF | 12867 EOF |
12858 if { (eval echo configure:12859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12868 if { (eval echo configure:12869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12859 rm -rf conftest* | 12869 rm -rf conftest* |
12860 eval "ac_cv_func_$ac_func=yes" | 12870 eval "ac_cv_func_$ac_func=yes" |
12861 else | 12871 else |
12862 echo "configure: failed program was:" >&5 | 12872 echo "configure: failed program was:" >&5 |
12863 cat conftest.$ac_ext >&5 | 12873 cat conftest.$ac_ext >&5 |
12883 | 12893 |
12884 done | 12894 done |
12885 fi | 12895 fi |
12886 | 12896 |
12887 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 12897 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
12888 echo "configure:12889: checking stack direction for C alloca" >&5 | 12898 echo "configure:12899: checking stack direction for C alloca" >&5 |
12889 | 12899 |
12890 cat > conftest.$ac_ext <<EOF | 12900 cat > conftest.$ac_ext <<EOF |
12891 #line 12892 "configure" | 12901 #line 12902 "configure" |
12892 #include "confdefs.h" | 12902 #include "confdefs.h" |
12893 find_stack_direction () | 12903 find_stack_direction () |
12894 { | 12904 { |
12895 static char *addr = 0; | 12905 static char *addr = 0; |
12896 auto char dummy; | 12906 auto char dummy; |
12905 main () | 12915 main () |
12906 { | 12916 { |
12907 exit (find_stack_direction() < 0); | 12917 exit (find_stack_direction() < 0); |
12908 } | 12918 } |
12909 EOF | 12919 EOF |
12910 if { (eval echo configure:12911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 12920 if { (eval echo configure:12921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
12911 then | 12921 then |
12912 ac_cv_c_stack_direction=1 | 12922 ac_cv_c_stack_direction=1 |
12913 else | 12923 else |
12914 conftest_rc="$?" | 12924 conftest_rc="$?" |
12915 echo "configure: failed program was:" >&5 | 12925 echo "configure: failed program was:" >&5 |
12934 echo " xemacs will be linked with \"$ALLOCA\"" | 12944 echo " xemacs will be linked with \"$ALLOCA\"" |
12935 fi | 12945 fi |
12936 fi | 12946 fi |
12937 | 12947 |
12938 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 | 12948 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 |
12939 echo "configure:12940: checking for working strcoll" >&5 | 12949 echo "configure:12950: checking for working strcoll" >&5 |
12940 | 12950 |
12941 cat > conftest.$ac_ext <<EOF | 12951 cat > conftest.$ac_ext <<EOF |
12942 #line 12943 "configure" | 12952 #line 12953 "configure" |
12943 #include "confdefs.h" | 12953 #include "confdefs.h" |
12944 #include <string.h> | 12954 #include <string.h> |
12945 main () | 12955 main () |
12946 { | 12956 { |
12947 exit (strcoll ("abc", "def") >= 0 || | 12957 exit (strcoll ("abc", "def") >= 0 || |
12948 strcoll ("ABC", "DEF") >= 0 || | 12958 strcoll ("ABC", "DEF") >= 0 || |
12949 strcoll ("123", "456") >= 0); | 12959 strcoll ("123", "456") >= 0); |
12950 } | 12960 } |
12951 EOF | 12961 EOF |
12952 if { (eval echo configure:12953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 12962 if { (eval echo configure:12963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
12953 then | 12963 then |
12954 ac_cv_func_strcoll_works=yes | 12964 ac_cv_func_strcoll_works=yes |
12955 else | 12965 else |
12956 conftest_rc="$?" | 12966 conftest_rc="$?" |
12957 echo "configure: failed program was:" >&5 | 12967 echo "configure: failed program was:" >&5 |
12975 | 12985 |
12976 | 12986 |
12977 for ac_func in getpgrp | 12987 for ac_func in getpgrp |
12978 do | 12988 do |
12979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 12989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12980 echo "configure:12981: checking for $ac_func" >&5 | 12990 echo "configure:12991: checking for $ac_func" >&5 |
12981 | 12991 |
12982 cat > conftest.$ac_ext <<EOF | 12992 cat > conftest.$ac_ext <<EOF |
12983 #line 12984 "configure" | 12993 #line 12994 "configure" |
12984 #include "confdefs.h" | 12994 #include "confdefs.h" |
12985 /* System header to define __stub macros and hopefully few prototypes, | 12995 /* System header to define __stub macros and hopefully few prototypes, |
12986 which can conflict with char $ac_func(); below. */ | 12996 which can conflict with char $ac_func(); below. */ |
12987 #include <assert.h> | 12997 #include <assert.h> |
12988 /* Override any gcc2 internal prototype to avoid an error. */ | 12998 /* Override any gcc2 internal prototype to avoid an error. */ |
13001 $ac_func(); | 13011 $ac_func(); |
13002 #endif | 13012 #endif |
13003 | 13013 |
13004 ; return 0; } | 13014 ; return 0; } |
13005 EOF | 13015 EOF |
13006 if { (eval echo configure:13007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13016 if { (eval echo configure:13017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13007 rm -rf conftest* | 13017 rm -rf conftest* |
13008 eval "ac_cv_func_$ac_func=yes" | 13018 eval "ac_cv_func_$ac_func=yes" |
13009 else | 13019 else |
13010 echo "configure: failed program was:" >&5 | 13020 echo "configure: failed program was:" >&5 |
13011 cat conftest.$ac_ext >&5 | 13021 cat conftest.$ac_ext >&5 |
13029 echo "$ac_t""no" 1>&6 | 13039 echo "$ac_t""no" 1>&6 |
13030 fi | 13040 fi |
13031 done | 13041 done |
13032 | 13042 |
13033 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 | 13043 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 |
13034 echo "configure:13035: checking whether getpgrp takes no argument" >&5 | 13044 echo "configure:13045: checking whether getpgrp takes no argument" >&5 |
13035 | 13045 |
13036 cat > conftest.$ac_ext <<EOF | 13046 cat > conftest.$ac_ext <<EOF |
13037 #line 13038 "configure" | 13047 #line 13048 "configure" |
13038 #include "confdefs.h" | 13048 #include "confdefs.h" |
13039 | 13049 |
13040 /* | 13050 /* |
13041 * If this system has a BSD-style getpgrp(), | 13051 * If this system has a BSD-style getpgrp(), |
13042 * which takes a pid argument, exit unsuccessfully. | 13052 * which takes a pid argument, exit unsuccessfully. |
13087 exit(s>>8); | 13097 exit(s>>8); |
13088 } | 13098 } |
13089 } | 13099 } |
13090 | 13100 |
13091 EOF | 13101 EOF |
13092 if { (eval echo configure:13093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 13102 if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
13093 then | 13103 then |
13094 ac_cv_func_getpgrp_void=yes | 13104 ac_cv_func_getpgrp_void=yes |
13095 else | 13105 else |
13096 conftest_rc="$?" | 13106 conftest_rc="$?" |
13097 echo "configure: failed program was:" >&5 | 13107 echo "configure: failed program was:" >&5 |
13114 | 13124 |
13115 fi | 13125 fi |
13116 | 13126 |
13117 | 13127 |
13118 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 13128 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
13119 echo "configure:13120: checking for working mmap" >&5 | 13129 echo "configure:13130: checking for working mmap" >&5 |
13120 case "$opsys" in ultrix* ) have_mmap=no ;; *) | 13130 case "$opsys" in ultrix* ) have_mmap=no ;; *) |
13121 cat > conftest.$ac_ext <<EOF | 13131 cat > conftest.$ac_ext <<EOF |
13122 #line 13123 "configure" | 13132 #line 13133 "configure" |
13123 #include "confdefs.h" | 13133 #include "confdefs.h" |
13124 #include <stdio.h> | 13134 #include <stdio.h> |
13125 #include <unistd.h> | 13135 #include <unistd.h> |
13126 #include <fcntl.h> | 13136 #include <fcntl.h> |
13127 #include <sys/mman.h> | 13137 #include <sys/mman.h> |
13150 return 0; | 13160 return 0; |
13151 perror ("conftest: mmap failed"); | 13161 perror ("conftest: mmap failed"); |
13152 return 1; | 13162 return 1; |
13153 } | 13163 } |
13154 EOF | 13164 EOF |
13155 if { (eval echo configure:13156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 13165 if { (eval echo configure:13166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
13156 then | 13166 then |
13157 have_mmap=yes | 13167 have_mmap=yes |
13158 else | 13168 else |
13159 conftest_rc="$?" | 13169 conftest_rc="$?" |
13160 echo "configure: failed program was:" >&5 | 13170 echo "configure: failed program was:" >&5 |
13179 esac | 13189 esac |
13180 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no | 13190 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no |
13181 if test "$rel_alloc $have_mmap" = "default yes"; then | 13191 if test "$rel_alloc $have_mmap" = "default yes"; then |
13182 if test "$doug_lea_malloc" = "yes"; then | 13192 if test "$doug_lea_malloc" = "yes"; then |
13183 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 | 13193 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 |
13184 echo "configure:13185: checking for M_MMAP_THRESHOLD" >&5 | 13194 echo "configure:13195: checking for M_MMAP_THRESHOLD" >&5 |
13185 cat > conftest.$ac_ext <<EOF | 13195 cat > conftest.$ac_ext <<EOF |
13186 #line 13187 "configure" | 13196 #line 13197 "configure" |
13187 #include "confdefs.h" | 13197 #include "confdefs.h" |
13188 #include <malloc.h> | 13198 #include <malloc.h> |
13189 int main() { | 13199 int main() { |
13190 | 13200 |
13191 #ifndef M_MMAP_THRESHOLD | 13201 #ifndef M_MMAP_THRESHOLD |
13193 !@+$%^&*_)(_ - unlikely to compile... | 13203 !@+$%^&*_)(_ - unlikely to compile... |
13194 #endif | 13204 #endif |
13195 | 13205 |
13196 ; return 0; } | 13206 ; return 0; } |
13197 EOF | 13207 EOF |
13198 if { (eval echo configure:13199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 13208 if { (eval echo configure:13209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
13199 rm -rf conftest* | 13209 rm -rf conftest* |
13200 rel_alloc=no; echo "$ac_t""yes" 1>&6; | 13210 rel_alloc=no; echo "$ac_t""yes" 1>&6; |
13201 else | 13211 else |
13202 echo "configure: failed program was:" >&5 | 13212 echo "configure: failed program was:" >&5 |
13203 cat conftest.$ac_ext >&5 | 13213 cat conftest.$ac_ext >&5 |
13218 } | 13228 } |
13219 | 13229 |
13220 | 13230 |
13221 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` | 13231 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` |
13222 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 | 13232 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 |
13223 echo "configure:13224: checking for termios.h" >&5 | 13233 echo "configure:13234: checking for termios.h" >&5 |
13224 | 13234 |
13225 cat > conftest.$ac_ext <<EOF | 13235 cat > conftest.$ac_ext <<EOF |
13226 #line 13227 "configure" | 13236 #line 13237 "configure" |
13227 #include "confdefs.h" | 13237 #include "confdefs.h" |
13228 #include <termios.h> | 13238 #include <termios.h> |
13229 EOF | 13239 EOF |
13230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13231 { (eval echo configure:13232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13241 { (eval echo configure:13242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13233 if test -z "$ac_err"; then | 13243 if test -z "$ac_err"; then |
13234 rm -rf conftest* | 13244 rm -rf conftest* |
13235 eval "ac_cv_header_$ac_safe=yes" | 13245 eval "ac_cv_header_$ac_safe=yes" |
13236 else | 13246 else |
13269 | 13279 |
13270 else | 13280 else |
13271 echo "$ac_t""no" 1>&6 | 13281 echo "$ac_t""no" 1>&6 |
13272 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` | 13282 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` |
13273 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 | 13283 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 |
13274 echo "configure:13275: checking for termio.h" >&5 | 13284 echo "configure:13285: checking for termio.h" >&5 |
13275 | 13285 |
13276 cat > conftest.$ac_ext <<EOF | 13286 cat > conftest.$ac_ext <<EOF |
13277 #line 13278 "configure" | 13287 #line 13288 "configure" |
13278 #include "confdefs.h" | 13288 #include "confdefs.h" |
13279 #include <termio.h> | 13289 #include <termio.h> |
13280 EOF | 13290 EOF |
13281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13282 { (eval echo configure:13283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13292 { (eval echo configure:13293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13284 if test -z "$ac_err"; then | 13294 if test -z "$ac_err"; then |
13285 rm -rf conftest* | 13295 rm -rf conftest* |
13286 eval "ac_cv_header_$ac_safe=yes" | 13296 eval "ac_cv_header_$ac_safe=yes" |
13287 else | 13297 else |
13309 fi | 13319 fi |
13310 | 13320 |
13311 | 13321 |
13312 | 13322 |
13313 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 13323 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
13314 echo "configure:13315: checking for socket" >&5 | 13324 echo "configure:13325: checking for socket" >&5 |
13315 | 13325 |
13316 cat > conftest.$ac_ext <<EOF | 13326 cat > conftest.$ac_ext <<EOF |
13317 #line 13318 "configure" | 13327 #line 13328 "configure" |
13318 #include "confdefs.h" | 13328 #include "confdefs.h" |
13319 /* System header to define __stub macros and hopefully few prototypes, | 13329 /* System header to define __stub macros and hopefully few prototypes, |
13320 which can conflict with char socket(); below. */ | 13330 which can conflict with char socket(); below. */ |
13321 #include <assert.h> | 13331 #include <assert.h> |
13322 /* Override any gcc2 internal prototype to avoid an error. */ | 13332 /* Override any gcc2 internal prototype to avoid an error. */ |
13335 socket(); | 13345 socket(); |
13336 #endif | 13346 #endif |
13337 | 13347 |
13338 ; return 0; } | 13348 ; return 0; } |
13339 EOF | 13349 EOF |
13340 if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13350 if { (eval echo configure:13351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13341 rm -rf conftest* | 13351 rm -rf conftest* |
13342 eval "ac_cv_func_socket=yes" | 13352 eval "ac_cv_func_socket=yes" |
13343 else | 13353 else |
13344 echo "configure: failed program was:" >&5 | 13354 echo "configure: failed program was:" >&5 |
13345 cat conftest.$ac_ext >&5 | 13355 cat conftest.$ac_ext >&5 |
13350 | 13360 |
13351 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | 13361 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
13352 echo "$ac_t""yes" 1>&6 | 13362 echo "$ac_t""yes" 1>&6 |
13353 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 13363 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
13354 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 13364 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
13355 echo "configure:13356: checking for netinet/in.h" >&5 | 13365 echo "configure:13366: checking for netinet/in.h" >&5 |
13356 | 13366 |
13357 cat > conftest.$ac_ext <<EOF | 13367 cat > conftest.$ac_ext <<EOF |
13358 #line 13359 "configure" | 13368 #line 13369 "configure" |
13359 #include "confdefs.h" | 13369 #include "confdefs.h" |
13360 #include <netinet/in.h> | 13370 #include <netinet/in.h> |
13361 EOF | 13371 EOF |
13362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13363 { (eval echo configure:13364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13373 { (eval echo configure:13374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13365 if test -z "$ac_err"; then | 13375 if test -z "$ac_err"; then |
13366 rm -rf conftest* | 13376 rm -rf conftest* |
13367 eval "ac_cv_header_$ac_safe=yes" | 13377 eval "ac_cv_header_$ac_safe=yes" |
13368 else | 13378 else |
13375 rm -f conftest* | 13385 rm -f conftest* |
13376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 13386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13377 echo "$ac_t""yes" 1>&6 | 13387 echo "$ac_t""yes" 1>&6 |
13378 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 13388 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
13379 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 13389 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
13380 echo "configure:13381: checking for arpa/inet.h" >&5 | 13390 echo "configure:13391: checking for arpa/inet.h" >&5 |
13381 | 13391 |
13382 cat > conftest.$ac_ext <<EOF | 13392 cat > conftest.$ac_ext <<EOF |
13383 #line 13384 "configure" | 13393 #line 13394 "configure" |
13384 #include "confdefs.h" | 13394 #include "confdefs.h" |
13385 #include <arpa/inet.h> | 13395 #include <arpa/inet.h> |
13386 EOF | 13396 EOF |
13387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13388 { (eval echo configure:13389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13398 { (eval echo configure:13399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13390 if test -z "$ac_err"; then | 13400 if test -z "$ac_err"; then |
13391 rm -rf conftest* | 13401 rm -rf conftest* |
13392 eval "ac_cv_header_$ac_safe=yes" | 13402 eval "ac_cv_header_$ac_safe=yes" |
13393 else | 13403 else |
13408 #define HAVE_SOCKETS 1 | 13418 #define HAVE_SOCKETS 1 |
13409 EOF | 13419 EOF |
13410 } | 13420 } |
13411 | 13421 |
13412 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 | 13422 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 |
13413 echo "configure:13414: checking "for sun_len member in struct sockaddr_un"" >&5 | 13423 echo "configure:13424: checking "for sun_len member in struct sockaddr_un"" >&5 |
13414 cat > conftest.$ac_ext <<EOF | 13424 cat > conftest.$ac_ext <<EOF |
13415 #line 13416 "configure" | 13425 #line 13426 "configure" |
13416 #include "confdefs.h" | 13426 #include "confdefs.h" |
13417 | 13427 |
13418 #include <sys/types.h> | 13428 #include <sys/types.h> |
13419 #include <sys/socket.h> | 13429 #include <sys/socket.h> |
13420 #include <sys/un.h> | 13430 #include <sys/un.h> |
13421 | 13431 |
13422 int main() { | 13432 int main() { |
13423 static struct sockaddr_un x; x.sun_len = 1; | 13433 static struct sockaddr_un x; x.sun_len = 1; |
13424 ; return 0; } | 13434 ; return 0; } |
13425 EOF | 13435 EOF |
13426 if { (eval echo configure:13427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13436 if { (eval echo configure:13437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13427 rm -rf conftest* | 13437 rm -rf conftest* |
13428 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | 13438 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF |
13429 Defining HAVE_SOCKADDR_SUN_LEN | 13439 Defining HAVE_SOCKADDR_SUN_LEN |
13430 EOF | 13440 EOF |
13431 cat >> confdefs.h <<\EOF | 13441 cat >> confdefs.h <<\EOF |
13439 rm -rf conftest* | 13449 rm -rf conftest* |
13440 echo "$ac_t""no" 1>&6 | 13450 echo "$ac_t""no" 1>&6 |
13441 fi | 13451 fi |
13442 rm -f conftest* | 13452 rm -f conftest* |
13443 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 | 13453 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 |
13444 echo "configure:13445: checking "for ip_mreq struct in netinet/in.h"" >&5 | 13454 echo "configure:13455: checking "for ip_mreq struct in netinet/in.h"" >&5 |
13445 cat > conftest.$ac_ext <<EOF | 13455 cat > conftest.$ac_ext <<EOF |
13446 #line 13447 "configure" | 13456 #line 13457 "configure" |
13447 #include "confdefs.h" | 13457 #include "confdefs.h" |
13448 | 13458 |
13449 #include <sys/types.h> | 13459 #include <sys/types.h> |
13450 #include <netinet/in.h> | 13460 #include <netinet/in.h> |
13451 | 13461 |
13452 int main() { | 13462 int main() { |
13453 static struct ip_mreq x; | 13463 static struct ip_mreq x; |
13454 ; return 0; } | 13464 ; return 0; } |
13455 EOF | 13465 EOF |
13456 if { (eval echo configure:13457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13466 if { (eval echo configure:13467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13457 rm -rf conftest* | 13467 rm -rf conftest* |
13458 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | 13468 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF |
13459 Defining HAVE_MULTICAST | 13469 Defining HAVE_MULTICAST |
13460 EOF | 13470 EOF |
13461 cat >> confdefs.h <<\EOF | 13471 cat >> confdefs.h <<\EOF |
13482 echo "$ac_t""no" 1>&6 | 13492 echo "$ac_t""no" 1>&6 |
13483 fi | 13493 fi |
13484 | 13494 |
13485 | 13495 |
13486 echo $ac_n "checking for msgget""... $ac_c" 1>&6 | 13496 echo $ac_n "checking for msgget""... $ac_c" 1>&6 |
13487 echo "configure:13488: checking for msgget" >&5 | 13497 echo "configure:13498: checking for msgget" >&5 |
13488 | 13498 |
13489 cat > conftest.$ac_ext <<EOF | 13499 cat > conftest.$ac_ext <<EOF |
13490 #line 13491 "configure" | 13500 #line 13501 "configure" |
13491 #include "confdefs.h" | 13501 #include "confdefs.h" |
13492 /* System header to define __stub macros and hopefully few prototypes, | 13502 /* System header to define __stub macros and hopefully few prototypes, |
13493 which can conflict with char msgget(); below. */ | 13503 which can conflict with char msgget(); below. */ |
13494 #include <assert.h> | 13504 #include <assert.h> |
13495 /* Override any gcc2 internal prototype to avoid an error. */ | 13505 /* Override any gcc2 internal prototype to avoid an error. */ |
13508 msgget(); | 13518 msgget(); |
13509 #endif | 13519 #endif |
13510 | 13520 |
13511 ; return 0; } | 13521 ; return 0; } |
13512 EOF | 13522 EOF |
13513 if { (eval echo configure:13514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13523 if { (eval echo configure:13524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13514 rm -rf conftest* | 13524 rm -rf conftest* |
13515 eval "ac_cv_func_msgget=yes" | 13525 eval "ac_cv_func_msgget=yes" |
13516 else | 13526 else |
13517 echo "configure: failed program was:" >&5 | 13527 echo "configure: failed program was:" >&5 |
13518 cat conftest.$ac_ext >&5 | 13528 cat conftest.$ac_ext >&5 |
13523 | 13533 |
13524 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then | 13534 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then |
13525 echo "$ac_t""yes" 1>&6 | 13535 echo "$ac_t""yes" 1>&6 |
13526 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` | 13536 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` |
13527 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 | 13537 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 |
13528 echo "configure:13529: checking for sys/ipc.h" >&5 | 13538 echo "configure:13539: checking for sys/ipc.h" >&5 |
13529 | 13539 |
13530 cat > conftest.$ac_ext <<EOF | 13540 cat > conftest.$ac_ext <<EOF |
13531 #line 13532 "configure" | 13541 #line 13542 "configure" |
13532 #include "confdefs.h" | 13542 #include "confdefs.h" |
13533 #include <sys/ipc.h> | 13543 #include <sys/ipc.h> |
13534 EOF | 13544 EOF |
13535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13536 { (eval echo configure:13537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13546 { (eval echo configure:13547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13538 if test -z "$ac_err"; then | 13548 if test -z "$ac_err"; then |
13539 rm -rf conftest* | 13549 rm -rf conftest* |
13540 eval "ac_cv_header_$ac_safe=yes" | 13550 eval "ac_cv_header_$ac_safe=yes" |
13541 else | 13551 else |
13548 rm -f conftest* | 13558 rm -f conftest* |
13549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 13559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13550 echo "$ac_t""yes" 1>&6 | 13560 echo "$ac_t""yes" 1>&6 |
13551 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` | 13561 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` |
13552 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 | 13562 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 |
13553 echo "configure:13554: checking for sys/msg.h" >&5 | 13563 echo "configure:13564: checking for sys/msg.h" >&5 |
13554 | 13564 |
13555 cat > conftest.$ac_ext <<EOF | 13565 cat > conftest.$ac_ext <<EOF |
13556 #line 13557 "configure" | 13566 #line 13567 "configure" |
13557 #include "confdefs.h" | 13567 #include "confdefs.h" |
13558 #include <sys/msg.h> | 13568 #include <sys/msg.h> |
13559 EOF | 13569 EOF |
13560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13561 { (eval echo configure:13562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13571 { (eval echo configure:13572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13563 if test -z "$ac_err"; then | 13573 if test -z "$ac_err"; then |
13564 rm -rf conftest* | 13574 rm -rf conftest* |
13565 eval "ac_cv_header_$ac_safe=yes" | 13575 eval "ac_cv_header_$ac_safe=yes" |
13566 else | 13576 else |
13594 fi | 13604 fi |
13595 | 13605 |
13596 | 13606 |
13597 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` | 13607 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` |
13598 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 | 13608 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 |
13599 echo "configure:13600: checking for dirent.h" >&5 | 13609 echo "configure:13610: checking for dirent.h" >&5 |
13600 | 13610 |
13601 cat > conftest.$ac_ext <<EOF | 13611 cat > conftest.$ac_ext <<EOF |
13602 #line 13603 "configure" | 13612 #line 13613 "configure" |
13603 #include "confdefs.h" | 13613 #include "confdefs.h" |
13604 #include <dirent.h> | 13614 #include <dirent.h> |
13605 EOF | 13615 EOF |
13606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13607 { (eval echo configure:13608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13617 { (eval echo configure:13618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13609 if test -z "$ac_err"; then | 13619 if test -z "$ac_err"; then |
13610 rm -rf conftest* | 13620 rm -rf conftest* |
13611 eval "ac_cv_header_$ac_safe=yes" | 13621 eval "ac_cv_header_$ac_safe=yes" |
13612 else | 13622 else |
13629 | 13639 |
13630 else | 13640 else |
13631 echo "$ac_t""no" 1>&6 | 13641 echo "$ac_t""no" 1>&6 |
13632 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` | 13642 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` |
13633 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 | 13643 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 |
13634 echo "configure:13635: checking for sys/dir.h" >&5 | 13644 echo "configure:13645: checking for sys/dir.h" >&5 |
13635 | 13645 |
13636 cat > conftest.$ac_ext <<EOF | 13646 cat > conftest.$ac_ext <<EOF |
13637 #line 13638 "configure" | 13647 #line 13648 "configure" |
13638 #include "confdefs.h" | 13648 #include "confdefs.h" |
13639 #include <sys/dir.h> | 13649 #include <sys/dir.h> |
13640 EOF | 13650 EOF |
13641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13642 { (eval echo configure:13643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13652 { (eval echo configure:13653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13644 if test -z "$ac_err"; then | 13654 if test -z "$ac_err"; then |
13645 rm -rf conftest* | 13655 rm -rf conftest* |
13646 eval "ac_cv_header_$ac_safe=yes" | 13656 eval "ac_cv_header_$ac_safe=yes" |
13647 else | 13657 else |
13670 fi | 13680 fi |
13671 | 13681 |
13672 | 13682 |
13673 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 13683 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
13674 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 13684 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
13675 echo "configure:13676: checking for nlist.h" >&5 | 13685 echo "configure:13686: checking for nlist.h" >&5 |
13676 | 13686 |
13677 cat > conftest.$ac_ext <<EOF | 13687 cat > conftest.$ac_ext <<EOF |
13678 #line 13679 "configure" | 13688 #line 13689 "configure" |
13679 #include "confdefs.h" | 13689 #include "confdefs.h" |
13680 #include <nlist.h> | 13690 #include <nlist.h> |
13681 EOF | 13691 EOF |
13682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13683 { (eval echo configure:13684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13693 { (eval echo configure:13694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13685 if test -z "$ac_err"; then | 13695 if test -z "$ac_err"; then |
13686 rm -rf conftest* | 13696 rm -rf conftest* |
13687 eval "ac_cv_header_$ac_safe=yes" | 13697 eval "ac_cv_header_$ac_safe=yes" |
13688 else | 13698 else |
13708 fi | 13718 fi |
13709 | 13719 |
13710 | 13720 |
13711 | 13721 |
13712 echo "checking "for sound support"" 1>&6 | 13722 echo "checking "for sound support"" 1>&6 |
13713 echo "configure:13714: checking "for sound support"" >&5 | 13723 echo "configure:13724: checking "for sound support"" >&5 |
13714 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes | 13724 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes |
13715 | 13725 |
13716 if test "$with_native_sound" != "no"; then | 13726 if test "$with_native_sound" != "no"; then |
13717 if test -n "$native_sound_lib"; then | 13727 if test -n "$native_sound_lib"; then |
13718 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` | 13728 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` |
13719 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 | 13729 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 |
13720 echo "configure:13721: checking for multimedia/audio_device.h" >&5 | 13730 echo "configure:13731: checking for multimedia/audio_device.h" >&5 |
13721 | 13731 |
13722 cat > conftest.$ac_ext <<EOF | 13732 cat > conftest.$ac_ext <<EOF |
13723 #line 13724 "configure" | 13733 #line 13734 "configure" |
13724 #include "confdefs.h" | 13734 #include "confdefs.h" |
13725 #include <multimedia/audio_device.h> | 13735 #include <multimedia/audio_device.h> |
13726 EOF | 13736 EOF |
13727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13728 { (eval echo configure:13729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13738 { (eval echo configure:13739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13730 if test -z "$ac_err"; then | 13740 if test -z "$ac_err"; then |
13731 rm -rf conftest* | 13741 rm -rf conftest* |
13732 eval "ac_cv_header_$ac_safe=yes" | 13742 eval "ac_cv_header_$ac_safe=yes" |
13733 else | 13743 else |
13771 case "$canonical" in | 13781 case "$canonical" in |
13772 *-sgi-* ) | 13782 *-sgi-* ) |
13773 if test -z "$native_sound_lib"; then | 13783 if test -z "$native_sound_lib"; then |
13774 | 13784 |
13775 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 | 13785 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 |
13776 echo "configure:13777: checking for ALopenport in -laudio" >&5 | 13786 echo "configure:13787: checking for ALopenport in -laudio" >&5 |
13777 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` | 13787 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` |
13778 | 13788 |
13779 xe_check_libs=" -laudio " | 13789 xe_check_libs=" -laudio " |
13780 cat > conftest.$ac_ext <<EOF | 13790 cat > conftest.$ac_ext <<EOF |
13781 #line 13782 "configure" | 13791 #line 13792 "configure" |
13782 #include "confdefs.h" | 13792 #include "confdefs.h" |
13783 /* Override any gcc2 internal prototype to avoid an error. */ | 13793 /* Override any gcc2 internal prototype to avoid an error. */ |
13784 /* We use char because int might match the return type of a gcc2 | 13794 /* We use char because int might match the return type of a gcc2 |
13785 builtin and then its argument prototype would still apply. */ | 13795 builtin and then its argument prototype would still apply. */ |
13786 char ALopenport(); | 13796 char ALopenport(); |
13787 | 13797 |
13788 int main() { | 13798 int main() { |
13789 ALopenport() | 13799 ALopenport() |
13790 ; return 0; } | 13800 ; return 0; } |
13791 EOF | 13801 EOF |
13792 if { (eval echo configure:13793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13802 if { (eval echo configure:13803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13793 rm -rf conftest* | 13803 rm -rf conftest* |
13794 eval "ac_cv_lib_$ac_lib_var=yes" | 13804 eval "ac_cv_lib_$ac_lib_var=yes" |
13795 else | 13805 else |
13796 echo "configure: failed program was:" >&5 | 13806 echo "configure: failed program was:" >&5 |
13797 cat conftest.$ac_ext >&5 | 13807 cat conftest.$ac_ext >&5 |
13818 fi ;; | 13828 fi ;; |
13819 hppa*-hp-hpux* ) | 13829 hppa*-hp-hpux* ) |
13820 if test -z "$native_sound_lib"; then | 13830 if test -z "$native_sound_lib"; then |
13821 | 13831 |
13822 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 | 13832 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 |
13823 echo "configure:13824: checking for AOpenAudio in -lAlib" >&5 | 13833 echo "configure:13834: checking for AOpenAudio in -lAlib" >&5 |
13824 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` | 13834 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` |
13825 | 13835 |
13826 xe_check_libs=" -lAlib " | 13836 xe_check_libs=" -lAlib " |
13827 cat > conftest.$ac_ext <<EOF | 13837 cat > conftest.$ac_ext <<EOF |
13828 #line 13829 "configure" | 13838 #line 13839 "configure" |
13829 #include "confdefs.h" | 13839 #include "confdefs.h" |
13830 /* Override any gcc2 internal prototype to avoid an error. */ | 13840 /* Override any gcc2 internal prototype to avoid an error. */ |
13831 /* We use char because int might match the return type of a gcc2 | 13841 /* We use char because int might match the return type of a gcc2 |
13832 builtin and then its argument prototype would still apply. */ | 13842 builtin and then its argument prototype would still apply. */ |
13833 char AOpenAudio(); | 13843 char AOpenAudio(); |
13834 | 13844 |
13835 int main() { | 13845 int main() { |
13836 AOpenAudio() | 13846 AOpenAudio() |
13837 ; return 0; } | 13847 ; return 0; } |
13838 EOF | 13848 EOF |
13839 if { (eval echo configure:13840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13849 if { (eval echo configure:13850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13840 rm -rf conftest* | 13850 rm -rf conftest* |
13841 eval "ac_cv_lib_$ac_lib_var=yes" | 13851 eval "ac_cv_lib_$ac_lib_var=yes" |
13842 else | 13852 else |
13843 echo "configure: failed program was:" >&5 | 13853 echo "configure: failed program was:" >&5 |
13844 cat conftest.$ac_ext >&5 | 13854 cat conftest.$ac_ext >&5 |
13882 | 13892 |
13883 if test -z "$sound_found"; then | 13893 if test -z "$sound_found"; then |
13884 for dir in "machine" "sys" "linux"; do | 13894 for dir in "machine" "sys" "linux"; do |
13885 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` | 13895 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` |
13886 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 | 13896 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 |
13887 echo "configure:13888: checking for ${dir}/soundcard.h" >&5 | 13897 echo "configure:13898: checking for ${dir}/soundcard.h" >&5 |
13888 | 13898 |
13889 cat > conftest.$ac_ext <<EOF | 13899 cat > conftest.$ac_ext <<EOF |
13890 #line 13891 "configure" | 13900 #line 13901 "configure" |
13891 #include "confdefs.h" | 13901 #include "confdefs.h" |
13892 #include <${dir}/soundcard.h> | 13902 #include <${dir}/soundcard.h> |
13893 EOF | 13903 EOF |
13894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13895 { (eval echo configure:13896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13905 { (eval echo configure:13906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13897 if test -z "$ac_err"; then | 13907 if test -z "$ac_err"; then |
13898 rm -rf conftest* | 13908 rm -rf conftest* |
13899 eval "ac_cv_header_$ac_safe=yes" | 13909 eval "ac_cv_header_$ac_safe=yes" |
13900 else | 13910 else |
13944 fi | 13954 fi |
13945 | 13955 |
13946 if test "$with_nas_sound" != "no"; then | 13956 if test "$with_nas_sound" != "no"; then |
13947 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` | 13957 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` |
13948 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 | 13958 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 |
13949 echo "configure:13950: checking for audio/audiolib.h" >&5 | 13959 echo "configure:13960: checking for audio/audiolib.h" >&5 |
13950 | 13960 |
13951 cat > conftest.$ac_ext <<EOF | 13961 cat > conftest.$ac_ext <<EOF |
13952 #line 13953 "configure" | 13962 #line 13963 "configure" |
13953 #include "confdefs.h" | 13963 #include "confdefs.h" |
13954 #include <audio/audiolib.h> | 13964 #include <audio/audiolib.h> |
13955 EOF | 13965 EOF |
13956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13957 { (eval echo configure:13958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13967 { (eval echo configure:13968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13959 if test -z "$ac_err"; then | 13969 if test -z "$ac_err"; then |
13960 rm -rf conftest* | 13970 rm -rf conftest* |
13961 eval "ac_cv_header_$ac_safe=yes" | 13971 eval "ac_cv_header_$ac_safe=yes" |
13962 else | 13972 else |
13970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 13980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13971 echo "$ac_t""yes" 1>&6 | 13981 echo "$ac_t""yes" 1>&6 |
13972 | 13982 |
13973 | 13983 |
13974 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 | 13984 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 |
13975 echo "configure:13976: checking for AuOpenServer in -laudio" >&5 | 13985 echo "configure:13986: checking for AuOpenServer in -laudio" >&5 |
13976 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` | 13986 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` |
13977 | 13987 |
13978 xe_check_libs=" -laudio " | 13988 xe_check_libs=" -laudio " |
13979 cat > conftest.$ac_ext <<EOF | 13989 cat > conftest.$ac_ext <<EOF |
13980 #line 13981 "configure" | 13990 #line 13991 "configure" |
13981 #include "confdefs.h" | 13991 #include "confdefs.h" |
13982 /* Override any gcc2 internal prototype to avoid an error. */ | 13992 /* Override any gcc2 internal prototype to avoid an error. */ |
13983 /* We use char because int might match the return type of a gcc2 | 13993 /* We use char because int might match the return type of a gcc2 |
13984 builtin and then its argument prototype would still apply. */ | 13994 builtin and then its argument prototype would still apply. */ |
13985 char AuOpenServer(); | 13995 char AuOpenServer(); |
13986 | 13996 |
13987 int main() { | 13997 int main() { |
13988 AuOpenServer() | 13998 AuOpenServer() |
13989 ; return 0; } | 13999 ; return 0; } |
13990 EOF | 14000 EOF |
13991 if { (eval echo configure:13992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14001 if { (eval echo configure:14002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13992 rm -rf conftest* | 14002 rm -rf conftest* |
13993 eval "ac_cv_lib_$ac_lib_var=yes" | 14003 eval "ac_cv_lib_$ac_lib_var=yes" |
13994 else | 14004 else |
13995 echo "configure: failed program was:" >&5 | 14005 echo "configure: failed program was:" >&5 |
13996 cat conftest.$ac_ext >&5 | 14006 cat conftest.$ac_ext >&5 |
14025 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then | 14035 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then |
14026 echo " xemacs will be linked with \"nas.o\"" | 14036 echo " xemacs will be linked with \"nas.o\"" |
14027 fi | 14037 fi |
14028 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi | 14038 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi |
14029 cat > conftest.$ac_ext <<EOF | 14039 cat > conftest.$ac_ext <<EOF |
14030 #line 14031 "configure" | 14040 #line 14041 "configure" |
14031 #include "confdefs.h" | 14041 #include "confdefs.h" |
14032 #include <audio/Xtutil.h> | 14042 #include <audio/Xtutil.h> |
14033 EOF | 14043 EOF |
14034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 14044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14035 egrep "AuXtErrorJump" >/dev/null 2>&1; then | 14045 egrep "AuXtErrorJump" >/dev/null 2>&1; then |
14056 | 14066 |
14057 if test "$with_esd_sound" != "no"; then | 14067 if test "$with_esd_sound" != "no"; then |
14058 # Extract the first word of "esd-config", so it can be a program name with args. | 14068 # Extract the first word of "esd-config", so it can be a program name with args. |
14059 set dummy esd-config; ac_word=$2 | 14069 set dummy esd-config; ac_word=$2 |
14060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 14070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
14061 echo "configure:14062: checking for $ac_word" >&5 | 14071 echo "configure:14072: checking for $ac_word" >&5 |
14062 | 14072 |
14063 if test -n "$have_esd_config"; then | 14073 if test -n "$have_esd_config"; then |
14064 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. | 14074 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. |
14065 else | 14075 else |
14066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 14076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
14085 if test "$have_esd_config" = "yes"; then | 14095 if test "$have_esd_config" = "yes"; then |
14086 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" | 14096 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" |
14087 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi | 14097 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi |
14088 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi | 14098 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi |
14089 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 | 14099 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 |
14090 echo "configure:14091: checking for esd_play_stream" >&5 | 14100 echo "configure:14101: checking for esd_play_stream" >&5 |
14091 | 14101 |
14092 cat > conftest.$ac_ext <<EOF | 14102 cat > conftest.$ac_ext <<EOF |
14093 #line 14094 "configure" | 14103 #line 14104 "configure" |
14094 #include "confdefs.h" | 14104 #include "confdefs.h" |
14095 /* System header to define __stub macros and hopefully few prototypes, | 14105 /* System header to define __stub macros and hopefully few prototypes, |
14096 which can conflict with char esd_play_stream(); below. */ | 14106 which can conflict with char esd_play_stream(); below. */ |
14097 #include <assert.h> | 14107 #include <assert.h> |
14098 /* Override any gcc2 internal prototype to avoid an error. */ | 14108 /* Override any gcc2 internal prototype to avoid an error. */ |
14111 esd_play_stream(); | 14121 esd_play_stream(); |
14112 #endif | 14122 #endif |
14113 | 14123 |
14114 ; return 0; } | 14124 ; return 0; } |
14115 EOF | 14125 EOF |
14116 if { (eval echo configure:14117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14126 if { (eval echo configure:14127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14117 rm -rf conftest* | 14127 rm -rf conftest* |
14118 eval "ac_cv_func_esd_play_stream=yes" | 14128 eval "ac_cv_func_esd_play_stream=yes" |
14119 else | 14129 else |
14120 echo "configure: failed program was:" >&5 | 14130 echo "configure: failed program was:" >&5 |
14121 cat conftest.$ac_ext >&5 | 14131 cat conftest.$ac_ext >&5 |
14162 | 14172 |
14163 test -z "$with_tty" && with_tty=yes | 14173 test -z "$with_tty" && with_tty=yes |
14164 | 14174 |
14165 if test "$with_tty" = "yes" ; then | 14175 if test "$with_tty" = "yes" ; then |
14166 echo "checking for TTY-related features" 1>&6 | 14176 echo "checking for TTY-related features" 1>&6 |
14167 echo "configure:14168: checking for TTY-related features" >&5 | 14177 echo "configure:14178: checking for TTY-related features" >&5 |
14168 { test "$extra_verbose" = "yes" && cat << \EOF | 14178 { test "$extra_verbose" = "yes" && cat << \EOF |
14169 Defining HAVE_TTY | 14179 Defining HAVE_TTY |
14170 EOF | 14180 EOF |
14171 cat >> confdefs.h <<\EOF | 14181 cat >> confdefs.h <<\EOF |
14172 #define HAVE_TTY 1 | 14182 #define HAVE_TTY 1 |
14175 | 14185 |
14176 | 14186 |
14177 if test -z "$with_ncurses"; then | 14187 if test -z "$with_ncurses"; then |
14178 | 14188 |
14179 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 | 14189 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 |
14180 echo "configure:14181: checking for tgetent in -lncurses" >&5 | 14190 echo "configure:14191: checking for tgetent in -lncurses" >&5 |
14181 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` | 14191 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
14182 | 14192 |
14183 xe_check_libs=" -lncurses " | 14193 xe_check_libs=" -lncurses " |
14184 cat > conftest.$ac_ext <<EOF | 14194 cat > conftest.$ac_ext <<EOF |
14185 #line 14186 "configure" | 14195 #line 14196 "configure" |
14186 #include "confdefs.h" | 14196 #include "confdefs.h" |
14187 /* Override any gcc2 internal prototype to avoid an error. */ | 14197 /* Override any gcc2 internal prototype to avoid an error. */ |
14188 /* We use char because int might match the return type of a gcc2 | 14198 /* We use char because int might match the return type of a gcc2 |
14189 builtin and then its argument prototype would still apply. */ | 14199 builtin and then its argument prototype would still apply. */ |
14190 char tgetent(); | 14200 char tgetent(); |
14191 | 14201 |
14192 int main() { | 14202 int main() { |
14193 tgetent() | 14203 tgetent() |
14194 ; return 0; } | 14204 ; return 0; } |
14195 EOF | 14205 EOF |
14196 if { (eval echo configure:14197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14206 if { (eval echo configure:14207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14197 rm -rf conftest* | 14207 rm -rf conftest* |
14198 eval "ac_cv_lib_$ac_lib_var=yes" | 14208 eval "ac_cv_lib_$ac_lib_var=yes" |
14199 else | 14209 else |
14200 echo "configure: failed program was:" >&5 | 14210 echo "configure: failed program was:" >&5 |
14201 cat conftest.$ac_ext >&5 | 14211 cat conftest.$ac_ext >&5 |
14224 EOF | 14234 EOF |
14225 } | 14235 } |
14226 | 14236 |
14227 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 14237 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
14228 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 14238 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
14229 echo "configure:14230: checking for ncurses/curses.h" >&5 | 14239 echo "configure:14240: checking for ncurses/curses.h" >&5 |
14230 | 14240 |
14231 cat > conftest.$ac_ext <<EOF | 14241 cat > conftest.$ac_ext <<EOF |
14232 #line 14233 "configure" | 14242 #line 14243 "configure" |
14233 #include "confdefs.h" | 14243 #include "confdefs.h" |
14234 #include <ncurses/curses.h> | 14244 #include <ncurses/curses.h> |
14235 EOF | 14245 EOF |
14236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14237 { (eval echo configure:14238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14247 { (eval echo configure:14248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14239 if test -z "$ac_err"; then | 14249 if test -z "$ac_err"; then |
14240 rm -rf conftest* | 14250 rm -rf conftest* |
14241 eval "ac_cv_header_$ac_safe=yes" | 14251 eval "ac_cv_header_$ac_safe=yes" |
14242 else | 14252 else |
14254 echo "$ac_t""no" 1>&6 | 14264 echo "$ac_t""no" 1>&6 |
14255 fi | 14265 fi |
14256 | 14266 |
14257 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` | 14267 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` |
14258 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 | 14268 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 |
14259 echo "configure:14260: checking for ncurses/term.h" >&5 | 14269 echo "configure:14270: checking for ncurses/term.h" >&5 |
14260 | 14270 |
14261 cat > conftest.$ac_ext <<EOF | 14271 cat > conftest.$ac_ext <<EOF |
14262 #line 14263 "configure" | 14272 #line 14273 "configure" |
14263 #include "confdefs.h" | 14273 #include "confdefs.h" |
14264 #include <ncurses/term.h> | 14274 #include <ncurses/term.h> |
14265 EOF | 14275 EOF |
14266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14267 { (eval echo configure:14268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14277 { (eval echo configure:14278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14269 if test -z "$ac_err"; then | 14279 if test -z "$ac_err"; then |
14270 rm -rf conftest* | 14280 rm -rf conftest* |
14271 eval "ac_cv_header_$ac_safe=yes" | 14281 eval "ac_cv_header_$ac_safe=yes" |
14272 else | 14282 else |
14292 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then | 14302 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then |
14293 save_c_switch_site="$c_switch_site" | 14303 save_c_switch_site="$c_switch_site" |
14294 c_switch_site="$c_switch_site -I/usr/include/ncurses" | 14304 c_switch_site="$c_switch_site -I/usr/include/ncurses" |
14295 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 14305 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
14296 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 14306 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
14297 echo "configure:14298: checking for ncurses/curses.h" >&5 | 14307 echo "configure:14308: checking for ncurses/curses.h" >&5 |
14298 | 14308 |
14299 cat > conftest.$ac_ext <<EOF | 14309 cat > conftest.$ac_ext <<EOF |
14300 #line 14301 "configure" | 14310 #line 14311 "configure" |
14301 #include "confdefs.h" | 14311 #include "confdefs.h" |
14302 #include <ncurses/curses.h> | 14312 #include <ncurses/curses.h> |
14303 EOF | 14313 EOF |
14304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14305 { (eval echo configure:14306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14315 { (eval echo configure:14316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14307 if test -z "$ac_err"; then | 14317 if test -z "$ac_err"; then |
14308 rm -rf conftest* | 14318 rm -rf conftest* |
14309 eval "ac_cv_header_$ac_safe=yes" | 14319 eval "ac_cv_header_$ac_safe=yes" |
14310 else | 14320 else |
14335 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | 14345 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
14336 else | 14346 else |
14337 for lib in curses termlib termcap; do | 14347 for lib in curses termlib termcap; do |
14338 | 14348 |
14339 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 | 14349 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 |
14340 echo "configure:14341: checking for tgetent in -l$lib" >&5 | 14350 echo "configure:14351: checking for tgetent in -l$lib" >&5 |
14341 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` | 14351 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` |
14342 | 14352 |
14343 xe_check_libs=" -l$lib " | 14353 xe_check_libs=" -l$lib " |
14344 cat > conftest.$ac_ext <<EOF | 14354 cat > conftest.$ac_ext <<EOF |
14345 #line 14346 "configure" | 14355 #line 14356 "configure" |
14346 #include "confdefs.h" | 14356 #include "confdefs.h" |
14347 /* Override any gcc2 internal prototype to avoid an error. */ | 14357 /* Override any gcc2 internal prototype to avoid an error. */ |
14348 /* We use char because int might match the return type of a gcc2 | 14358 /* We use char because int might match the return type of a gcc2 |
14349 builtin and then its argument prototype would still apply. */ | 14359 builtin and then its argument prototype would still apply. */ |
14350 char tgetent(); | 14360 char tgetent(); |
14351 | 14361 |
14352 int main() { | 14362 int main() { |
14353 tgetent() | 14363 tgetent() |
14354 ; return 0; } | 14364 ; return 0; } |
14355 EOF | 14365 EOF |
14356 if { (eval echo configure:14357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14366 if { (eval echo configure:14367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14357 rm -rf conftest* | 14367 rm -rf conftest* |
14358 eval "ac_cv_lib_$ac_lib_var=yes" | 14368 eval "ac_cv_lib_$ac_lib_var=yes" |
14359 else | 14369 else |
14360 echo "configure: failed program was:" >&5 | 14370 echo "configure: failed program was:" >&5 |
14361 cat conftest.$ac_ext >&5 | 14371 cat conftest.$ac_ext >&5 |
14382 if test -n "$libs_termcap"; then | 14392 if test -n "$libs_termcap"; then |
14383 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | 14393 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
14384 else | 14394 else |
14385 | 14395 |
14386 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 | 14396 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 |
14387 echo "configure:14388: checking for tgetent in -lcurses" >&5 | 14397 echo "configure:14398: checking for tgetent in -lcurses" >&5 |
14388 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` | 14398 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
14389 | 14399 |
14390 xe_check_libs=" -lcurses " | 14400 xe_check_libs=" -lcurses " |
14391 cat > conftest.$ac_ext <<EOF | 14401 cat > conftest.$ac_ext <<EOF |
14392 #line 14393 "configure" | 14402 #line 14403 "configure" |
14393 #include "confdefs.h" | 14403 #include "confdefs.h" |
14394 /* Override any gcc2 internal prototype to avoid an error. */ | 14404 /* Override any gcc2 internal prototype to avoid an error. */ |
14395 /* We use char because int might match the return type of a gcc2 | 14405 /* We use char because int might match the return type of a gcc2 |
14396 builtin and then its argument prototype would still apply. */ | 14406 builtin and then its argument prototype would still apply. */ |
14397 char tgetent(); | 14407 char tgetent(); |
14398 | 14408 |
14399 int main() { | 14409 int main() { |
14400 tgetent() | 14410 tgetent() |
14401 ; return 0; } | 14411 ; return 0; } |
14402 EOF | 14412 EOF |
14403 if { (eval echo configure:14404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14413 if { (eval echo configure:14414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14404 rm -rf conftest* | 14414 rm -rf conftest* |
14405 eval "ac_cv_lib_$ac_lib_var=yes" | 14415 eval "ac_cv_lib_$ac_lib_var=yes" |
14406 else | 14416 else |
14407 echo "configure: failed program was:" >&5 | 14417 echo "configure: failed program was:" >&5 |
14408 cat conftest.$ac_ext >&5 | 14418 cat conftest.$ac_ext >&5 |
14416 echo "$ac_t""yes" 1>&6 | 14426 echo "$ac_t""yes" 1>&6 |
14417 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi | 14427 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi |
14418 else | 14428 else |
14419 echo "$ac_t""no" 1>&6 | 14429 echo "$ac_t""no" 1>&6 |
14420 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 | 14430 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
14421 echo "configure:14422: checking for tgetent in -ltermcap" >&5 | 14431 echo "configure:14432: checking for tgetent in -ltermcap" >&5 |
14422 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` | 14432 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
14423 | 14433 |
14424 xe_check_libs=" -ltermcap " | 14434 xe_check_libs=" -ltermcap " |
14425 cat > conftest.$ac_ext <<EOF | 14435 cat > conftest.$ac_ext <<EOF |
14426 #line 14427 "configure" | 14436 #line 14437 "configure" |
14427 #include "confdefs.h" | 14437 #include "confdefs.h" |
14428 /* Override any gcc2 internal prototype to avoid an error. */ | 14438 /* Override any gcc2 internal prototype to avoid an error. */ |
14429 /* We use char because int might match the return type of a gcc2 | 14439 /* We use char because int might match the return type of a gcc2 |
14430 builtin and then its argument prototype would still apply. */ | 14440 builtin and then its argument prototype would still apply. */ |
14431 char tgetent(); | 14441 char tgetent(); |
14432 | 14442 |
14433 int main() { | 14443 int main() { |
14434 tgetent() | 14444 tgetent() |
14435 ; return 0; } | 14445 ; return 0; } |
14436 EOF | 14446 EOF |
14437 if { (eval echo configure:14438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14447 if { (eval echo configure:14448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14438 rm -rf conftest* | 14448 rm -rf conftest* |
14439 eval "ac_cv_lib_$ac_lib_var=yes" | 14449 eval "ac_cv_lib_$ac_lib_var=yes" |
14440 else | 14450 else |
14441 echo "configure: failed program was:" >&5 | 14451 echo "configure: failed program was:" >&5 |
14442 cat conftest.$ac_ext >&5 | 14452 cat conftest.$ac_ext >&5 |
14480 } | 14490 } |
14481 | 14491 |
14482 | 14492 |
14483 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` | 14493 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` |
14484 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 | 14494 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 |
14485 echo "configure:14486: checking for gpm.h" >&5 | 14495 echo "configure:14496: checking for gpm.h" >&5 |
14486 | 14496 |
14487 cat > conftest.$ac_ext <<EOF | 14497 cat > conftest.$ac_ext <<EOF |
14488 #line 14489 "configure" | 14498 #line 14499 "configure" |
14489 #include "confdefs.h" | 14499 #include "confdefs.h" |
14490 #include <gpm.h> | 14500 #include <gpm.h> |
14491 EOF | 14501 EOF |
14492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14493 { (eval echo configure:14494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14503 { (eval echo configure:14504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14495 if test -z "$ac_err"; then | 14505 if test -z "$ac_err"; then |
14496 rm -rf conftest* | 14506 rm -rf conftest* |
14497 eval "ac_cv_header_$ac_safe=yes" | 14507 eval "ac_cv_header_$ac_safe=yes" |
14498 else | 14508 else |
14511 with_gpm=no | 14521 with_gpm=no |
14512 fi | 14522 fi |
14513 } | 14523 } |
14514 test -z "$with_gpm" && { | 14524 test -z "$with_gpm" && { |
14515 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 | 14525 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 |
14516 echo "configure:14517: checking for Gpm_Open in -lgpm" >&5 | 14526 echo "configure:14527: checking for Gpm_Open in -lgpm" >&5 |
14517 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` | 14527 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` |
14518 | 14528 |
14519 xe_check_libs=" -lgpm " | 14529 xe_check_libs=" -lgpm " |
14520 cat > conftest.$ac_ext <<EOF | 14530 cat > conftest.$ac_ext <<EOF |
14521 #line 14522 "configure" | 14531 #line 14532 "configure" |
14522 #include "confdefs.h" | 14532 #include "confdefs.h" |
14523 /* Override any gcc2 internal prototype to avoid an error. */ | 14533 /* Override any gcc2 internal prototype to avoid an error. */ |
14524 /* We use char because int might match the return type of a gcc2 | 14534 /* We use char because int might match the return type of a gcc2 |
14525 builtin and then its argument prototype would still apply. */ | 14535 builtin and then its argument prototype would still apply. */ |
14526 char Gpm_Open(); | 14536 char Gpm_Open(); |
14527 | 14537 |
14528 int main() { | 14538 int main() { |
14529 Gpm_Open() | 14539 Gpm_Open() |
14530 ; return 0; } | 14540 ; return 0; } |
14531 EOF | 14541 EOF |
14532 if { (eval echo configure:14533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14542 if { (eval echo configure:14543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14533 rm -rf conftest* | 14543 rm -rf conftest* |
14534 eval "ac_cv_lib_$ac_lib_var=yes" | 14544 eval "ac_cv_lib_$ac_lib_var=yes" |
14535 else | 14545 else |
14536 echo "configure: failed program was:" >&5 | 14546 echo "configure: failed program was:" >&5 |
14537 cat conftest.$ac_ext >&5 | 14547 cat conftest.$ac_ext >&5 |
14570 done | 14580 done |
14571 fi | 14581 fi |
14572 | 14582 |
14573 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ | 14583 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ |
14574 != "no no no" && echo "checking for database support" 1>&6 | 14584 != "no no no" && echo "checking for database support" 1>&6 |
14575 echo "configure:14576: checking for database support" >&5 | 14585 echo "configure:14586: checking for database support" >&5 |
14576 | 14586 |
14577 if test "$with_database_gdbm $with_database_dbm" != "no no"; then | 14587 if test "$with_database_gdbm $with_database_dbm" != "no no"; then |
14578 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` | 14588 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` |
14579 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 | 14589 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 |
14580 echo "configure:14581: checking for ndbm.h" >&5 | 14590 echo "configure:14591: checking for ndbm.h" >&5 |
14581 | 14591 |
14582 cat > conftest.$ac_ext <<EOF | 14592 cat > conftest.$ac_ext <<EOF |
14583 #line 14584 "configure" | 14593 #line 14594 "configure" |
14584 #include "confdefs.h" | 14594 #include "confdefs.h" |
14585 #include <ndbm.h> | 14595 #include <ndbm.h> |
14586 EOF | 14596 EOF |
14587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14588 { (eval echo configure:14589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14598 { (eval echo configure:14599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14590 if test -z "$ac_err"; then | 14600 if test -z "$ac_err"; then |
14591 rm -rf conftest* | 14601 rm -rf conftest* |
14592 eval "ac_cv_header_$ac_safe=yes" | 14602 eval "ac_cv_header_$ac_safe=yes" |
14593 else | 14603 else |
14613 fi | 14623 fi |
14614 | 14624 |
14615 if test "$with_database_gdbm" != "no"; then | 14625 if test "$with_database_gdbm" != "no"; then |
14616 | 14626 |
14617 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 | 14627 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 |
14618 echo "configure:14619: checking for dbm_open in -lgdbm" >&5 | 14628 echo "configure:14629: checking for dbm_open in -lgdbm" >&5 |
14619 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` | 14629 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` |
14620 | 14630 |
14621 xe_check_libs=" -lgdbm " | 14631 xe_check_libs=" -lgdbm " |
14622 cat > conftest.$ac_ext <<EOF | 14632 cat > conftest.$ac_ext <<EOF |
14623 #line 14624 "configure" | 14633 #line 14634 "configure" |
14624 #include "confdefs.h" | 14634 #include "confdefs.h" |
14625 /* Override any gcc2 internal prototype to avoid an error. */ | 14635 /* Override any gcc2 internal prototype to avoid an error. */ |
14626 /* We use char because int might match the return type of a gcc2 | 14636 /* We use char because int might match the return type of a gcc2 |
14627 builtin and then its argument prototype would still apply. */ | 14637 builtin and then its argument prototype would still apply. */ |
14628 char dbm_open(); | 14638 char dbm_open(); |
14629 | 14639 |
14630 int main() { | 14640 int main() { |
14631 dbm_open() | 14641 dbm_open() |
14632 ; return 0; } | 14642 ; return 0; } |
14633 EOF | 14643 EOF |
14634 if { (eval echo configure:14635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14644 if { (eval echo configure:14645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14635 rm -rf conftest* | 14645 rm -rf conftest* |
14636 eval "ac_cv_lib_$ac_lib_var=yes" | 14646 eval "ac_cv_lib_$ac_lib_var=yes" |
14637 else | 14647 else |
14638 echo "configure: failed program was:" >&5 | 14648 echo "configure: failed program was:" >&5 |
14639 cat conftest.$ac_ext >&5 | 14649 cat conftest.$ac_ext >&5 |
14657 | 14667 |
14658 fi | 14668 fi |
14659 | 14669 |
14660 if test "$with_database_dbm" != "no"; then | 14670 if test "$with_database_dbm" != "no"; then |
14661 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | 14671 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 |
14662 echo "configure:14663: checking for dbm_open" >&5 | 14672 echo "configure:14673: checking for dbm_open" >&5 |
14663 | 14673 |
14664 cat > conftest.$ac_ext <<EOF | 14674 cat > conftest.$ac_ext <<EOF |
14665 #line 14666 "configure" | 14675 #line 14676 "configure" |
14666 #include "confdefs.h" | 14676 #include "confdefs.h" |
14667 /* System header to define __stub macros and hopefully few prototypes, | 14677 /* System header to define __stub macros and hopefully few prototypes, |
14668 which can conflict with char dbm_open(); below. */ | 14678 which can conflict with char dbm_open(); below. */ |
14669 #include <assert.h> | 14679 #include <assert.h> |
14670 /* Override any gcc2 internal prototype to avoid an error. */ | 14680 /* Override any gcc2 internal prototype to avoid an error. */ |
14683 dbm_open(); | 14693 dbm_open(); |
14684 #endif | 14694 #endif |
14685 | 14695 |
14686 ; return 0; } | 14696 ; return 0; } |
14687 EOF | 14697 EOF |
14688 if { (eval echo configure:14689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14698 if { (eval echo configure:14699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14689 rm -rf conftest* | 14699 rm -rf conftest* |
14690 eval "ac_cv_func_dbm_open=yes" | 14700 eval "ac_cv_func_dbm_open=yes" |
14691 else | 14701 else |
14692 echo "configure: failed program was:" >&5 | 14702 echo "configure: failed program was:" >&5 |
14693 cat conftest.$ac_ext >&5 | 14703 cat conftest.$ac_ext >&5 |
14702 else | 14712 else |
14703 echo "$ac_t""no" 1>&6 | 14713 echo "$ac_t""no" 1>&6 |
14704 | 14714 |
14705 | 14715 |
14706 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 | 14716 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 |
14707 echo "configure:14708: checking for dbm_open in -ldbm" >&5 | 14717 echo "configure:14718: checking for dbm_open in -ldbm" >&5 |
14708 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` | 14718 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` |
14709 | 14719 |
14710 xe_check_libs=" -ldbm " | 14720 xe_check_libs=" -ldbm " |
14711 cat > conftest.$ac_ext <<EOF | 14721 cat > conftest.$ac_ext <<EOF |
14712 #line 14713 "configure" | 14722 #line 14723 "configure" |
14713 #include "confdefs.h" | 14723 #include "confdefs.h" |
14714 /* Override any gcc2 internal prototype to avoid an error. */ | 14724 /* Override any gcc2 internal prototype to avoid an error. */ |
14715 /* We use char because int might match the return type of a gcc2 | 14725 /* We use char because int might match the return type of a gcc2 |
14716 builtin and then its argument prototype would still apply. */ | 14726 builtin and then its argument prototype would still apply. */ |
14717 char dbm_open(); | 14727 char dbm_open(); |
14718 | 14728 |
14719 int main() { | 14729 int main() { |
14720 dbm_open() | 14730 dbm_open() |
14721 ; return 0; } | 14731 ; return 0; } |
14722 EOF | 14732 EOF |
14723 if { (eval echo configure:14724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14733 if { (eval echo configure:14734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14724 rm -rf conftest* | 14734 rm -rf conftest* |
14725 eval "ac_cv_lib_$ac_lib_var=yes" | 14735 eval "ac_cv_lib_$ac_lib_var=yes" |
14726 else | 14736 else |
14727 echo "configure: failed program was:" >&5 | 14737 echo "configure: failed program was:" >&5 |
14728 cat conftest.$ac_ext >&5 | 14738 cat conftest.$ac_ext >&5 |
14759 } | 14769 } |
14760 | 14770 |
14761 | 14771 |
14762 if test "$with_database_berkdb" != "no"; then | 14772 if test "$with_database_berkdb" != "no"; then |
14763 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 | 14773 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 |
14764 echo "configure:14765: checking for Berkeley db.h" >&5 | 14774 echo "configure:14775: checking for Berkeley db.h" >&5 |
14765 for header in "db/db.h" "db.h"; do | 14775 for header in "db/db.h" "db.h"; do |
14766 cat > conftest.$ac_ext <<EOF | 14776 cat > conftest.$ac_ext <<EOF |
14767 #line 14768 "configure" | 14777 #line 14778 "configure" |
14768 #include "confdefs.h" | 14778 #include "confdefs.h" |
14769 | 14779 |
14770 #include <stdlib.h> | 14780 #include <stdlib.h> |
14771 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) | 14781 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) |
14772 #ifdef HAVE_INTTYPES_H | 14782 #ifdef HAVE_INTTYPES_H |
14784 | 14794 |
14785 int main() { | 14795 int main() { |
14786 | 14796 |
14787 ; return 0; } | 14797 ; return 0; } |
14788 EOF | 14798 EOF |
14789 if { (eval echo configure:14790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 14799 if { (eval echo configure:14800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
14790 rm -rf conftest* | 14800 rm -rf conftest* |
14791 db_h_file="$header"; break | 14801 db_h_file="$header"; break |
14792 else | 14802 else |
14793 echo "configure: failed program was:" >&5 | 14803 echo "configure: failed program was:" >&5 |
14794 cat conftest.$ac_ext >&5 | 14804 cat conftest.$ac_ext >&5 |
14800 else echo "$ac_t""$db_h_file" 1>&6 | 14810 else echo "$ac_t""$db_h_file" 1>&6 |
14801 fi | 14811 fi |
14802 | 14812 |
14803 if test "$with_database_berkdb" != "no"; then | 14813 if test "$with_database_berkdb" != "no"; then |
14804 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 | 14814 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 |
14805 echo "configure:14806: checking for Berkeley DB version" >&5 | 14815 echo "configure:14816: checking for Berkeley DB version" >&5 |
14806 cat > conftest.$ac_ext <<EOF | 14816 cat > conftest.$ac_ext <<EOF |
14807 #line 14808 "configure" | 14817 #line 14818 "configure" |
14808 #include "confdefs.h" | 14818 #include "confdefs.h" |
14809 #include <$db_h_file> | 14819 #include <$db_h_file> |
14810 #if DB_VERSION_MAJOR > 1 | 14820 #if DB_VERSION_MAJOR > 1 |
14811 yes | 14821 yes |
14812 #endif | 14822 #endif |
14814 EOF | 14824 EOF |
14815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 14825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14816 egrep "yes" >/dev/null 2>&1; then | 14826 egrep "yes" >/dev/null 2>&1; then |
14817 rm -rf conftest* | 14827 rm -rf conftest* |
14818 cat > conftest.$ac_ext <<EOF | 14828 cat > conftest.$ac_ext <<EOF |
14819 #line 14820 "configure" | 14829 #line 14830 "configure" |
14820 #include "confdefs.h" | 14830 #include "confdefs.h" |
14821 #include <$db_h_file> | 14831 #include <$db_h_file> |
14822 #if DB_VERSION_MAJOR > 2 | 14832 #if DB_VERSION_MAJOR > 2 |
14823 yes | 14833 yes |
14824 #endif | 14834 #endif |
14841 echo "$ac_t""1" 1>&6; dbfunc=dbopen | 14851 echo "$ac_t""1" 1>&6; dbfunc=dbopen |
14842 fi | 14852 fi |
14843 rm -f conftest* | 14853 rm -f conftest* |
14844 | 14854 |
14845 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 | 14855 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 |
14846 echo "configure:14847: checking for $dbfunc" >&5 | 14856 echo "configure:14857: checking for $dbfunc" >&5 |
14847 | 14857 |
14848 cat > conftest.$ac_ext <<EOF | 14858 cat > conftest.$ac_ext <<EOF |
14849 #line 14850 "configure" | 14859 #line 14860 "configure" |
14850 #include "confdefs.h" | 14860 #include "confdefs.h" |
14851 /* System header to define __stub macros and hopefully few prototypes, | 14861 /* System header to define __stub macros and hopefully few prototypes, |
14852 which can conflict with char $dbfunc(); below. */ | 14862 which can conflict with char $dbfunc(); below. */ |
14853 #include <assert.h> | 14863 #include <assert.h> |
14854 /* Override any gcc2 internal prototype to avoid an error. */ | 14864 /* Override any gcc2 internal prototype to avoid an error. */ |
14867 $dbfunc(); | 14877 $dbfunc(); |
14868 #endif | 14878 #endif |
14869 | 14879 |
14870 ; return 0; } | 14880 ; return 0; } |
14871 EOF | 14881 EOF |
14872 if { (eval echo configure:14873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14882 if { (eval echo configure:14883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14873 rm -rf conftest* | 14883 rm -rf conftest* |
14874 eval "ac_cv_func_$dbfunc=yes" | 14884 eval "ac_cv_func_$dbfunc=yes" |
14875 else | 14885 else |
14876 echo "configure: failed program was:" >&5 | 14886 echo "configure: failed program was:" >&5 |
14877 cat conftest.$ac_ext >&5 | 14887 cat conftest.$ac_ext >&5 |
14886 else | 14896 else |
14887 echo "$ac_t""no" 1>&6 | 14897 echo "$ac_t""no" 1>&6 |
14888 | 14898 |
14889 | 14899 |
14890 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 | 14900 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 |
14891 echo "configure:14892: checking for $dbfunc in -ldb" >&5 | 14901 echo "configure:14902: checking for $dbfunc in -ldb" >&5 |
14892 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` | 14902 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` |
14893 | 14903 |
14894 xe_check_libs=" -ldb " | 14904 xe_check_libs=" -ldb " |
14895 cat > conftest.$ac_ext <<EOF | 14905 cat > conftest.$ac_ext <<EOF |
14896 #line 14897 "configure" | 14906 #line 14907 "configure" |
14897 #include "confdefs.h" | 14907 #include "confdefs.h" |
14898 /* Override any gcc2 internal prototype to avoid an error. */ | 14908 /* Override any gcc2 internal prototype to avoid an error. */ |
14899 /* We use char because int might match the return type of a gcc2 | 14909 /* We use char because int might match the return type of a gcc2 |
14900 builtin and then its argument prototype would still apply. */ | 14910 builtin and then its argument prototype would still apply. */ |
14901 char $dbfunc(); | 14911 char $dbfunc(); |
14902 | 14912 |
14903 int main() { | 14913 int main() { |
14904 $dbfunc() | 14914 $dbfunc() |
14905 ; return 0; } | 14915 ; return 0; } |
14906 EOF | 14916 EOF |
14907 if { (eval echo configure:14908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14917 if { (eval echo configure:14918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14908 rm -rf conftest* | 14918 rm -rf conftest* |
14909 eval "ac_cv_lib_$ac_lib_var=yes" | 14919 eval "ac_cv_lib_$ac_lib_var=yes" |
14910 else | 14920 else |
14911 echo "configure: failed program was:" >&5 | 14921 echo "configure: failed program was:" >&5 |
14912 cat conftest.$ac_ext >&5 | 14922 cat conftest.$ac_ext >&5 |
14963 fi | 14973 fi |
14964 | 14974 |
14965 if test "$with_socks" = "yes"; then | 14975 if test "$with_socks" = "yes"; then |
14966 | 14976 |
14967 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 | 14977 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 |
14968 echo "configure:14969: checking for SOCKSinit in -lsocks" >&5 | 14978 echo "configure:14979: checking for SOCKSinit in -lsocks" >&5 |
14969 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` | 14979 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` |
14970 | 14980 |
14971 xe_check_libs=" -lsocks " | 14981 xe_check_libs=" -lsocks " |
14972 cat > conftest.$ac_ext <<EOF | 14982 cat > conftest.$ac_ext <<EOF |
14973 #line 14974 "configure" | 14983 #line 14984 "configure" |
14974 #include "confdefs.h" | 14984 #include "confdefs.h" |
14975 /* Override any gcc2 internal prototype to avoid an error. */ | 14985 /* Override any gcc2 internal prototype to avoid an error. */ |
14976 /* We use char because int might match the return type of a gcc2 | 14986 /* We use char because int might match the return type of a gcc2 |
14977 builtin and then its argument prototype would still apply. */ | 14987 builtin and then its argument prototype would still apply. */ |
14978 char SOCKSinit(); | 14988 char SOCKSinit(); |
14979 | 14989 |
14980 int main() { | 14990 int main() { |
14981 SOCKSinit() | 14991 SOCKSinit() |
14982 ; return 0; } | 14992 ; return 0; } |
14983 EOF | 14993 EOF |
14984 if { (eval echo configure:14985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14994 if { (eval echo configure:14995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14985 rm -rf conftest* | 14995 rm -rf conftest* |
14986 eval "ac_cv_lib_$ac_lib_var=yes" | 14996 eval "ac_cv_lib_$ac_lib_var=yes" |
14987 else | 14997 else |
14988 echo "configure: failed program was:" >&5 | 14998 echo "configure: failed program was:" >&5 |
14989 cat conftest.$ac_ext >&5 | 14999 cat conftest.$ac_ext >&5 |
15033 | 15043 |
15034 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi | 15044 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi |
15035 fi | 15045 fi |
15036 | 15046 |
15037 cat > conftest.$ac_ext <<EOF | 15047 cat > conftest.$ac_ext <<EOF |
15038 #line 15039 "configure" | 15048 #line 15049 "configure" |
15039 #include "confdefs.h" | 15049 #include "confdefs.h" |
15040 int main(int c,char *v[]){return 0;} | 15050 int main(int c,char *v[]){return 0;} |
15041 EOF | 15051 EOF |
15042 if { (eval echo configure:15043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 15052 if { (eval echo configure:15053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
15043 then | 15053 then |
15044 : | 15054 : |
15045 else | 15055 else |
15046 conftest_rc="$?" | 15056 conftest_rc="$?" |
15047 echo "configure: failed program was:" >&5 | 15057 echo "configure: failed program was:" >&5 |