comparison configure @ 213:78f53ef88e17 r20-4b5

Import from CVS: tag r20-4b5
author cvs
date Mon, 13 Aug 2007 10:06:47 +0200
parents 78478c60bfcd
children 1f0dabaa0855
comparison
equal deleted inserted replaced
212:d8688acf4c5b 213:78f53ef88e17
7578 7578
7579 fi 7579 fi
7580 rm -f conftest* 7580 rm -f conftest*
7581 fi 7581 fi
7582 7582
7583 echo $ac_n "checking whether the timezone variable is already declared""... $ac_c" 1>&6
7584 echo "configure:7585: checking whether the timezone variable is already declared" >&5
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588
7589 #ifdef TIME_WITH_SYS_TIME
7590 #include <sys/time.h>
7591 #include <time.h>
7592 #else
7593 #ifdef HAVE_SYS_TIME_H
7594 #include <sys/time.h>
7595 #else
7596 #include <time.h>
7597 #endif
7598 #endif
7599
7600 int main() {
7601
7602 timezone = 0;
7603
7604 ; return 0; }
7605 EOF
7606 if { (eval echo configure:7607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7607 rm -rf conftest*
7608 echo "$ac_t""yes" 1>&6
7609 { test "$extra_verbose" = "yes" && cat << \EOF
7610 Defining HAVE_TIMEZONE_DECL
7611 EOF
7612 cat >> confdefs.h <<\EOF
7613 #define HAVE_TIMEZONE_DECL 1
7614 EOF
7615 }
7616
7617 else
7618 echo "configure: failed program was:" >&5
7619 cat conftest.$ac_ext >&5
7620 rm -rf conftest*
7621 echo "$ac_t""no" 1>&6
7622 fi
7623 rm -f conftest*
7624
7625
7626 7583
7627 echo $ac_n "checking for inline""... $ac_c" 1>&6 7584 echo $ac_n "checking for inline""... $ac_c" 1>&6
7628 echo "configure:7629: checking for inline" >&5 7585 echo "configure:7586: checking for inline" >&5
7629 7586
7630 ac_cv_c_inline=no 7587 ac_cv_c_inline=no
7631 for ac_kw in inline __inline__ __inline; do 7588 for ac_kw in inline __inline__ __inline; do
7632 cat > conftest.$ac_ext <<EOF 7589 cat > conftest.$ac_ext <<EOF
7633 #line 7634 "configure" 7590 #line 7591 "configure"
7634 #include "confdefs.h" 7591 #include "confdefs.h"
7635 7592
7636 int main() { 7593 int main() {
7637 } $ac_kw foo() { 7594 } $ac_kw foo() {
7638 ; return 0; } 7595 ; return 0; }
7639 EOF 7596 EOF
7640 if { (eval echo configure:7641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7597 if { (eval echo configure:7598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7641 rm -rf conftest* 7598 rm -rf conftest*
7642 ac_cv_c_inline=$ac_kw; break 7599 ac_cv_c_inline=$ac_kw; break
7643 else 7600 else
7644 echo "configure: failed program was:" >&5 7601 echo "configure: failed program was:" >&5
7645 cat conftest.$ac_ext >&5 7602 cat conftest.$ac_ext >&5
7685 7642
7686 7643
7687 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7644 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7688 # for constant arguments. Useless! 7645 # for constant arguments. Useless!
7689 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7646 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7690 echo "configure:7691: checking for working alloca.h" >&5 7647 echo "configure:7648: checking for working alloca.h" >&5
7691 7648
7692 cat > conftest.$ac_ext <<EOF 7649 cat > conftest.$ac_ext <<EOF
7693 #line 7694 "configure" 7650 #line 7651 "configure"
7694 #include "confdefs.h" 7651 #include "confdefs.h"
7695 #include <alloca.h> 7652 #include <alloca.h>
7696 int main() { 7653 int main() {
7697 char *p = alloca(2 * sizeof(int)); 7654 char *p = alloca(2 * sizeof(int));
7698 ; return 0; } 7655 ; return 0; }
7699 EOF 7656 EOF
7700 if { (eval echo configure:7701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7657 if { (eval echo configure:7658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7701 rm -rf conftest* 7658 rm -rf conftest*
7702 ac_cv_header_alloca_h=yes 7659 ac_cv_header_alloca_h=yes
7703 else 7660 else
7704 echo "configure: failed program was:" >&5 7661 echo "configure: failed program was:" >&5
7705 cat conftest.$ac_ext >&5 7662 cat conftest.$ac_ext >&5
7719 } 7676 }
7720 7677
7721 fi 7678 fi
7722 7679
7723 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7680 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7724 echo "configure:7725: checking for alloca" >&5 7681 echo "configure:7682: checking for alloca" >&5
7725 7682
7726 cat > conftest.$ac_ext <<EOF 7683 cat > conftest.$ac_ext <<EOF
7727 #line 7728 "configure" 7684 #line 7685 "configure"
7728 #include "confdefs.h" 7685 #include "confdefs.h"
7729 7686
7730 #ifdef __GNUC__ 7687 #ifdef __GNUC__
7731 # define alloca __builtin_alloca 7688 # define alloca __builtin_alloca
7732 #else 7689 #else
7745 7702
7746 int main() { 7703 int main() {
7747 char *p = (char *) alloca(1); 7704 char *p = (char *) alloca(1);
7748 ; return 0; } 7705 ; return 0; }
7749 EOF 7706 EOF
7750 if { (eval echo configure:7751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7707 if { (eval echo configure:7708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7751 rm -rf conftest* 7708 rm -rf conftest*
7752 ac_cv_func_alloca_works=yes 7709 ac_cv_func_alloca_works=yes
7753 else 7710 else
7754 echo "configure: failed program was:" >&5 7711 echo "configure: failed program was:" >&5
7755 cat conftest.$ac_ext >&5 7712 cat conftest.$ac_ext >&5
7784 EOF 7741 EOF
7785 } 7742 }
7786 7743
7787 7744
7788 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7745 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7789 echo "configure:7790: checking whether alloca needs Cray hooks" >&5 7746 echo "configure:7747: checking whether alloca needs Cray hooks" >&5
7790 7747
7791 cat > conftest.$ac_ext <<EOF 7748 cat > conftest.$ac_ext <<EOF
7792 #line 7793 "configure" 7749 #line 7750 "configure"
7793 #include "confdefs.h" 7750 #include "confdefs.h"
7794 #if defined(CRAY) && ! defined(CRAY2) 7751 #if defined(CRAY) && ! defined(CRAY2)
7795 webecray 7752 webecray
7796 #else 7753 #else
7797 wenotbecray 7754 wenotbecray
7811 7768
7812 echo "$ac_t""$ac_cv_os_cray" 1>&6 7769 echo "$ac_t""$ac_cv_os_cray" 1>&6
7813 if test $ac_cv_os_cray = yes; then 7770 if test $ac_cv_os_cray = yes; then
7814 for ac_func in _getb67 GETB67 getb67; do 7771 for ac_func in _getb67 GETB67 getb67; do
7815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7816 echo "configure:7817: checking for $ac_func" >&5 7773 echo "configure:7774: checking for $ac_func" >&5
7817 7774
7818 cat > conftest.$ac_ext <<EOF 7775 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure" 7776 #line 7777 "configure"
7820 #include "confdefs.h" 7777 #include "confdefs.h"
7821 /* System header to define __stub macros and hopefully few prototypes, 7778 /* System header to define __stub macros and hopefully few prototypes,
7822 which can conflict with char $ac_func(); below. */ 7779 which can conflict with char $ac_func(); below. */
7823 #include <assert.h> 7780 #include <assert.h>
7824 /* Override any gcc2 internal prototype to avoid an error. */ 7781 /* Override any gcc2 internal prototype to avoid an error. */
7837 $ac_func(); 7794 $ac_func();
7838 #endif 7795 #endif
7839 7796
7840 ; return 0; } 7797 ; return 0; }
7841 EOF 7798 EOF
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7799 if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7843 rm -rf conftest* 7800 rm -rf conftest*
7844 eval "ac_cv_func_$ac_func=yes" 7801 eval "ac_cv_func_$ac_func=yes"
7845 else 7802 else
7846 echo "configure: failed program was:" >&5 7803 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5 7804 cat conftest.$ac_ext >&5
7867 7824
7868 done 7825 done
7869 fi 7826 fi
7870 7827
7871 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7828 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7872 echo "configure:7873: checking stack direction for C alloca" >&5 7829 echo "configure:7830: checking stack direction for C alloca" >&5
7873 7830
7874 cat > conftest.$ac_ext <<EOF 7831 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure" 7832 #line 7833 "configure"
7876 #include "confdefs.h" 7833 #include "confdefs.h"
7877 find_stack_direction () 7834 find_stack_direction ()
7878 { 7835 {
7879 static char *addr = 0; 7836 static char *addr = 0;
7880 auto char dummy; 7837 auto char dummy;
7889 main () 7846 main ()
7890 { 7847 {
7891 exit (find_stack_direction() < 0); 7848 exit (find_stack_direction() < 0);
7892 } 7849 }
7893 EOF 7850 EOF
7894 if { (eval echo configure:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7851 if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7895 then 7852 then
7896 ac_cv_c_stack_direction=1 7853 ac_cv_c_stack_direction=1
7897 else 7854 else
7898 echo "configure: failed program was:" >&5 7855 echo "configure: failed program was:" >&5
7899 cat conftest.$ac_ext >&5 7856 cat conftest.$ac_ext >&5
7917 echo " xemacs will be linked with \"$ALLOCA\"" 7874 echo " xemacs will be linked with \"$ALLOCA\""
7918 fi 7875 fi
7919 7876
7920 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7877 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7921 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7878 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7922 echo "configure:7923: checking for vfork.h" >&5 7879 echo "configure:7880: checking for vfork.h" >&5
7923 7880
7924 cat > conftest.$ac_ext <<EOF 7881 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure" 7882 #line 7883 "configure"
7926 #include "confdefs.h" 7883 #include "confdefs.h"
7927 #include <vfork.h> 7884 #include <vfork.h>
7928 EOF 7885 EOF
7929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7930 { (eval echo configure:7931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7887 { (eval echo configure:7888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7931 ac_err=`grep -v '^ *+' conftest.out` 7888 ac_err=`grep -v '^ *+' conftest.out`
7932 if test -z "$ac_err"; then 7889 if test -z "$ac_err"; then
7933 rm -rf conftest* 7890 rm -rf conftest*
7934 eval "ac_cv_header_$ac_safe=yes" 7891 eval "ac_cv_header_$ac_safe=yes"
7935 else 7892 else
7953 else 7910 else
7954 echo "$ac_t""no" 1>&6 7911 echo "$ac_t""no" 1>&6
7955 fi 7912 fi
7956 7913
7957 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 7914 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
7958 echo "configure:7959: checking for working vfork" >&5 7915 echo "configure:7916: checking for working vfork" >&5
7959 7916
7960 cat > conftest.$ac_ext <<EOF 7917 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure" 7918 #line 7919 "configure"
7962 #include "confdefs.h" 7919 #include "confdefs.h"
7963 /* Thanks to Paul Eggert for this test. */ 7920 /* Thanks to Paul Eggert for this test. */
7964 #include <stdio.h> 7921 #include <stdio.h>
7965 #include <sys/types.h> 7922 #include <sys/types.h>
7966 #include <sys/stat.h> 7923 #include <sys/stat.h>
8051 || fstat(fileno(stdout), &st) != 0 8008 || fstat(fileno(stdout), &st) != 0
8052 ); 8009 );
8053 } 8010 }
8054 } 8011 }
8055 EOF 8012 EOF
8056 if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8013 if { (eval echo configure:8014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8057 then 8014 then
8058 ac_cv_func_vfork_works=yes 8015 ac_cv_func_vfork_works=yes
8059 else 8016 else
8060 echo "configure: failed program was:" >&5 8017 echo "configure: failed program was:" >&5
8061 cat conftest.$ac_ext >&5 8018 cat conftest.$ac_ext >&5
8076 8033
8077 fi 8034 fi
8078 8035
8079 8036
8080 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8037 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8081 echo "configure:8082: checking for working strcoll" >&5 8038 echo "configure:8039: checking for working strcoll" >&5
8082 8039
8083 cat > conftest.$ac_ext <<EOF 8040 cat > conftest.$ac_ext <<EOF
8084 #line 8085 "configure" 8041 #line 8042 "configure"
8085 #include "confdefs.h" 8042 #include "confdefs.h"
8086 #include <string.h> 8043 #include <string.h>
8087 main () 8044 main ()
8088 { 8045 {
8089 exit (strcoll ("abc", "def") >= 0 || 8046 exit (strcoll ("abc", "def") >= 0 ||
8090 strcoll ("ABC", "DEF") >= 0 || 8047 strcoll ("ABC", "DEF") >= 0 ||
8091 strcoll ("123", "456") >= 0); 8048 strcoll ("123", "456") >= 0);
8092 } 8049 }
8093 EOF 8050 EOF
8094 if { (eval echo configure:8095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8051 if { (eval echo configure:8052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8095 then 8052 then
8096 ac_cv_func_strcoll_works=yes 8053 ac_cv_func_strcoll_works=yes
8097 else 8054 else
8098 echo "configure: failed program was:" >&5 8055 echo "configure: failed program was:" >&5
8099 cat conftest.$ac_ext >&5 8056 cat conftest.$ac_ext >&5
8116 8073
8117 8074
8118 for ac_func in getpgrp 8075 for ac_func in getpgrp
8119 do 8076 do
8120 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8121 echo "configure:8122: checking for $ac_func" >&5 8078 echo "configure:8079: checking for $ac_func" >&5
8122 8079
8123 cat > conftest.$ac_ext <<EOF 8080 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure" 8081 #line 8082 "configure"
8125 #include "confdefs.h" 8082 #include "confdefs.h"
8126 /* System header to define __stub macros and hopefully few prototypes, 8083 /* System header to define __stub macros and hopefully few prototypes,
8127 which can conflict with char $ac_func(); below. */ 8084 which can conflict with char $ac_func(); below. */
8128 #include <assert.h> 8085 #include <assert.h>
8129 /* Override any gcc2 internal prototype to avoid an error. */ 8086 /* Override any gcc2 internal prototype to avoid an error. */
8142 $ac_func(); 8099 $ac_func();
8143 #endif 8100 #endif
8144 8101
8145 ; return 0; } 8102 ; return 0; }
8146 EOF 8103 EOF
8147 if { (eval echo configure:8148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8104 if { (eval echo configure:8105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8148 rm -rf conftest* 8105 rm -rf conftest*
8149 eval "ac_cv_func_$ac_func=yes" 8106 eval "ac_cv_func_$ac_func=yes"
8150 else 8107 else
8151 echo "configure: failed program was:" >&5 8108 echo "configure: failed program was:" >&5
8152 cat conftest.$ac_ext >&5 8109 cat conftest.$ac_ext >&5
8170 echo "$ac_t""no" 1>&6 8127 echo "$ac_t""no" 1>&6
8171 fi 8128 fi
8172 done 8129 done
8173 8130
8174 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8131 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8175 echo "configure:8176: checking whether getpgrp takes no argument" >&5 8132 echo "configure:8133: checking whether getpgrp takes no argument" >&5
8176 8133
8177 cat > conftest.$ac_ext <<EOF 8134 cat > conftest.$ac_ext <<EOF
8178 #line 8179 "configure" 8135 #line 8136 "configure"
8179 #include "confdefs.h" 8136 #include "confdefs.h"
8180 8137
8181 /* 8138 /*
8182 * If this system has a BSD-style getpgrp(), 8139 * If this system has a BSD-style getpgrp(),
8183 * which takes a pid argument, exit unsuccessfully. 8140 * which takes a pid argument, exit unsuccessfully.
8228 exit(s>>8); 8185 exit(s>>8);
8229 } 8186 }
8230 } 8187 }
8231 8188
8232 EOF 8189 EOF
8233 if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8190 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8234 then 8191 then
8235 ac_cv_func_getpgrp_void=yes 8192 ac_cv_func_getpgrp_void=yes
8236 else 8193 else
8237 echo "configure: failed program was:" >&5 8194 echo "configure: failed program was:" >&5
8238 cat conftest.$ac_ext >&5 8195 cat conftest.$ac_ext >&5
8254 8211
8255 fi 8212 fi
8256 8213
8257 8214
8258 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8215 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8259 echo "configure:8260: checking for working mmap" >&5 8216 echo "configure:8217: checking for working mmap" >&5
8260 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8217 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8261 cat > conftest.$ac_ext <<EOF 8218 cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure" 8219 #line 8220 "configure"
8263 #include "confdefs.h" 8220 #include "confdefs.h"
8264 #include <stdio.h> 8221 #include <stdio.h>
8265 #include <unistd.h> 8222 #include <unistd.h>
8266 #include <fcntl.h> 8223 #include <fcntl.h>
8267 #include <sys/mman.h> 8224 #include <sys/mman.h>
8290 return 0; 8247 return 0;
8291 perror ("conftest: mmap failed"); 8248 perror ("conftest: mmap failed");
8292 return 1; 8249 return 1;
8293 } 8250 }
8294 EOF 8251 EOF
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8252 if { (eval echo configure:8253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8296 then 8253 then
8297 have_mmap=yes 8254 have_mmap=yes
8298 else 8255 else
8299 echo "configure: failed program was:" >&5 8256 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5 8257 cat conftest.$ac_ext >&5
8324 } 8281 }
8325 8282
8326 8283
8327 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8284 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8328 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8285 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8329 echo "configure:8330: checking for termios.h" >&5 8286 echo "configure:8287: checking for termios.h" >&5
8330 8287
8331 cat > conftest.$ac_ext <<EOF 8288 cat > conftest.$ac_ext <<EOF
8332 #line 8333 "configure" 8289 #line 8290 "configure"
8333 #include "confdefs.h" 8290 #include "confdefs.h"
8334 #include <termios.h> 8291 #include <termios.h>
8335 EOF 8292 EOF
8336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8337 { (eval echo configure:8338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8294 { (eval echo configure:8295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8338 ac_err=`grep -v '^ *+' conftest.out` 8295 ac_err=`grep -v '^ *+' conftest.out`
8339 if test -z "$ac_err"; then 8296 if test -z "$ac_err"; then
8340 rm -rf conftest* 8297 rm -rf conftest*
8341 eval "ac_cv_header_$ac_safe=yes" 8298 eval "ac_cv_header_$ac_safe=yes"
8342 else 8299 else
8375 8332
8376 else 8333 else
8377 echo "$ac_t""no" 1>&6 8334 echo "$ac_t""no" 1>&6
8378 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8335 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8379 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8336 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8380 echo "configure:8381: checking for termio.h" >&5 8337 echo "configure:8338: checking for termio.h" >&5
8381 8338
8382 cat > conftest.$ac_ext <<EOF 8339 cat > conftest.$ac_ext <<EOF
8383 #line 8384 "configure" 8340 #line 8341 "configure"
8384 #include "confdefs.h" 8341 #include "confdefs.h"
8385 #include <termio.h> 8342 #include <termio.h>
8386 EOF 8343 EOF
8387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8388 { (eval echo configure:8389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8345 { (eval echo configure:8346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8389 ac_err=`grep -v '^ *+' conftest.out` 8346 ac_err=`grep -v '^ *+' conftest.out`
8390 if test -z "$ac_err"; then 8347 if test -z "$ac_err"; then
8391 rm -rf conftest* 8348 rm -rf conftest*
8392 eval "ac_cv_header_$ac_safe=yes" 8349 eval "ac_cv_header_$ac_safe=yes"
8393 else 8350 else
8415 fi 8372 fi
8416 8373
8417 8374
8418 8375
8419 echo $ac_n "checking for socket""... $ac_c" 1>&6 8376 echo $ac_n "checking for socket""... $ac_c" 1>&6
8420 echo "configure:8421: checking for socket" >&5 8377 echo "configure:8378: checking for socket" >&5
8421 8378
8422 cat > conftest.$ac_ext <<EOF 8379 cat > conftest.$ac_ext <<EOF
8423 #line 8424 "configure" 8380 #line 8381 "configure"
8424 #include "confdefs.h" 8381 #include "confdefs.h"
8425 /* System header to define __stub macros and hopefully few prototypes, 8382 /* System header to define __stub macros and hopefully few prototypes,
8426 which can conflict with char socket(); below. */ 8383 which can conflict with char socket(); below. */
8427 #include <assert.h> 8384 #include <assert.h>
8428 /* Override any gcc2 internal prototype to avoid an error. */ 8385 /* Override any gcc2 internal prototype to avoid an error. */
8441 socket(); 8398 socket();
8442 #endif 8399 #endif
8443 8400
8444 ; return 0; } 8401 ; return 0; }
8445 EOF 8402 EOF
8446 if { (eval echo configure:8447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8403 if { (eval echo configure:8404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8447 rm -rf conftest* 8404 rm -rf conftest*
8448 eval "ac_cv_func_socket=yes" 8405 eval "ac_cv_func_socket=yes"
8449 else 8406 else
8450 echo "configure: failed program was:" >&5 8407 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5 8408 cat conftest.$ac_ext >&5
8456 8413
8457 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8414 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8458 echo "$ac_t""yes" 1>&6 8415 echo "$ac_t""yes" 1>&6
8459 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8416 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8460 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8417 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8461 echo "configure:8462: checking for netinet/in.h" >&5 8418 echo "configure:8419: checking for netinet/in.h" >&5
8462 8419
8463 cat > conftest.$ac_ext <<EOF 8420 cat > conftest.$ac_ext <<EOF
8464 #line 8465 "configure" 8421 #line 8422 "configure"
8465 #include "confdefs.h" 8422 #include "confdefs.h"
8466 #include <netinet/in.h> 8423 #include <netinet/in.h>
8467 EOF 8424 EOF
8468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8469 { (eval echo configure:8470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8470 ac_err=`grep -v '^ *+' conftest.out` 8427 ac_err=`grep -v '^ *+' conftest.out`
8471 if test -z "$ac_err"; then 8428 if test -z "$ac_err"; then
8472 rm -rf conftest* 8429 rm -rf conftest*
8473 eval "ac_cv_header_$ac_safe=yes" 8430 eval "ac_cv_header_$ac_safe=yes"
8474 else 8431 else
8481 rm -f conftest* 8438 rm -f conftest*
8482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8483 echo "$ac_t""yes" 1>&6 8440 echo "$ac_t""yes" 1>&6
8484 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8441 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8485 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8442 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8486 echo "configure:8487: checking for arpa/inet.h" >&5 8443 echo "configure:8444: checking for arpa/inet.h" >&5
8487 8444
8488 cat > conftest.$ac_ext <<EOF 8445 cat > conftest.$ac_ext <<EOF
8489 #line 8490 "configure" 8446 #line 8447 "configure"
8490 #include "confdefs.h" 8447 #include "confdefs.h"
8491 #include <arpa/inet.h> 8448 #include <arpa/inet.h>
8492 EOF 8449 EOF
8493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8494 { (eval echo configure:8495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8451 { (eval echo configure:8452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8495 ac_err=`grep -v '^ *+' conftest.out` 8452 ac_err=`grep -v '^ *+' conftest.out`
8496 if test -z "$ac_err"; then 8453 if test -z "$ac_err"; then
8497 rm -rf conftest* 8454 rm -rf conftest*
8498 eval "ac_cv_header_$ac_safe=yes" 8455 eval "ac_cv_header_$ac_safe=yes"
8499 else 8456 else
8514 #define HAVE_SOCKETS 1 8471 #define HAVE_SOCKETS 1
8515 EOF 8472 EOF
8516 } 8473 }
8517 8474
8518 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8475 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8519 echo "configure:8520: checking "for sun_len member in struct sockaddr_un"" >&5 8476 echo "configure:8477: checking "for sun_len member in struct sockaddr_un"" >&5
8520 cat > conftest.$ac_ext <<EOF 8477 cat > conftest.$ac_ext <<EOF
8521 #line 8522 "configure" 8478 #line 8479 "configure"
8522 #include "confdefs.h" 8479 #include "confdefs.h"
8523 8480
8524 #include <sys/types.h> 8481 #include <sys/types.h>
8525 #include <sys/socket.h> 8482 #include <sys/socket.h>
8526 #include <sys/un.h> 8483 #include <sys/un.h>
8527 8484
8528 int main() { 8485 int main() {
8529 static struct sockaddr_un x; x.sun_len = 1; 8486 static struct sockaddr_un x; x.sun_len = 1;
8530 ; return 0; } 8487 ; return 0; }
8531 EOF 8488 EOF
8532 if { (eval echo configure:8533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8489 if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8533 rm -rf conftest* 8490 rm -rf conftest*
8534 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8491 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8535 Defining HAVE_SOCKADDR_SUN_LEN 8492 Defining HAVE_SOCKADDR_SUN_LEN
8536 EOF 8493 EOF
8537 cat >> confdefs.h <<\EOF 8494 cat >> confdefs.h <<\EOF
8558 echo "$ac_t""no" 1>&6 8515 echo "$ac_t""no" 1>&6
8559 fi 8516 fi
8560 8517
8561 8518
8562 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8519 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8563 echo "configure:8564: checking for msgget" >&5 8520 echo "configure:8521: checking for msgget" >&5
8564 8521
8565 cat > conftest.$ac_ext <<EOF 8522 cat > conftest.$ac_ext <<EOF
8566 #line 8567 "configure" 8523 #line 8524 "configure"
8567 #include "confdefs.h" 8524 #include "confdefs.h"
8568 /* System header to define __stub macros and hopefully few prototypes, 8525 /* System header to define __stub macros and hopefully few prototypes,
8569 which can conflict with char msgget(); below. */ 8526 which can conflict with char msgget(); below. */
8570 #include <assert.h> 8527 #include <assert.h>
8571 /* Override any gcc2 internal prototype to avoid an error. */ 8528 /* Override any gcc2 internal prototype to avoid an error. */
8584 msgget(); 8541 msgget();
8585 #endif 8542 #endif
8586 8543
8587 ; return 0; } 8544 ; return 0; }
8588 EOF 8545 EOF
8589 if { (eval echo configure:8590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8546 if { (eval echo configure:8547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8590 rm -rf conftest* 8547 rm -rf conftest*
8591 eval "ac_cv_func_msgget=yes" 8548 eval "ac_cv_func_msgget=yes"
8592 else 8549 else
8593 echo "configure: failed program was:" >&5 8550 echo "configure: failed program was:" >&5
8594 cat conftest.$ac_ext >&5 8551 cat conftest.$ac_ext >&5
8599 8556
8600 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8557 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8601 echo "$ac_t""yes" 1>&6 8558 echo "$ac_t""yes" 1>&6
8602 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8559 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8603 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8560 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8604 echo "configure:8605: checking for sys/ipc.h" >&5 8561 echo "configure:8562: checking for sys/ipc.h" >&5
8605 8562
8606 cat > conftest.$ac_ext <<EOF 8563 cat > conftest.$ac_ext <<EOF
8607 #line 8608 "configure" 8564 #line 8565 "configure"
8608 #include "confdefs.h" 8565 #include "confdefs.h"
8609 #include <sys/ipc.h> 8566 #include <sys/ipc.h>
8610 EOF 8567 EOF
8611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8612 { (eval echo configure:8613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8569 { (eval echo configure:8570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8613 ac_err=`grep -v '^ *+' conftest.out` 8570 ac_err=`grep -v '^ *+' conftest.out`
8614 if test -z "$ac_err"; then 8571 if test -z "$ac_err"; then
8615 rm -rf conftest* 8572 rm -rf conftest*
8616 eval "ac_cv_header_$ac_safe=yes" 8573 eval "ac_cv_header_$ac_safe=yes"
8617 else 8574 else
8624 rm -f conftest* 8581 rm -f conftest*
8625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8582 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8626 echo "$ac_t""yes" 1>&6 8583 echo "$ac_t""yes" 1>&6
8627 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8584 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8628 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8585 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8629 echo "configure:8630: checking for sys/msg.h" >&5 8586 echo "configure:8587: checking for sys/msg.h" >&5
8630 8587
8631 cat > conftest.$ac_ext <<EOF 8588 cat > conftest.$ac_ext <<EOF
8632 #line 8633 "configure" 8589 #line 8590 "configure"
8633 #include "confdefs.h" 8590 #include "confdefs.h"
8634 #include <sys/msg.h> 8591 #include <sys/msg.h>
8635 EOF 8592 EOF
8636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8637 { (eval echo configure:8638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8594 { (eval echo configure:8595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8638 ac_err=`grep -v '^ *+' conftest.out` 8595 ac_err=`grep -v '^ *+' conftest.out`
8639 if test -z "$ac_err"; then 8596 if test -z "$ac_err"; then
8640 rm -rf conftest* 8597 rm -rf conftest*
8641 eval "ac_cv_header_$ac_safe=yes" 8598 eval "ac_cv_header_$ac_safe=yes"
8642 else 8599 else
8670 fi 8627 fi
8671 8628
8672 8629
8673 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8630 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8674 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8631 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8675 echo "configure:8676: checking for dirent.h" >&5 8632 echo "configure:8633: checking for dirent.h" >&5
8676 8633
8677 cat > conftest.$ac_ext <<EOF 8634 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure" 8635 #line 8636 "configure"
8679 #include "confdefs.h" 8636 #include "confdefs.h"
8680 #include <dirent.h> 8637 #include <dirent.h>
8681 EOF 8638 EOF
8682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8683 { (eval echo configure:8684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8640 { (eval echo configure:8641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8684 ac_err=`grep -v '^ *+' conftest.out` 8641 ac_err=`grep -v '^ *+' conftest.out`
8685 if test -z "$ac_err"; then 8642 if test -z "$ac_err"; then
8686 rm -rf conftest* 8643 rm -rf conftest*
8687 eval "ac_cv_header_$ac_safe=yes" 8644 eval "ac_cv_header_$ac_safe=yes"
8688 else 8645 else
8705 8662
8706 else 8663 else
8707 echo "$ac_t""no" 1>&6 8664 echo "$ac_t""no" 1>&6
8708 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8665 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8709 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8666 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8710 echo "configure:8711: checking for sys/dir.h" >&5 8667 echo "configure:8668: checking for sys/dir.h" >&5
8711 8668
8712 cat > conftest.$ac_ext <<EOF 8669 cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure" 8670 #line 8671 "configure"
8714 #include "confdefs.h" 8671 #include "confdefs.h"
8715 #include <sys/dir.h> 8672 #include <sys/dir.h>
8716 EOF 8673 EOF
8717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8674 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8718 { (eval echo configure:8719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8675 { (eval echo configure:8676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8719 ac_err=`grep -v '^ *+' conftest.out` 8676 ac_err=`grep -v '^ *+' conftest.out`
8720 if test -z "$ac_err"; then 8677 if test -z "$ac_err"; then
8721 rm -rf conftest* 8678 rm -rf conftest*
8722 eval "ac_cv_header_$ac_safe=yes" 8679 eval "ac_cv_header_$ac_safe=yes"
8723 else 8680 else
8746 fi 8703 fi
8747 8704
8748 8705
8749 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8706 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8750 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8707 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8751 echo "configure:8752: checking for nlist.h" >&5 8708 echo "configure:8709: checking for nlist.h" >&5
8752 8709
8753 cat > conftest.$ac_ext <<EOF 8710 cat > conftest.$ac_ext <<EOF
8754 #line 8755 "configure" 8711 #line 8712 "configure"
8755 #include "confdefs.h" 8712 #include "confdefs.h"
8756 #include <nlist.h> 8713 #include <nlist.h>
8757 EOF 8714 EOF
8758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8759 { (eval echo configure:8760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8716 { (eval echo configure:8717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8760 ac_err=`grep -v '^ *+' conftest.out` 8717 ac_err=`grep -v '^ *+' conftest.out`
8761 if test -z "$ac_err"; then 8718 if test -z "$ac_err"; then
8762 rm -rf conftest* 8719 rm -rf conftest*
8763 eval "ac_cv_header_$ac_safe=yes" 8720 eval "ac_cv_header_$ac_safe=yes"
8764 else 8721 else
8784 fi 8741 fi
8785 8742
8786 8743
8787 8744
8788 echo "checking "for sound support"" 1>&6 8745 echo "checking "for sound support"" 1>&6
8789 echo "configure:8790: checking "for sound support"" >&5 8746 echo "configure:8747: checking "for sound support"" >&5
8790 case "$with_sound" in 8747 case "$with_sound" in
8791 native | both ) with_native_sound=yes;; 8748 native | both ) with_native_sound=yes;;
8792 nas | no ) with_native_sound=no;; 8749 nas | no ) with_native_sound=no;;
8793 esac 8750 esac
8794 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8751 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8795 8752
8796 if test "$with_native_sound" != "no"; then 8753 if test "$with_native_sound" != "no"; then
8797 if test -n "$native_sound_lib"; then 8754 if test -n "$native_sound_lib"; then
8798 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8755 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8799 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8756 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8800 echo "configure:8801: checking for multimedia/audio_device.h" >&5 8757 echo "configure:8758: checking for multimedia/audio_device.h" >&5
8801 8758
8802 cat > conftest.$ac_ext <<EOF 8759 cat > conftest.$ac_ext <<EOF
8803 #line 8804 "configure" 8760 #line 8761 "configure"
8804 #include "confdefs.h" 8761 #include "confdefs.h"
8805 #include <multimedia/audio_device.h> 8762 #include <multimedia/audio_device.h>
8806 EOF 8763 EOF
8807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8808 { (eval echo configure:8809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8765 { (eval echo configure:8766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8809 ac_err=`grep -v '^ *+' conftest.out` 8766 ac_err=`grep -v '^ *+' conftest.out`
8810 if test -z "$ac_err"; then 8767 if test -z "$ac_err"; then
8811 rm -rf conftest* 8768 rm -rf conftest*
8812 eval "ac_cv_header_$ac_safe=yes" 8769 eval "ac_cv_header_$ac_safe=yes"
8813 else 8770 else
8851 case "$canonical" in 8808 case "$canonical" in
8852 *-sgi-* ) 8809 *-sgi-* )
8853 if test -z "$native_sound_lib"; then 8810 if test -z "$native_sound_lib"; then
8854 8811
8855 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8812 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8856 echo "configure:8857: checking for ALopenport in -laudio" >&5 8813 echo "configure:8814: checking for ALopenport in -laudio" >&5
8857 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8814 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8858 8815
8859 xe_check_libs=" -laudio " 8816 xe_check_libs=" -laudio "
8860 cat > conftest.$ac_ext <<EOF 8817 cat > conftest.$ac_ext <<EOF
8861 #line 8862 "configure" 8818 #line 8819 "configure"
8862 #include "confdefs.h" 8819 #include "confdefs.h"
8863 /* Override any gcc2 internal prototype to avoid an error. */ 8820 /* Override any gcc2 internal prototype to avoid an error. */
8864 /* We use char because int might match the return type of a gcc2 8821 /* We use char because int might match the return type of a gcc2
8865 builtin and then its argument prototype would still apply. */ 8822 builtin and then its argument prototype would still apply. */
8866 char ALopenport(); 8823 char ALopenport();
8867 8824
8868 int main() { 8825 int main() {
8869 ALopenport() 8826 ALopenport()
8870 ; return 0; } 8827 ; return 0; }
8871 EOF 8828 EOF
8872 if { (eval echo configure:8873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8829 if { (eval echo configure:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8873 rm -rf conftest* 8830 rm -rf conftest*
8874 eval "ac_cv_lib_$ac_lib_var=yes" 8831 eval "ac_cv_lib_$ac_lib_var=yes"
8875 else 8832 else
8876 echo "configure: failed program was:" >&5 8833 echo "configure: failed program was:" >&5
8877 cat conftest.$ac_ext >&5 8834 cat conftest.$ac_ext >&5
8898 fi ;; 8855 fi ;;
8899 hppa*-hp-hpux* ) 8856 hppa*-hp-hpux* )
8900 if test -z "$native_sound_lib"; then 8857 if test -z "$native_sound_lib"; then
8901 8858
8902 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 8859 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8903 echo "configure:8904: checking for AOpenAudio in -lAlib" >&5 8860 echo "configure:8861: checking for AOpenAudio in -lAlib" >&5
8904 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 8861 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8905 8862
8906 xe_check_libs=" -lAlib " 8863 xe_check_libs=" -lAlib "
8907 cat > conftest.$ac_ext <<EOF 8864 cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure" 8865 #line 8866 "configure"
8909 #include "confdefs.h" 8866 #include "confdefs.h"
8910 /* Override any gcc2 internal prototype to avoid an error. */ 8867 /* Override any gcc2 internal prototype to avoid an error. */
8911 /* We use char because int might match the return type of a gcc2 8868 /* We use char because int might match the return type of a gcc2
8912 builtin and then its argument prototype would still apply. */ 8869 builtin and then its argument prototype would still apply. */
8913 char AOpenAudio(); 8870 char AOpenAudio();
8914 8871
8915 int main() { 8872 int main() {
8916 AOpenAudio() 8873 AOpenAudio()
8917 ; return 0; } 8874 ; return 0; }
8918 EOF 8875 EOF
8919 if { (eval echo configure:8920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8876 if { (eval echo configure:8877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8920 rm -rf conftest* 8877 rm -rf conftest*
8921 eval "ac_cv_lib_$ac_lib_var=yes" 8878 eval "ac_cv_lib_$ac_lib_var=yes"
8922 else 8879 else
8923 echo "configure: failed program was:" >&5 8880 echo "configure: failed program was:" >&5
8924 cat conftest.$ac_ext >&5 8881 cat conftest.$ac_ext >&5
8952 8909
8953 if test -z "$sound_found"; then 8910 if test -z "$sound_found"; then
8954 for dir in "machine" "sys" "linux"; do 8911 for dir in "machine" "sys" "linux"; do
8955 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 8912 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
8956 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 8913 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
8957 echo "configure:8958: checking for ${dir}/soundcard.h" >&5 8914 echo "configure:8915: checking for ${dir}/soundcard.h" >&5
8958 8915
8959 cat > conftest.$ac_ext <<EOF 8916 cat > conftest.$ac_ext <<EOF
8960 #line 8961 "configure" 8917 #line 8918 "configure"
8961 #include "confdefs.h" 8918 #include "confdefs.h"
8962 #include <${dir}/soundcard.h> 8919 #include <${dir}/soundcard.h>
8963 EOF 8920 EOF
8964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8965 { (eval echo configure:8966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8922 { (eval echo configure:8923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8966 ac_err=`grep -v '^ *+' conftest.out` 8923 ac_err=`grep -v '^ *+' conftest.out`
8967 if test -z "$ac_err"; then 8924 if test -z "$ac_err"; then
8968 rm -rf conftest* 8925 rm -rf conftest*
8969 eval "ac_cv_header_$ac_safe=yes" 8926 eval "ac_cv_header_$ac_safe=yes"
8970 else 8927 else
9030 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 8987 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9031 echo " xemacs will be linked with \"nas.o\"" 8988 echo " xemacs will be linked with \"nas.o\""
9032 fi 8989 fi
9033 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 8990 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
9034 cat > conftest.$ac_ext <<EOF 8991 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure" 8992 #line 8993 "configure"
9036 #include "confdefs.h" 8993 #include "confdefs.h"
9037 #include <audio/Xtutil.h> 8994 #include <audio/Xtutil.h>
9038 EOF 8995 EOF
9039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9040 egrep "AuXtErrorJump" >/dev/null 2>&1; then 8997 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9057 9014
9058 test -z "$with_tty" && with_tty=yes 9015 test -z "$with_tty" && with_tty=yes
9059 9016
9060 if test "$with_tty" = "yes" ; then 9017 if test "$with_tty" = "yes" ; then
9061 echo "checking for TTY-related features" 1>&6 9018 echo "checking for TTY-related features" 1>&6
9062 echo "configure:9063: checking for TTY-related features" >&5 9019 echo "configure:9020: checking for TTY-related features" >&5
9063 { test "$extra_verbose" = "yes" && cat << \EOF 9020 { test "$extra_verbose" = "yes" && cat << \EOF
9064 Defining HAVE_TTY 9021 Defining HAVE_TTY
9065 EOF 9022 EOF
9066 cat >> confdefs.h <<\EOF 9023 cat >> confdefs.h <<\EOF
9067 #define HAVE_TTY 1 9024 #define HAVE_TTY 1
9073 fi 9030 fi
9074 9031
9075 if test -z "$with_ncurses"; then 9032 if test -z "$with_ncurses"; then
9076 9033
9077 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9034 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9078 echo "configure:9079: checking for tgetent in -lncurses" >&5 9035 echo "configure:9036: checking for tgetent in -lncurses" >&5
9079 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9036 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9080 9037
9081 xe_check_libs=" -lncurses " 9038 xe_check_libs=" -lncurses "
9082 cat > conftest.$ac_ext <<EOF 9039 cat > conftest.$ac_ext <<EOF
9083 #line 9084 "configure" 9040 #line 9041 "configure"
9084 #include "confdefs.h" 9041 #include "confdefs.h"
9085 /* Override any gcc2 internal prototype to avoid an error. */ 9042 /* Override any gcc2 internal prototype to avoid an error. */
9086 /* We use char because int might match the return type of a gcc2 9043 /* We use char because int might match the return type of a gcc2
9087 builtin and then its argument prototype would still apply. */ 9044 builtin and then its argument prototype would still apply. */
9088 char tgetent(); 9045 char tgetent();
9089 9046
9090 int main() { 9047 int main() {
9091 tgetent() 9048 tgetent()
9092 ; return 0; } 9049 ; return 0; }
9093 EOF 9050 EOF
9094 if { (eval echo configure:9095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9051 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9095 rm -rf conftest* 9052 rm -rf conftest*
9096 eval "ac_cv_lib_$ac_lib_var=yes" 9053 eval "ac_cv_lib_$ac_lib_var=yes"
9097 else 9054 else
9098 echo "configure: failed program was:" >&5 9055 echo "configure: failed program was:" >&5
9099 cat conftest.$ac_ext >&5 9056 cat conftest.$ac_ext >&5
9122 EOF 9079 EOF
9123 } 9080 }
9124 9081
9125 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9082 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9126 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9083 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9127 echo "configure:9128: checking for ncurses/curses.h" >&5 9084 echo "configure:9085: checking for ncurses/curses.h" >&5
9128 9085
9129 cat > conftest.$ac_ext <<EOF 9086 cat > conftest.$ac_ext <<EOF
9130 #line 9131 "configure" 9087 #line 9088 "configure"
9131 #include "confdefs.h" 9088 #include "confdefs.h"
9132 #include <ncurses/curses.h> 9089 #include <ncurses/curses.h>
9133 EOF 9090 EOF
9134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9135 { (eval echo configure:9136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9092 { (eval echo configure:9093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9136 ac_err=`grep -v '^ *+' conftest.out` 9093 ac_err=`grep -v '^ *+' conftest.out`
9137 if test -z "$ac_err"; then 9094 if test -z "$ac_err"; then
9138 rm -rf conftest* 9095 rm -rf conftest*
9139 eval "ac_cv_header_$ac_safe=yes" 9096 eval "ac_cv_header_$ac_safe=yes"
9140 else 9097 else
9152 echo "$ac_t""no" 1>&6 9109 echo "$ac_t""no" 1>&6
9153 fi 9110 fi
9154 9111
9155 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9112 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9156 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9113 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9157 echo "configure:9158: checking for ncurses/term.h" >&5 9114 echo "configure:9115: checking for ncurses/term.h" >&5
9158 9115
9159 cat > conftest.$ac_ext <<EOF 9116 cat > conftest.$ac_ext <<EOF
9160 #line 9161 "configure" 9117 #line 9118 "configure"
9161 #include "confdefs.h" 9118 #include "confdefs.h"
9162 #include <ncurses/term.h> 9119 #include <ncurses/term.h>
9163 EOF 9120 EOF
9164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9165 { (eval echo configure:9166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9122 { (eval echo configure:9123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9166 ac_err=`grep -v '^ *+' conftest.out` 9123 ac_err=`grep -v '^ *+' conftest.out`
9167 if test -z "$ac_err"; then 9124 if test -z "$ac_err"; then
9168 rm -rf conftest* 9125 rm -rf conftest*
9169 eval "ac_cv_header_$ac_safe=yes" 9126 eval "ac_cv_header_$ac_safe=yes"
9170 else 9127 else
9190 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9147 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9191 save_c_switch_site="$c_switch_site" 9148 save_c_switch_site="$c_switch_site"
9192 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9149 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9193 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9150 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9194 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9151 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9195 echo "configure:9196: checking for ncurses/curses.h" >&5 9152 echo "configure:9153: checking for ncurses/curses.h" >&5
9196 9153
9197 cat > conftest.$ac_ext <<EOF 9154 cat > conftest.$ac_ext <<EOF
9198 #line 9199 "configure" 9155 #line 9156 "configure"
9199 #include "confdefs.h" 9156 #include "confdefs.h"
9200 #include <ncurses/curses.h> 9157 #include <ncurses/curses.h>
9201 EOF 9158 EOF
9202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9203 { (eval echo configure:9204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9160 { (eval echo configure:9161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9204 ac_err=`grep -v '^ *+' conftest.out` 9161 ac_err=`grep -v '^ *+' conftest.out`
9205 if test -z "$ac_err"; then 9162 if test -z "$ac_err"; then
9206 rm -rf conftest* 9163 rm -rf conftest*
9207 eval "ac_cv_header_$ac_safe=yes" 9164 eval "ac_cv_header_$ac_safe=yes"
9208 else 9165 else
9233 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9190 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9234 else 9191 else
9235 for lib in curses termlib termcap; do 9192 for lib in curses termlib termcap; do
9236 9193
9237 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9194 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9238 echo "configure:9239: checking for tgetent in -l$lib" >&5 9195 echo "configure:9196: checking for tgetent in -l$lib" >&5
9239 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9196 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9240 9197
9241 xe_check_libs=" -l$lib " 9198 xe_check_libs=" -l$lib "
9242 cat > conftest.$ac_ext <<EOF 9199 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure" 9200 #line 9201 "configure"
9244 #include "confdefs.h" 9201 #include "confdefs.h"
9245 /* Override any gcc2 internal prototype to avoid an error. */ 9202 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2 9203 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */ 9204 builtin and then its argument prototype would still apply. */
9248 char tgetent(); 9205 char tgetent();
9249 9206
9250 int main() { 9207 int main() {
9251 tgetent() 9208 tgetent()
9252 ; return 0; } 9209 ; return 0; }
9253 EOF 9210 EOF
9254 if { (eval echo configure:9255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9211 if { (eval echo configure:9212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9255 rm -rf conftest* 9212 rm -rf conftest*
9256 eval "ac_cv_lib_$ac_lib_var=yes" 9213 eval "ac_cv_lib_$ac_lib_var=yes"
9257 else 9214 else
9258 echo "configure: failed program was:" >&5 9215 echo "configure: failed program was:" >&5
9259 cat conftest.$ac_ext >&5 9216 cat conftest.$ac_ext >&5
9280 if test -n "$libs_termcap"; then 9237 if test -n "$libs_termcap"; then
9281 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9238 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9282 else 9239 else
9283 9240
9284 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9241 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9285 echo "configure:9286: checking for tgetent in -lcurses" >&5 9242 echo "configure:9243: checking for tgetent in -lcurses" >&5
9286 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9243 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9287 9244
9288 xe_check_libs=" -lcurses " 9245 xe_check_libs=" -lcurses "
9289 cat > conftest.$ac_ext <<EOF 9246 cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure" 9247 #line 9248 "configure"
9291 #include "confdefs.h" 9248 #include "confdefs.h"
9292 /* Override any gcc2 internal prototype to avoid an error. */ 9249 /* Override any gcc2 internal prototype to avoid an error. */
9293 /* We use char because int might match the return type of a gcc2 9250 /* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */ 9251 builtin and then its argument prototype would still apply. */
9295 char tgetent(); 9252 char tgetent();
9296 9253
9297 int main() { 9254 int main() {
9298 tgetent() 9255 tgetent()
9299 ; return 0; } 9256 ; return 0; }
9300 EOF 9257 EOF
9301 if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9258 if { (eval echo configure:9259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9302 rm -rf conftest* 9259 rm -rf conftest*
9303 eval "ac_cv_lib_$ac_lib_var=yes" 9260 eval "ac_cv_lib_$ac_lib_var=yes"
9304 else 9261 else
9305 echo "configure: failed program was:" >&5 9262 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5 9263 cat conftest.$ac_ext >&5
9314 echo "$ac_t""yes" 1>&6 9271 echo "$ac_t""yes" 1>&6
9315 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9272 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9316 else 9273 else
9317 echo "$ac_t""no" 1>&6 9274 echo "$ac_t""no" 1>&6
9318 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9275 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9319 echo "configure:9320: checking for tgetent in -ltermcap" >&5 9276 echo "configure:9277: checking for tgetent in -ltermcap" >&5
9320 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9277 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9321 9278
9322 xe_check_libs=" -ltermcap " 9279 xe_check_libs=" -ltermcap "
9323 cat > conftest.$ac_ext <<EOF 9280 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure" 9281 #line 9282 "configure"
9325 #include "confdefs.h" 9282 #include "confdefs.h"
9326 /* Override any gcc2 internal prototype to avoid an error. */ 9283 /* Override any gcc2 internal prototype to avoid an error. */
9327 /* We use char because int might match the return type of a gcc2 9284 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */ 9285 builtin and then its argument prototype would still apply. */
9329 char tgetent(); 9286 char tgetent();
9330 9287
9331 int main() { 9288 int main() {
9332 tgetent() 9289 tgetent()
9333 ; return 0; } 9290 ; return 0; }
9334 EOF 9291 EOF
9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9292 if { (eval echo configure:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9336 rm -rf conftest* 9293 rm -rf conftest*
9337 eval "ac_cv_lib_$ac_lib_var=yes" 9294 eval "ac_cv_lib_$ac_lib_var=yes"
9338 else 9295 else
9339 echo "configure: failed program was:" >&5 9296 echo "configure: failed program was:" >&5
9340 cat conftest.$ac_ext >&5 9297 cat conftest.$ac_ext >&5
9378 } 9335 }
9379 9336
9380 9337
9381 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9338 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9382 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9339 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9383 echo "configure:9384: checking for gpm.h" >&5 9340 echo "configure:9341: checking for gpm.h" >&5
9384 9341
9385 cat > conftest.$ac_ext <<EOF 9342 cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure" 9343 #line 9344 "configure"
9387 #include "confdefs.h" 9344 #include "confdefs.h"
9388 #include <gpm.h> 9345 #include <gpm.h>
9389 EOF 9346 EOF
9390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9391 { (eval echo configure:9392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9348 { (eval echo configure:9349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9392 ac_err=`grep -v '^ *+' conftest.out` 9349 ac_err=`grep -v '^ *+' conftest.out`
9393 if test -z "$ac_err"; then 9350 if test -z "$ac_err"; then
9394 rm -rf conftest* 9351 rm -rf conftest*
9395 eval "ac_cv_header_$ac_safe=yes" 9352 eval "ac_cv_header_$ac_safe=yes"
9396 else 9353 else
9409 with_gpm=no 9366 with_gpm=no
9410 fi 9367 fi
9411 } 9368 }
9412 test -z "$with_gpm" && { 9369 test -z "$with_gpm" && {
9413 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9370 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9414 echo "configure:9415: checking for Gpm_Open in -lgpm" >&5 9371 echo "configure:9372: checking for Gpm_Open in -lgpm" >&5
9415 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9372 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9416 9373
9417 xe_check_libs=" -lgpm " 9374 xe_check_libs=" -lgpm "
9418 cat > conftest.$ac_ext <<EOF 9375 cat > conftest.$ac_ext <<EOF
9419 #line 9420 "configure" 9376 #line 9377 "configure"
9420 #include "confdefs.h" 9377 #include "confdefs.h"
9421 /* Override any gcc2 internal prototype to avoid an error. */ 9378 /* Override any gcc2 internal prototype to avoid an error. */
9422 /* We use char because int might match the return type of a gcc2 9379 /* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */ 9380 builtin and then its argument prototype would still apply. */
9424 char Gpm_Open(); 9381 char Gpm_Open();
9425 9382
9426 int main() { 9383 int main() {
9427 Gpm_Open() 9384 Gpm_Open()
9428 ; return 0; } 9385 ; return 0; }
9429 EOF 9386 EOF
9430 if { (eval echo configure:9431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9431 rm -rf conftest* 9388 rm -rf conftest*
9432 eval "ac_cv_lib_$ac_lib_var=yes" 9389 eval "ac_cv_lib_$ac_lib_var=yes"
9433 else 9390 else
9434 echo "configure: failed program was:" >&5 9391 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5 9392 cat conftest.$ac_ext >&5
9474 echo " xemacs will be linked with \"event-unixoid.o\"" 9431 echo " xemacs will be linked with \"event-unixoid.o\""
9475 fi 9432 fi
9476 9433
9477 9434
9478 echo "checking for database support" 1>&6 9435 echo "checking for database support" 1>&6
9479 echo "configure:9480: checking for database support" >&5 9436 echo "configure:9437: checking for database support" >&5
9480 9437
9481 if test "$with_database_gnudbm" != "no"; then 9438 if test "$with_database_gnudbm" != "no"; then
9482 9439
9483 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9440 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9484 echo "configure:9485: checking for dbm_open in -lgdbm" >&5 9441 echo "configure:9442: checking for dbm_open in -lgdbm" >&5
9485 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9442 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9486 9443
9487 xe_check_libs=" -lgdbm " 9444 xe_check_libs=" -lgdbm "
9488 cat > conftest.$ac_ext <<EOF 9445 cat > conftest.$ac_ext <<EOF
9489 #line 9490 "configure" 9446 #line 9447 "configure"
9490 #include "confdefs.h" 9447 #include "confdefs.h"
9491 /* Override any gcc2 internal prototype to avoid an error. */ 9448 /* Override any gcc2 internal prototype to avoid an error. */
9492 /* We use char because int might match the return type of a gcc2 9449 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */ 9450 builtin and then its argument prototype would still apply. */
9494 char dbm_open(); 9451 char dbm_open();
9495 9452
9496 int main() { 9453 int main() {
9497 dbm_open() 9454 dbm_open()
9498 ; return 0; } 9455 ; return 0; }
9499 EOF 9456 EOF
9500 if { (eval echo configure:9501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9457 if { (eval echo configure:9458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9501 rm -rf conftest* 9458 rm -rf conftest*
9502 eval "ac_cv_lib_$ac_lib_var=yes" 9459 eval "ac_cv_lib_$ac_lib_var=yes"
9503 else 9460 else
9504 echo "configure: failed program was:" >&5 9461 echo "configure: failed program was:" >&5
9505 cat conftest.$ac_ext >&5 9462 cat conftest.$ac_ext >&5
9517 fi 9474 fi
9518 9475
9519 9476
9520 if test "$with_database_gnudbm" != "yes"; then 9477 if test "$with_database_gnudbm" != "yes"; then
9521 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9478 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9522 echo "configure:9523: checking for dbm_open" >&5 9479 echo "configure:9480: checking for dbm_open" >&5
9523 9480
9524 cat > conftest.$ac_ext <<EOF 9481 cat > conftest.$ac_ext <<EOF
9525 #line 9526 "configure" 9482 #line 9483 "configure"
9526 #include "confdefs.h" 9483 #include "confdefs.h"
9527 /* System header to define __stub macros and hopefully few prototypes, 9484 /* System header to define __stub macros and hopefully few prototypes,
9528 which can conflict with char dbm_open(); below. */ 9485 which can conflict with char dbm_open(); below. */
9529 #include <assert.h> 9486 #include <assert.h>
9530 /* Override any gcc2 internal prototype to avoid an error. */ 9487 /* Override any gcc2 internal prototype to avoid an error. */
9543 dbm_open(); 9500 dbm_open();
9544 #endif 9501 #endif
9545 9502
9546 ; return 0; } 9503 ; return 0; }
9547 EOF 9504 EOF
9548 if { (eval echo configure:9549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9505 if { (eval echo configure:9506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9549 rm -rf conftest* 9506 rm -rf conftest*
9550 eval "ac_cv_func_dbm_open=yes" 9507 eval "ac_cv_func_dbm_open=yes"
9551 else 9508 else
9552 echo "configure: failed program was:" >&5 9509 echo "configure: failed program was:" >&5
9553 cat conftest.$ac_ext >&5 9510 cat conftest.$ac_ext >&5
9579 fi 9536 fi
9580 fi 9537 fi
9581 9538
9582 if test "$with_database_dbm" != "no"; then 9539 if test "$with_database_dbm" != "no"; then
9583 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9540 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9584 echo "configure:9585: checking for dbm_open" >&5 9541 echo "configure:9542: checking for dbm_open" >&5
9585 9542
9586 cat > conftest.$ac_ext <<EOF 9543 cat > conftest.$ac_ext <<EOF
9587 #line 9588 "configure" 9544 #line 9545 "configure"
9588 #include "confdefs.h" 9545 #include "confdefs.h"
9589 /* System header to define __stub macros and hopefully few prototypes, 9546 /* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char dbm_open(); below. */ 9547 which can conflict with char dbm_open(); below. */
9591 #include <assert.h> 9548 #include <assert.h>
9592 /* Override any gcc2 internal prototype to avoid an error. */ 9549 /* Override any gcc2 internal prototype to avoid an error. */
9605 dbm_open(); 9562 dbm_open();
9606 #endif 9563 #endif
9607 9564
9608 ; return 0; } 9565 ; return 0; }
9609 EOF 9566 EOF
9610 if { (eval echo configure:9611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9567 if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9611 rm -rf conftest* 9568 rm -rf conftest*
9612 eval "ac_cv_func_dbm_open=yes" 9569 eval "ac_cv_func_dbm_open=yes"
9613 else 9570 else
9614 echo "configure: failed program was:" >&5 9571 echo "configure: failed program was:" >&5
9615 cat conftest.$ac_ext >&5 9572 cat conftest.$ac_ext >&5
9626 fi 9583 fi
9627 9584
9628 if test "$need_libdbm" != "no"; then 9585 if test "$need_libdbm" != "no"; then
9629 9586
9630 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9587 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9631 echo "configure:9632: checking for dbm_open in -ldbm" >&5 9588 echo "configure:9589: checking for dbm_open in -ldbm" >&5
9632 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9589 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9633 9590
9634 xe_check_libs=" -ldbm " 9591 xe_check_libs=" -ldbm "
9635 cat > conftest.$ac_ext <<EOF 9592 cat > conftest.$ac_ext <<EOF
9636 #line 9637 "configure" 9593 #line 9594 "configure"
9637 #include "confdefs.h" 9594 #include "confdefs.h"
9638 /* Override any gcc2 internal prototype to avoid an error. */ 9595 /* Override any gcc2 internal prototype to avoid an error. */
9639 /* We use char because int might match the return type of a gcc2 9596 /* We use char because int might match the return type of a gcc2
9640 builtin and then its argument prototype would still apply. */ 9597 builtin and then its argument prototype would still apply. */
9641 char dbm_open(); 9598 char dbm_open();
9642 9599
9643 int main() { 9600 int main() {
9644 dbm_open() 9601 dbm_open()
9645 ; return 0; } 9602 ; return 0; }
9646 EOF 9603 EOF
9647 if { (eval echo configure:9648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9648 rm -rf conftest* 9605 rm -rf conftest*
9649 eval "ac_cv_lib_$ac_lib_var=yes" 9606 eval "ac_cv_lib_$ac_lib_var=yes"
9650 else 9607 else
9651 echo "configure: failed program was:" >&5 9608 echo "configure: failed program was:" >&5
9652 cat conftest.$ac_ext >&5 9609 cat conftest.$ac_ext >&5
9679 fi 9636 fi
9680 fi 9637 fi
9681 9638
9682 if test "$with_database_berkdb" != "no"; then 9639 if test "$with_database_berkdb" != "no"; then
9683 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9640 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9684 echo "configure:9685: checking for dbopen" >&5 9641 echo "configure:9642: checking for dbopen" >&5
9685 9642
9686 cat > conftest.$ac_ext <<EOF 9643 cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure" 9644 #line 9645 "configure"
9688 #include "confdefs.h" 9645 #include "confdefs.h"
9689 /* System header to define __stub macros and hopefully few prototypes, 9646 /* System header to define __stub macros and hopefully few prototypes,
9690 which can conflict with char dbopen(); below. */ 9647 which can conflict with char dbopen(); below. */
9691 #include <assert.h> 9648 #include <assert.h>
9692 /* Override any gcc2 internal prototype to avoid an error. */ 9649 /* Override any gcc2 internal prototype to avoid an error. */
9705 dbopen(); 9662 dbopen();
9706 #endif 9663 #endif
9707 9664
9708 ; return 0; } 9665 ; return 0; }
9709 EOF 9666 EOF
9710 if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9667 if { (eval echo configure:9668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9711 rm -rf conftest* 9668 rm -rf conftest*
9712 eval "ac_cv_func_dbopen=yes" 9669 eval "ac_cv_func_dbopen=yes"
9713 else 9670 else
9714 echo "configure: failed program was:" >&5 9671 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5 9672 cat conftest.$ac_ext >&5
9726 fi 9683 fi
9727 9684
9728 if test "$need_libdb" != "no"; then 9685 if test "$need_libdb" != "no"; then
9729 9686
9730 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9687 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9731 echo "configure:9732: checking for dbopen in -ldb" >&5 9688 echo "configure:9689: checking for dbopen in -ldb" >&5
9732 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9689 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9733 9690
9734 xe_check_libs=" -ldb " 9691 xe_check_libs=" -ldb "
9735 cat > conftest.$ac_ext <<EOF 9692 cat > conftest.$ac_ext <<EOF
9736 #line 9737 "configure" 9693 #line 9694 "configure"
9737 #include "confdefs.h" 9694 #include "confdefs.h"
9738 /* Override any gcc2 internal prototype to avoid an error. */ 9695 /* Override any gcc2 internal prototype to avoid an error. */
9739 /* We use char because int might match the return type of a gcc2 9696 /* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */ 9697 builtin and then its argument prototype would still apply. */
9741 char dbopen(); 9698 char dbopen();
9742 9699
9743 int main() { 9700 int main() {
9744 dbopen() 9701 dbopen()
9745 ; return 0; } 9702 ; return 0; }
9746 EOF 9703 EOF
9747 if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9704 if { (eval echo configure:9705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9748 rm -rf conftest* 9705 rm -rf conftest*
9749 eval "ac_cv_lib_$ac_lib_var=yes" 9706 eval "ac_cv_lib_$ac_lib_var=yes"
9750 else 9707 else
9751 echo "configure: failed program was:" >&5 9708 echo "configure: failed program was:" >&5
9752 cat conftest.$ac_ext >&5 9709 cat conftest.$ac_ext >&5
9766 9723
9767 fi 9724 fi
9768 if test "$with_database_berkdb" = "yes"; then 9725 if test "$with_database_berkdb" = "yes"; then
9769 for path in "db/db.h" "db.h"; do 9726 for path in "db/db.h" "db.h"; do
9770 cat > conftest.$ac_ext <<EOF 9727 cat > conftest.$ac_ext <<EOF
9771 #line 9772 "configure" 9728 #line 9729 "configure"
9772 #include "confdefs.h" 9729 #include "confdefs.h"
9773 #ifdef HAVE_INTTYPES_H 9730 #ifdef HAVE_INTTYPES_H
9774 #define __BIT_TYPES_DEFINED__ 9731 #define __BIT_TYPES_DEFINED__
9775 #include <inttypes.h> 9732 #include <inttypes.h>
9776 typedef uint8_t u_int8_t; 9733 typedef uint8_t u_int8_t;
9784 9741
9785 int main() { 9742 int main() {
9786 9743
9787 ; return 0; } 9744 ; return 0; }
9788 EOF 9745 EOF
9789 if { (eval echo configure:9790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9746 if { (eval echo configure:9747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9790 rm -rf conftest* 9747 rm -rf conftest*
9791 db_h_path="$path"; break 9748 db_h_path="$path"; break
9792 else 9749 else
9793 echo "configure: failed program was:" >&5 9750 echo "configure: failed program was:" >&5
9794 cat conftest.$ac_ext >&5 9751 cat conftest.$ac_ext >&5
9836 fi 9793 fi
9837 9794
9838 if test "$with_socks" = "yes"; then 9795 if test "$with_socks" = "yes"; then
9839 9796
9840 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9797 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9841 echo "configure:9842: checking for SOCKSinit in -lsocks" >&5 9798 echo "configure:9799: checking for SOCKSinit in -lsocks" >&5
9842 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9799 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9843 9800
9844 xe_check_libs=" -lsocks " 9801 xe_check_libs=" -lsocks "
9845 cat > conftest.$ac_ext <<EOF 9802 cat > conftest.$ac_ext <<EOF
9846 #line 9847 "configure" 9803 #line 9804 "configure"
9847 #include "confdefs.h" 9804 #include "confdefs.h"
9848 /* Override any gcc2 internal prototype to avoid an error. */ 9805 /* Override any gcc2 internal prototype to avoid an error. */
9849 /* We use char because int might match the return type of a gcc2 9806 /* We use char because int might match the return type of a gcc2
9850 builtin and then its argument prototype would still apply. */ 9807 builtin and then its argument prototype would still apply. */
9851 char SOCKSinit(); 9808 char SOCKSinit();
9852 9809
9853 int main() { 9810 int main() {
9854 SOCKSinit() 9811 SOCKSinit()
9855 ; return 0; } 9812 ; return 0; }
9856 EOF 9813 EOF
9857 if { (eval echo configure:9858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9814 if { (eval echo configure:9815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9858 rm -rf conftest* 9815 rm -rf conftest*
9859 eval "ac_cv_lib_$ac_lib_var=yes" 9816 eval "ac_cv_lib_$ac_lib_var=yes"
9860 else 9817 else
9861 echo "configure: failed program was:" >&5 9818 echo "configure: failed program was:" >&5
9862 cat conftest.$ac_ext >&5 9819 cat conftest.$ac_ext >&5