Mercurial > hg > xemacs-beta
comparison configure @ 151:59463afc5666 r20-3b2
Import from CVS: tag r20-3b2
| author | cvs |
|---|---|
| date | Mon, 13 Aug 2007 09:37:19 +0200 |
| parents | 538048ae2ab8 |
| children | 25f70ba0133c |
comparison
equal
deleted
inserted
replaced
| 150:8ebb1c0f0f6f | 151:59463afc5666 |
|---|---|
| 174 fi | 174 fi |
| 175 done | 175 done |
| 176 | 176 |
| 177 | 177 |
| 178 ac_ext=c | 178 ac_ext=c |
| 179 xe_cppflags='$c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS $CPPFLAGS' # $c_switch_x_machine $c_switch_x_system' | 179 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' |
| 180 xe_ldflags='$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site' # $ld_switch_x_machine $ld_switch_x_system' | 180 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' |
| 181 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' | 181 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' |
| 182 ac_cpp='$CPP '"$xe_cppflags" | 182 ac_cpp='$CPP '"$xe_cppflags" |
| 183 ac_compile='${CC-cc} -c '"$CFLAGS $xe_cppflags"' conftest.$ac_ext 1>&5' | 183 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' |
| 184 ac_link='${CC-cc} -o conftest '"$CFLAGS $xe_cppflags $LDFLAGS $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | 184 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' |
| 185 cross_compiling=no | 185 cross_compiling=no |
| 186 | 186 |
| 187 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 187 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 188 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 188 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 189 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 189 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 200 progname="`echo $0 | sed 's:^\./\./:\./:'`" | 200 progname="`echo $0 | sed 's:^\./\./:\./:'`" |
| 201 | 201 |
| 202 | 202 |
| 203 cache_file=/dev/null | 203 cache_file=/dev/null |
| 204 | 204 |
| 205 MAKE_SUBDIR="src lib-src" | 205 MAKE_SUBDIR="$MAKE_SUBDIR lib-src" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src\" to \$MAKE_SUBDIR"; fi |
| 206 | 206 |
| 207 prefix='/usr/local' | 207 prefix='/usr/local' |
| 208 exec_prefix='${prefix}' | 208 exec_prefix='${prefix}' |
| 209 bindir='${exec_prefix}/bin' | 209 bindir='${exec_prefix}/bin' |
| 210 datadir='${prefix}/lib' | 210 datadir='${prefix}/lib' |
| 232 with_x11='' | 232 with_x11='' |
| 233 rel_alloc='default' | 233 rel_alloc='default' |
| 234 use_system_malloc='default' | 234 use_system_malloc='default' |
| 235 energize_version='' | 235 energize_version='' |
| 236 native_sound_lib='' | 236 native_sound_lib='' |
| 237 error_check_default='no' | 237 error_check_default='yes' |
| 238 error_check_extents=$error_check_default | 238 error_check_extents=$error_check_default |
| 239 error_check_typecheck=$error_check_default | 239 error_check_typecheck=$error_check_default |
| 240 error_check_bufpos=$error_check_default | 240 error_check_bufpos=$error_check_default |
| 241 error_check_gc=$error_check_default | 241 error_check_gc=$error_check_default |
| 242 error_check_malloc=$error_check_default | 242 error_check_malloc=$error_check_default |
| 243 debug=$error_check_default | 243 debug=$error_check_default |
| 244 extra_verbose=$error_check_default | |
| 244 use_assertions='yes' | 245 use_assertions='yes' |
| 245 with_gif='' | 246 with_gif='' |
| 246 with_toolbars='' | 247 with_toolbars='' |
| 247 use_union_type='no' | 248 use_union_type='no' |
| 248 with_dnet='' | 249 with_dnet='' |
| 371 --with-kerberos support Kerberos-authenticated POP | 372 --with-kerberos support Kerberos-authenticated POP |
| 372 --with-hesiod support Hesiod to get the POP server host | 373 --with-hesiod support Hesiod to get the POP server host |
| 373 --with-dnet (*) Compile with support for DECnet. | 374 --with-dnet (*) Compile with support for DECnet. |
| 374 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent | 375 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent |
| 375 concurrent updates of mail spool files. Valid types | 376 concurrent updates of mail spool files. Valid types |
| 376 are \`lockf', \`flock', and \`lock-file'. | 377 are \`lockf', \`flock', and \`file'. |
| 377 | 378 |
| 378 Internationalization options: | 379 Internationalization options: |
| 379 | 380 |
| 380 --with-mule Compile with Mule (MUlti-Lingual Emacs) support, | 381 --with-mule Compile with Mule (MUlti-Lingual Emacs) support, |
| 381 needed to suport non-Latin-1 (including Asian) languages. | 382 needed to suport non-Latin-1 (including Asian) languages. |
| 382 --with-xim=xlib Compile with support for X input methods, | 383 --with-xim=xlib Compile with support for X input methods, |
| 383 --with-xim=motif (*) Used in conjunction with Mule support. | 384 --with-xim=motif (*) Used in conjunction with Mule support. |
| 384 Use either raw Xlib to provide XIM support, or | 385 Use either raw Xlib to provide XIM support, or |
| 385 the Motif XmIm* routines (when available). | 386 the Motif XmIm* routines (when available). |
| 386 If the XmIm* routines are autodetected, | 387 NOTE: On some systems bugs in X11's XIM support |
| 387 then the default is --with-xim=motif, else --with-xim=no. | 388 will cause XEmacs to crash, so by default, |
| 388 NOTE: On some systems like SunOS4 use of this option | 389 no XIM support is compiled in, unless running |
| 389 will cause XEmacs to crash at startup. | 390 on Solaris and the XmIm* routines are detected. |
| 390 --with-canna (*) Compile with support for Canna (a Japanese input method | 391 --with-canna (*) Compile with support for Canna (a Japanese input method |
| 391 used in conjunction with Mule support). | 392 used in conjunction with Mule support). |
| 392 --with-wnn (*) Compile with support for WNN (a multi-language input method | 393 --with-wnn (*) Compile with support for WNN (a multi-language input method |
| 393 used in conjunction with Mule support). | 394 used in conjunction with Mule support). |
| 394 This is beta level code. | 395 This is beta level code. |
| 585 with_database_berkdb=no | 586 with_database_berkdb=no |
| 586 with_database_dbm=no | 587 with_database_dbm=no |
| 587 with_database_gnudbm=no | 588 with_database_gnudbm=no |
| 588 for x in `echo "$val" | sed 's/,/ /'` ; do | 589 for x in `echo "$val" | sed 's/,/ /'` ; do |
| 589 case "$x" in | 590 case "$x" in |
| 590 no ) : ;; | 591 no ) ;; |
| 591 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; | 592 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;; |
| 592 d | db | dbm ) with_database_dbm=yes ;; | 593 d | db | dbm ) with_database_dbm=yes ;; |
| 593 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; | 594 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;; |
| 594 * ) (echo "$progname: Usage error:" | 595 * ) (echo "$progname: Usage error:" |
| 595 echo " " "The \`--$optname' option value | 596 echo " " "The \`--$optname' option value |
| 597 of one or more of \`berkdb', \`dbm', or \`gnudbm'." | 598 of one or more of \`berkdb', \`dbm', or \`gnudbm'." |
| 598 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | 599 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 599 esac | 600 esac |
| 600 done | 601 done |
| 601 if test "$with_database_dbm" = "yes" -a \ | 602 if test "$with_database_dbm" = "yes" -a \ |
| 602 "$with_database_gnudbm" = "yes" ; then | 603 "$with_database_gnudbm" = "yes"; then |
| 603 (echo "$progname: Usage error:" | 604 (echo "$progname: Usage error:" |
| 604 echo " " "Only one of \`dbm' and \`gnudbm' may be specified | 605 echo " " "Only one of \`dbm' and \`gnudbm' may be specified |
| 605 with the \`--$optname' option." | 606 with the \`--$optname' option." |
| 606 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | 607 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
| 607 fi | 608 fi |
| 638 | 639 |
| 639 "mail_locking" ) | 640 "mail_locking" ) |
| 640 case "$val" in | 641 case "$val" in |
| 641 lockf ) val=lockf ;; | 642 lockf ) val=lockf ;; |
| 642 flock ) val=flock ;; | 643 flock ) val=flock ;; |
| 643 file ) val=file ;; | 644 file ) val=file ;; |
| 644 * ) (echo "$progname: Usage error:" | 645 * ) (echo "$progname: Usage error:" |
| 645 echo " " "The \`--$optname' option must have one of these values: | 646 echo " " "The \`--$optname' option must have one of these values: |
| 646 \`lockf', \`flock', or \`file'." | 647 \`lockf', \`flock', or \`file'." |
| 647 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; | 648 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; |
| 648 esac | 649 esac |
| 682 fi | 683 fi |
| 683 (echo "$progname: Usage error:" | 684 (echo "$progname: Usage error:" |
| 684 echo " " "Valid types for the \`--$optname' option are: | 685 echo " " "Valid types for the \`--$optname' option are: |
| 685 $types." | 686 $types." |
| 686 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 | 687 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 |
| 687 elif test "$new_default" ; then | 688 elif test -n "$new_default" ; then |
| 688 error_check_extents=$new_default | 689 error_check_extents=$new_default |
| 689 error_check_typecheck=$new_default | 690 error_check_typecheck=$new_default |
| 690 error_check_bufpos=$new_default | 691 error_check_bufpos=$new_default |
| 691 error_check_gc=$new_default | 692 error_check_gc=$new_default |
| 692 error_check_malloc=$new_default | 693 error_check_malloc=$new_default |
| 698 | 699 |
| 699 | 700 |
| 700 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ | 701 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ |
| 701 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \ | 702 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \ |
| 702 sitelispdir | docdir ) | 703 sitelispdir | docdir ) |
| 703 if test "$valomitted" = "yes" ; then | 704 if test "$valomitted" = "yes"; then |
| 704 if test "$#" = 0 ; then | 705 if test "$#" = 0; then |
| 705 (echo "$progname: Usage error:" | 706 (echo "$progname: Usage error:" |
| 706 echo " " "The \`--$optname' option requires a value." | 707 echo " " "The \`--$optname' option requires a value." |
| 707 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; | 708 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; |
| 708 fi | 709 fi |
| 709 val="$1"; shift | 710 val="$1"; shift |
| 767 | 768 |
| 768 eval set x "$quoted_arguments"; shift | 769 eval set x "$quoted_arguments"; shift |
| 769 | 770 |
| 770 if test "$with_energize" = "yes" ; then | 771 if test "$with_energize" = "yes" ; then |
| 771 with_menubars=lucid with_scrollbars=motif with_dialogs=motif with_tooltalk=yes | 772 with_menubars=lucid with_scrollbars=motif with_dialogs=motif with_tooltalk=yes |
| 772 MAKE_SUBDIR="$MAKE_SUBDIR lwlib/energize" | 773 MAKE_SUBDIR="$MAKE_SUBDIR lwlib/energize" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib/energize\" to \$MAKE_SUBDIR"; fi |
| 773 fi | 774 fi |
| 774 | 775 |
| 775 test "$extra_verbose" = "yes" && verbose=yes | 776 test "$extra_verbose" = "yes" && verbose=yes |
| 776 | |
| 777 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias | |
| 778 if test "$with_workshop" = "yes"; then | |
| 779 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 780 Defining SUNPRO | |
| 781 EOF | |
| 782 cat >> confdefs.h <<\EOF | |
| 783 #define SUNPRO 1 | |
| 784 EOF | |
| 785 } | |
| 786 | |
| 787 extra_objs="$extra_objs sunpro.o" | |
| 788 with_tooltalk=yes | |
| 789 fi | |
| 790 | 777 |
| 791 case "site_includes" in *:* ) site_includes="`echo $site_includes | sed 's/:/ /g'`";; esac | 778 case "site_includes" in *:* ) site_includes="`echo $site_includes | sed 's/:/ /g'`";; esac |
| 792 case "site_libraries" in *:* ) site_libraries="`echo $site_libraries | sed 's/:/ /g'`";; esac | 779 case "site_libraries" in *:* ) site_libraries="`echo $site_libraries | sed 's/:/ /g'`";; esac |
| 793 case "site_runtime_libraries" in *:* ) site_runtime_libraries="`echo $site_runtime_libraries | sed 's/:/ /g'`";; esac | 780 case "site_runtime_libraries" in *:* ) site_runtime_libraries="`echo $site_runtime_libraries | sed 's/:/ /g'`";; esac |
| 794 | |
| 795 if test "$debug" = "yes"; then | |
| 796 use_assertions=yes memory_usage_stats=yes | |
| 797 extra_objs="$extra_objs debug.o" | |
| 798 fi | |
| 799 | 781 |
| 800 test -n "$with_x" && with_x11="$with_x" | 782 test -n "$with_x" && with_x11="$with_x" |
| 801 | 783 |
| 802 if test "$run_in_place" = "yes"; then | 784 if test "$run_in_place" = "yes"; then |
| 803 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2 | 785 echo "configure: warning: "The --run-in-place option is ignored because it is unnecessary."" 1>&2 |
| 851 fi | 833 fi |
| 852 ;; | 834 ;; |
| 853 esac | 835 esac |
| 854 | 836 |
| 855 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 837 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 856 echo "configure:857: checking whether ln -s works" >&5 | 838 echo "configure:839: checking whether ln -s works" >&5 |
| 857 | 839 |
| 858 rm -f conftestdata | 840 rm -f conftestdata |
| 859 if ln -s X conftestdata 2>/dev/null | 841 if ln -s X conftestdata 2>/dev/null |
| 860 then | 842 then |
| 861 rm -f conftestdata | 843 rm -f conftestdata |
| 906 vpath %.l $(srcdir)\ | 888 vpath %.l $(srcdir)\ |
| 907 vpath %.s $(srcdir)\ | 889 vpath %.s $(srcdir)\ |
| 908 vpath %.in $(srcdir)' | 890 vpath %.in $(srcdir)' |
| 909 fi | 891 fi |
| 910 | 892 |
| 911 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do | |
| 912 test ! -d "$dir" && mkdir "$dir" | |
| 913 done | |
| 914 if test "$with_energize" = "yes" -a ! -d ./lwlib/energize; then | |
| 915 mkdir ./lwlib/energize | |
| 916 fi | |
| 917 | |
| 918 | 893 |
| 919 echo "checking "the configuration name"" 1>&6 | 894 echo "checking "the configuration name"" 1>&6 |
| 920 echo "configure:921: checking "the configuration name"" >&5 | 895 echo "configure:896: checking "the configuration name"" >&5 |
| 921 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'` | 896 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'` |
| 922 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else | 897 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else |
| 923 exit $? | 898 exit $? |
| 924 fi | 899 fi |
| 925 | 900 |
| 926 | 901 |
| 927 | 902 |
| 928 | 903 |
| 929 | 904 |
| 930 machine='' opsys='' need_dynodump=no | 905 machine='' opsys='' |
| 931 | 906 |
| 932 case "$canonical" in | 907 case "$canonical" in |
| 933 sparc-*-* ) machine=sparc ;; | 908 sparc-*-* ) machine=sparc ;; |
| 934 alpha-*-* ) machine=alpha ;; | 909 alpha-*-* ) machine=alpha ;; |
| 935 vax-*-* ) machine=vax ;; | 910 vax-*-* ) machine=vax ;; |
| 980 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;; | 955 *-*-sysv2.2 | *-*-sysvr2.2 ) opsys=usg5-2-2 ;; |
| 981 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;; | 956 *-*-sysv3* | *-*-sysvr3* ) opsys=usg5-3 ;; |
| 982 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;; | 957 *-*-sysv4.1* | *-*-sysvr4.1* )opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;; |
| 983 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | 958 *-*-sysv4.[2-9]* | *-sysvr4.[2-9]* ) |
| 984 if test -z "$NON_GNU_CPP" ; then | 959 if test -z "$NON_GNU_CPP" ; then |
| 985 if test -f /usr/ccs/lib/cpp | 960 for prog in "/usr/ccs/lib/cpp" "/lib/cpp"; do |
| 986 then NON_GNU_CPP=/usr/ccs/lib/cpp | 961 if test -f "$prog"; then NON_GNU_CPP="$prog"; break; fi |
| 987 else NON_GNU_CPP=/lib/cpp | 962 done |
| 988 fi | |
| 989 fi | 963 fi |
| 990 opsys=usg5-4-2 ;; | 964 opsys=usg5-4-2 ;; |
| 991 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | 965 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; |
| 992 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;; | 966 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;; |
| 993 esac | 967 esac |
| 1081 case "$canonical" in | 1055 case "$canonical" in |
| 1082 *-hp-hpux7* ) opsys=hpux ;; | 1056 *-hp-hpux7* ) opsys=hpux ;; |
| 1083 *-hp-hpux8* ) opsys=hpux8 ;; | 1057 *-hp-hpux8* ) opsys=hpux8 ;; |
| 1084 *-hp-hpux9* ) opsys=hpux9 ;; | 1058 *-hp-hpux9* ) opsys=hpux9 ;; |
| 1085 *-hp-hpux10* ) opsys=hpux10 ;; | 1059 *-hp-hpux10* ) opsys=hpux10 ;; |
| 1086 * ) | 1060 * ) opsys=hpux ;; |
| 1087 case "`uname -r`" in | |
| 1088 *.B8.* ) opsys=hpux8 ;; | |
| 1089 *.08.* ) opsys=hpux8 ;; | |
| 1090 *.09.* ) opsys=hpux9 ;; | |
| 1091 *.10.* ) opsys=hpux10 ;; | |
| 1092 * ) opsys=hpux ;; | |
| 1093 esac | |
| 1094 ;; | |
| 1095 esac | 1061 esac |
| 1096 | 1062 |
| 1097 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o";; esac | 1063 case "$opsys" in hpux9 | hpux10 ) extra_objs="$extra_objs strcat.o" && if test "$extra_verbose" = "yes"; then |
| 1064 echo " xemacs will be linked with \"strcat.o\"" | |
| 1065 fi ;; esac | |
| 1098 | 1066 |
| 1099 if test "$opsys" = "hpux10"; then ansi_flag="-Ae"; else ansi_flag="-Aa"; fi | 1067 if test "$opsys" = "hpux10"; then ansi_flag="-Ae"; else ansi_flag="-Aa"; fi |
| 1100 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E" | 1068 NON_GNU_CC="cc $ansi_flag" NON_GNU_CPP="cc $ansi_flag -E" |
| 1101 | 1069 |
| 1102 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac | 1070 case "$canonical" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac |
| 1203 *-sunos4* ) | 1171 *-sunos4* ) |
| 1204 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; | 1172 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;; |
| 1205 *-solaris2* ) | 1173 *-solaris2* ) |
| 1206 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp | 1174 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp |
| 1207 RANLIB=':' | 1175 RANLIB=':' |
| 1208 case "$canonical" in *-solaris2.[0-5]* ) need_dynodump=yes ;; esac | 1176 esac |
| 1209 esac | |
| 1210 | 1177 |
| 1211 case "$canonical" in | 1178 case "$canonical" in |
| 1212 i[3-9]86-*-sunos4*) opsys=sunos4-0 ;; | 1179 i[3-9]86-*-sunos4*) opsys=sunos4-0 ;; |
| 1213 *-sunos4.0* ) opsys=sunos4-0 ;; | 1180 *-sunos4.0* ) opsys=sunos4-0 ;; |
| 1214 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; | 1181 *-sunos4.1.2* ) opsys=sunos4-1-2 ;; |
| 1316 | 1283 |
| 1317 machfile="m/${machine}.h" | 1284 machfile="m/${machine}.h" |
| 1318 opsysfile="s/${opsys}.h" | 1285 opsysfile="s/${opsys}.h" |
| 1319 | 1286 |
| 1320 | 1287 |
| 1288 if test "$debug" = "yes"; then | |
| 1289 use_assertions=yes memory_usage_stats=yes | |
| 1290 extra_objs="$extra_objs debug.o" && if test "$extra_verbose" = "yes"; then | |
| 1291 echo " xemacs will be linked with \"debug.o\"" | |
| 1292 fi | |
| 1293 fi | |
| 1294 | |
| 1295 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias | |
| 1296 if test "$with_workshop" = "yes"; then | |
| 1297 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 1298 Defining SUNPRO | |
| 1299 EOF | |
| 1300 cat >> confdefs.h <<\EOF | |
| 1301 #define SUNPRO 1 | |
| 1302 EOF | |
| 1303 } | |
| 1304 | |
| 1305 extra_objs="$extra_objs sunpro.o" && if test "$extra_verbose" = "yes"; then | |
| 1306 echo " xemacs will be linked with \"sunpro.o\"" | |
| 1307 fi | |
| 1308 with_tooltalk=yes | |
| 1309 fi | |
| 1310 | |
| 1321 test -n "$CC" && cc_specified=yes | 1311 test -n "$CC" && cc_specified=yes |
| 1322 | 1312 |
| 1323 SPECIFIED_CFLAGS="$CFLAGS" | 1313 SPECIFIED_CFLAGS="$CFLAGS" |
| 1324 | 1314 |
| 1325 if test -n "$compiler"; then CC="$compiler"; fi | 1315 if test -n "$compiler"; then CC="$compiler"; fi |
| 1326 | 1316 |
| 1327 test -n "$NON_GNU_CC" -a "$with_gcc" = "no" -a -z "$CC" && CC="$NON_GNU_CC" | 1317 test -n "$NON_GNU_CC" -a "$with_gcc" = "no" -a -z "$CC" && CC="$NON_GNU_CC" |
| 1328 # Extract the first word of "gcc", so it can be a program name with args. | 1318 # Extract the first word of "gcc", so it can be a program name with args. |
| 1329 set dummy gcc; ac_word=$2 | 1319 set dummy gcc; ac_word=$2 |
| 1330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1331 echo "configure:1332: checking for $ac_word" >&5 | 1321 echo "configure:1322: checking for $ac_word" >&5 |
| 1332 | 1322 |
| 1333 if test -n "$CC"; then | 1323 if test -n "$CC"; then |
| 1334 ac_cv_prog_CC="$CC" # Let the user override the test. | 1324 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1335 else | 1325 else |
| 1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1352 | 1342 |
| 1353 if test -z "$CC"; then | 1343 if test -z "$CC"; then |
| 1354 # Extract the first word of "cc", so it can be a program name with args. | 1344 # Extract the first word of "cc", so it can be a program name with args. |
| 1355 set dummy cc; ac_word=$2 | 1345 set dummy cc; ac_word=$2 |
| 1356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1357 echo "configure:1358: checking for $ac_word" >&5 | 1347 echo "configure:1348: checking for $ac_word" >&5 |
| 1358 | 1348 |
| 1359 if test -n "$CC"; then | 1349 if test -n "$CC"; then |
| 1360 ac_cv_prog_CC="$CC" # Let the user override the test. | 1350 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1361 else | 1351 else |
| 1362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1397 | 1387 |
| 1398 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1388 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 1399 fi | 1389 fi |
| 1400 | 1390 |
| 1401 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1391 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 1402 echo "configure:1403: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1392 echo "configure:1393: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 1403 | 1393 |
| 1404 ac_ext=c | 1394 ac_ext=c |
| 1405 xe_cppflags='$c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS $CPPFLAGS' # $c_switch_x_machine $c_switch_x_system' | 1395 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' |
| 1406 xe_ldflags='$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site' # $ld_switch_x_machine $ld_switch_x_system' | 1396 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' |
| 1407 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' | 1397 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' |
| 1408 ac_cpp='$CPP '"$xe_cppflags" | 1398 ac_cpp='$CPP '"$xe_cppflags" |
| 1409 ac_compile='${CC-cc} -c '"$CFLAGS $xe_cppflags"' conftest.$ac_ext 1>&5' | 1399 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' |
| 1410 ac_link='${CC-cc} -o conftest '"$CFLAGS $xe_cppflags $LDFLAGS $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | 1400 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' |
| 1411 cross_compiling=no | 1401 cross_compiling=no |
| 1412 | 1402 |
| 1413 cat > conftest.$ac_ext <<EOF | 1403 cat > conftest.$ac_ext <<EOF |
| 1414 #line 1415 "configure" | 1404 #line 1405 "configure" |
| 1415 #include "confdefs.h" | 1405 #include "confdefs.h" |
| 1416 main(){return(0);} | 1406 main(){return(0);} |
| 1417 EOF | 1407 EOF |
| 1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1419 ac_cv_prog_cc_works=yes | 1409 ac_cv_prog_cc_works=yes |
| 1420 # If we can't run a trivial program, we are probably using a cross compiler. | 1410 # If we can't run a trivial program, we are probably using a cross compiler. |
| 1421 if (./conftest; exit) 2>/dev/null; then | 1411 if (./conftest; exit) 2>/dev/null; then |
| 1422 ac_cv_prog_cc_cross=no | 1412 ac_cv_prog_cc_cross=no |
| 1423 else | 1413 else |
| 1433 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1423 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1434 if test $ac_cv_prog_cc_works = no; then | 1424 if test $ac_cv_prog_cc_works = no; then |
| 1435 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1425 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1436 fi | 1426 fi |
| 1437 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1427 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 1438 echo "configure:1439: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1428 echo "configure:1429: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 1439 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1429 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1440 cross_compiling=$ac_cv_prog_cc_cross | 1430 cross_compiling=$ac_cv_prog_cc_cross |
| 1441 | 1431 |
| 1442 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1432 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1443 echo "configure:1444: checking whether we are using GNU C" >&5 | 1433 echo "configure:1434: checking whether we are using GNU C" >&5 |
| 1444 | 1434 |
| 1445 cat > conftest.c <<EOF | 1435 cat > conftest.c <<EOF |
| 1446 #ifdef __GNUC__ | 1436 #ifdef __GNUC__ |
| 1447 yes; | 1437 yes; |
| 1448 #endif | 1438 #endif |
| 1449 EOF | 1439 EOF |
| 1450 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1440 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1451 ac_cv_prog_gcc=yes | 1441 ac_cv_prog_gcc=yes |
| 1452 else | 1442 else |
| 1453 ac_cv_prog_gcc=no | 1443 ac_cv_prog_gcc=no |
| 1454 fi | 1444 fi |
| 1455 | 1445 |
| 1459 GCC=yes | 1449 GCC=yes |
| 1460 ac_test_CFLAGS="${CFLAGS+set}" | 1450 ac_test_CFLAGS="${CFLAGS+set}" |
| 1461 ac_save_CFLAGS="$CFLAGS" | 1451 ac_save_CFLAGS="$CFLAGS" |
| 1462 CFLAGS= | 1452 CFLAGS= |
| 1463 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1453 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1464 echo "configure:1465: checking whether ${CC-cc} accepts -g" >&5 | 1454 echo "configure:1455: checking whether ${CC-cc} accepts -g" >&5 |
| 1465 | 1455 |
| 1466 echo 'void f(){}' > conftest.c | 1456 echo 'void f(){}' > conftest.c |
| 1467 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1457 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 1468 ac_cv_prog_cc_g=yes | 1458 ac_cv_prog_cc_g=yes |
| 1469 else | 1459 else |
| 1484 GCC= | 1474 GCC= |
| 1485 test "${CFLAGS+set}" = set || CFLAGS="-g" | 1475 test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 1486 fi | 1476 fi |
| 1487 | 1477 |
| 1488 | 1478 |
| 1489 if test "$with_gcc" = "no" -a "$ac_cv_prog_gcc" = "yes"; then | 1479 if test "$with_gcc" = "no" -a "$ac_cv_prog_gcc" = "yes"; then |
| 1490 CC=${NON_GNU_CC-cc} | 1480 CC=${NON_GNU_CC-cc} |
| 1491 # Extract the first word of "gcc", so it can be a program name with args. | 1481 # Extract the first word of "gcc", so it can be a program name with args. |
| 1492 set dummy gcc; ac_word=$2 | 1482 set dummy gcc; ac_word=$2 |
| 1493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1494 echo "configure:1495: checking for $ac_word" >&5 | 1484 echo "configure:1485: checking for $ac_word" >&5 |
| 1495 | 1485 |
| 1496 if test -n "$CC"; then | 1486 if test -n "$CC"; then |
| 1497 ac_cv_prog_CC="$CC" # Let the user override the test. | 1487 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1498 else | 1488 else |
| 1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1515 | 1505 |
| 1516 if test -z "$CC"; then | 1506 if test -z "$CC"; then |
| 1517 # Extract the first word of "cc", so it can be a program name with args. | 1507 # Extract the first word of "cc", so it can be a program name with args. |
| 1518 set dummy cc; ac_word=$2 | 1508 set dummy cc; ac_word=$2 |
| 1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1520 echo "configure:1521: checking for $ac_word" >&5 | 1510 echo "configure:1511: checking for $ac_word" >&5 |
| 1521 | 1511 |
| 1522 if test -n "$CC"; then | 1512 if test -n "$CC"; then |
| 1523 ac_cv_prog_CC="$CC" # Let the user override the test. | 1513 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1524 else | 1514 else |
| 1525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1560 | 1550 |
| 1561 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1551 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 1562 fi | 1552 fi |
| 1563 | 1553 |
| 1564 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1554 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 1565 echo "configure:1566: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1555 echo "configure:1556: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 1566 | 1556 |
| 1567 ac_ext=c | 1557 ac_ext=c |
| 1568 xe_cppflags='$c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS $CPPFLAGS' # $c_switch_x_machine $c_switch_x_system' | 1558 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' |
| 1569 xe_ldflags='$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site' # $ld_switch_x_machine $ld_switch_x_system' | 1559 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' |
| 1570 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' | 1560 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' |
| 1571 ac_cpp='$CPP '"$xe_cppflags" | 1561 ac_cpp='$CPP '"$xe_cppflags" |
| 1572 ac_compile='${CC-cc} -c '"$CFLAGS $xe_cppflags"' conftest.$ac_ext 1>&5' | 1562 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' |
| 1573 ac_link='${CC-cc} -o conftest '"$CFLAGS $xe_cppflags $LDFLAGS $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | 1563 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' |
| 1574 cross_compiling=no | 1564 cross_compiling=no |
| 1575 | 1565 |
| 1576 cat > conftest.$ac_ext <<EOF | 1566 cat > conftest.$ac_ext <<EOF |
| 1577 #line 1578 "configure" | 1567 #line 1568 "configure" |
| 1578 #include "confdefs.h" | 1568 #include "confdefs.h" |
| 1579 main(){return(0);} | 1569 main(){return(0);} |
| 1580 EOF | 1570 EOF |
| 1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1571 if { (eval echo configure:1572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1582 ac_cv_prog_cc_works=yes | 1572 ac_cv_prog_cc_works=yes |
| 1583 # If we can't run a trivial program, we are probably using a cross compiler. | 1573 # If we can't run a trivial program, we are probably using a cross compiler. |
| 1584 if (./conftest; exit) 2>/dev/null; then | 1574 if (./conftest; exit) 2>/dev/null; then |
| 1585 ac_cv_prog_cc_cross=no | 1575 ac_cv_prog_cc_cross=no |
| 1586 else | 1576 else |
| 1596 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1586 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1597 if test $ac_cv_prog_cc_works = no; then | 1587 if test $ac_cv_prog_cc_works = no; then |
| 1598 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1588 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1599 fi | 1589 fi |
| 1600 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1590 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 1601 echo "configure:1602: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1591 echo "configure:1592: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 1602 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1592 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1603 cross_compiling=$ac_cv_prog_cc_cross | 1593 cross_compiling=$ac_cv_prog_cc_cross |
| 1604 | 1594 |
| 1605 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1595 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1606 echo "configure:1607: checking whether we are using GNU C" >&5 | 1596 echo "configure:1597: checking whether we are using GNU C" >&5 |
| 1607 | 1597 |
| 1608 cat > conftest.c <<EOF | 1598 cat > conftest.c <<EOF |
| 1609 #ifdef __GNUC__ | 1599 #ifdef __GNUC__ |
| 1610 yes; | 1600 yes; |
| 1611 #endif | 1601 #endif |
| 1612 EOF | 1602 EOF |
| 1613 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1603 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1614 ac_cv_prog_gcc=yes | 1604 ac_cv_prog_gcc=yes |
| 1615 else | 1605 else |
| 1616 ac_cv_prog_gcc=no | 1606 ac_cv_prog_gcc=no |
| 1617 fi | 1607 fi |
| 1618 | 1608 |
| 1622 GCC=yes | 1612 GCC=yes |
| 1623 ac_test_CFLAGS="${CFLAGS+set}" | 1613 ac_test_CFLAGS="${CFLAGS+set}" |
| 1624 ac_save_CFLAGS="$CFLAGS" | 1614 ac_save_CFLAGS="$CFLAGS" |
| 1625 CFLAGS= | 1615 CFLAGS= |
| 1626 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1616 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1627 echo "configure:1628: checking whether ${CC-cc} accepts -g" >&5 | 1617 echo "configure:1618: checking whether ${CC-cc} accepts -g" >&5 |
| 1628 | 1618 |
| 1629 echo 'void f(){}' > conftest.c | 1619 echo 'void f(){}' > conftest.c |
| 1630 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1620 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 1631 ac_cv_prog_cc_g=yes | 1621 ac_cv_prog_cc_g=yes |
| 1632 else | 1622 else |
| 1646 else | 1636 else |
| 1647 GCC= | 1637 GCC= |
| 1648 test "${CFLAGS+set}" = set || CFLAGS="-g" | 1638 test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 1649 fi | 1639 fi |
| 1650 | 1640 |
| 1651 elif test "$with_gcc" = "yes" -a "$ac_cv_prog_gcc" = "no" ; then | 1641 elif test "$with_gcc" = "yes" -a "$ac_cv_prog_gcc" = "no" ; then |
| 1652 CC=gcc | 1642 CC=gcc |
| 1653 # Extract the first word of "gcc", so it can be a program name with args. | 1643 # Extract the first word of "gcc", so it can be a program name with args. |
| 1654 set dummy gcc; ac_word=$2 | 1644 set dummy gcc; ac_word=$2 |
| 1655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1656 echo "configure:1657: checking for $ac_word" >&5 | 1646 echo "configure:1647: checking for $ac_word" >&5 |
| 1657 | 1647 |
| 1658 if test -n "$CC"; then | 1648 if test -n "$CC"; then |
| 1659 ac_cv_prog_CC="$CC" # Let the user override the test. | 1649 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1660 else | 1650 else |
| 1661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1677 | 1667 |
| 1678 if test -z "$CC"; then | 1668 if test -z "$CC"; then |
| 1679 # Extract the first word of "cc", so it can be a program name with args. | 1669 # Extract the first word of "cc", so it can be a program name with args. |
| 1680 set dummy cc; ac_word=$2 | 1670 set dummy cc; ac_word=$2 |
| 1681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1682 echo "configure:1683: checking for $ac_word" >&5 | 1672 echo "configure:1673: checking for $ac_word" >&5 |
| 1683 | 1673 |
| 1684 if test -n "$CC"; then | 1674 if test -n "$CC"; then |
| 1685 ac_cv_prog_CC="$CC" # Let the user override the test. | 1675 ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1686 else | 1676 else |
| 1687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 1722 | 1712 |
| 1723 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1713 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 1724 fi | 1714 fi |
| 1725 | 1715 |
| 1726 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1716 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 1727 echo "configure:1728: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1717 echo "configure:1718: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 1728 | 1718 |
| 1729 ac_ext=c | 1719 ac_ext=c |
| 1730 xe_cppflags='$c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS $CPPFLAGS' # $c_switch_x_machine $c_switch_x_system' | 1720 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' |
| 1731 xe_ldflags='$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site' # $ld_switch_x_machine $ld_switch_x_system' | 1721 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' |
| 1732 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' | 1722 xe_libs='$xe_check_libs $X_PRE_LIBS $libs_x $X_EXTRA_LIBS $LIBS $libs_machine $libs_system $libs_standard' |
| 1733 ac_cpp='$CPP '"$xe_cppflags" | 1723 ac_cpp='$CPP '"$xe_cppflags" |
| 1734 ac_compile='${CC-cc} -c '"$CFLAGS $xe_cppflags"' conftest.$ac_ext 1>&5' | 1724 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' |
| 1735 ac_link='${CC-cc} -o conftest '"$CFLAGS $xe_cppflags $LDFLAGS $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | 1725 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' |
| 1736 cross_compiling=no | 1726 cross_compiling=no |
| 1737 | 1727 |
| 1738 cat > conftest.$ac_ext <<EOF | 1728 cat > conftest.$ac_ext <<EOF |
| 1739 #line 1740 "configure" | 1729 #line 1730 "configure" |
| 1740 #include "confdefs.h" | 1730 #include "confdefs.h" |
| 1741 main(){return(0);} | 1731 main(){return(0);} |
| 1742 EOF | 1732 EOF |
| 1743 if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 1733 if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 1744 ac_cv_prog_cc_works=yes | 1734 ac_cv_prog_cc_works=yes |
| 1745 # If we can't run a trivial program, we are probably using a cross compiler. | 1735 # If we can't run a trivial program, we are probably using a cross compiler. |
| 1746 if (./conftest; exit) 2>/dev/null; then | 1736 if (./conftest; exit) 2>/dev/null; then |
| 1747 ac_cv_prog_cc_cross=no | 1737 ac_cv_prog_cc_cross=no |
| 1748 else | 1738 else |
| 1758 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1748 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1759 if test $ac_cv_prog_cc_works = no; then | 1749 if test $ac_cv_prog_cc_works = no; then |
| 1760 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1750 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1761 fi | 1751 fi |
| 1762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1752 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 1763 echo "configure:1764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1753 echo "configure:1754: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 1764 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1754 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1765 cross_compiling=$ac_cv_prog_cc_cross | 1755 cross_compiling=$ac_cv_prog_cc_cross |
| 1766 | 1756 |
| 1767 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1757 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1768 echo "configure:1769: checking whether we are using GNU C" >&5 | 1758 echo "configure:1759: checking whether we are using GNU C" >&5 |
| 1769 | 1759 |
| 1770 cat > conftest.c <<EOF | 1760 cat > conftest.c <<EOF |
| 1771 #ifdef __GNUC__ | 1761 #ifdef __GNUC__ |
| 1772 yes; | 1762 yes; |
| 1773 #endif | 1763 #endif |
| 1774 EOF | 1764 EOF |
| 1775 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1765 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1776 ac_cv_prog_gcc=yes | 1766 ac_cv_prog_gcc=yes |
| 1777 else | 1767 else |
| 1778 ac_cv_prog_gcc=no | 1768 ac_cv_prog_gcc=no |
| 1779 fi | 1769 fi |
| 1780 | 1770 |
| 1784 GCC=yes | 1774 GCC=yes |
| 1785 ac_test_CFLAGS="${CFLAGS+set}" | 1775 ac_test_CFLAGS="${CFLAGS+set}" |
| 1786 ac_save_CFLAGS="$CFLAGS" | 1776 ac_save_CFLAGS="$CFLAGS" |
| 1787 CFLAGS= | 1777 CFLAGS= |
| 1788 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1778 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1789 echo "configure:1790: checking whether ${CC-cc} accepts -g" >&5 | 1779 echo "configure:1780: checking whether ${CC-cc} accepts -g" >&5 |
| 1790 | 1780 |
| 1791 echo 'void f(){}' > conftest.c | 1781 echo 'void f(){}' > conftest.c |
| 1792 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1782 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 1793 ac_cv_prog_cc_g=yes | 1783 ac_cv_prog_cc_g=yes |
| 1794 else | 1784 else |
| 1814 | 1804 |
| 1815 if test "$GCC" = "yes"; then with_gcc=yes; else with_gcc=no; fi | 1805 if test "$GCC" = "yes"; then with_gcc=yes; else with_gcc=no; fi |
| 1816 test -n "$NON_GNU_CPP" -a "$with_gcc" = "no" -a -z "$CPP" && CPP="$NON_GNU_CPP" | 1806 test -n "$NON_GNU_CPP" -a "$with_gcc" = "no" -a -z "$CPP" && CPP="$NON_GNU_CPP" |
| 1817 | 1807 |
| 1818 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 1808 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1819 echo "configure:1820: checking how to run the C preprocessor" >&5 | 1809 echo "configure:1810: checking how to run the C preprocessor" >&5 |
| 1820 # On Suns, sometimes $CPP names a directory. | 1810 # On Suns, sometimes $CPP names a directory. |
| 1821 if test -n "$CPP" && test -d "$CPP"; then | 1811 if test -n "$CPP" && test -d "$CPP"; then |
| 1822 CPP= | 1812 CPP= |
| 1823 fi | 1813 fi |
| 1824 if test -z "$CPP"; then | 1814 if test -z "$CPP"; then |
| 1827 # substituted into the Makefile and "${CC-cc}" will confuse make. | 1817 # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1828 CPP="${CC-cc} -E" | 1818 CPP="${CC-cc} -E" |
| 1829 # On the NeXT, cc -E runs the code through the compiler's parser, | 1819 # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1830 # not just through cpp. | 1820 # not just through cpp. |
| 1831 cat > conftest.$ac_ext <<EOF | 1821 cat > conftest.$ac_ext <<EOF |
| 1832 #line 1833 "configure" | 1822 #line 1823 "configure" |
| 1833 #include "confdefs.h" | 1823 #include "confdefs.h" |
| 1834 #include <assert.h> | 1824 #include <assert.h> |
| 1835 Syntax Error | 1825 Syntax Error |
| 1836 EOF | 1826 EOF |
| 1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1828 { (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1839 ac_err=`grep -v '^ *+' conftest.out` | 1829 ac_err=`grep -v '^ *+' conftest.out` |
| 1840 if test -z "$ac_err"; then | 1830 if test -z "$ac_err"; then |
| 1841 : | 1831 : |
| 1842 else | 1832 else |
| 1843 echo "$ac_err" >&5 | 1833 echo "$ac_err" >&5 |
| 1844 echo "configure: failed program was:" >&5 | 1834 echo "configure: failed program was:" >&5 |
| 1845 cat conftest.$ac_ext >&5 | 1835 cat conftest.$ac_ext >&5 |
| 1846 rm -rf conftest* | 1836 rm -rf conftest* |
| 1847 CPP="${CC-cc} -E -traditional-cpp" | 1837 CPP="${CC-cc} -E -traditional-cpp" |
| 1848 cat > conftest.$ac_ext <<EOF | 1838 cat > conftest.$ac_ext <<EOF |
| 1849 #line 1850 "configure" | 1839 #line 1840 "configure" |
| 1850 #include "confdefs.h" | 1840 #include "confdefs.h" |
| 1851 #include <assert.h> | 1841 #include <assert.h> |
| 1852 Syntax Error | 1842 Syntax Error |
| 1853 EOF | 1843 EOF |
| 1854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 1844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1855 { (eval echo configure:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 1845 { (eval echo configure:1846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1856 ac_err=`grep -v '^ *+' conftest.out` | 1846 ac_err=`grep -v '^ *+' conftest.out` |
| 1857 if test -z "$ac_err"; then | 1847 if test -z "$ac_err"; then |
| 1858 : | 1848 : |
| 1859 else | 1849 else |
| 1860 echo "$ac_err" >&5 | 1850 echo "$ac_err" >&5 |
| 1873 fi | 1863 fi |
| 1874 echo "$ac_t""$CPP" 1>&6 | 1864 echo "$ac_t""$CPP" 1>&6 |
| 1875 | 1865 |
| 1876 | 1866 |
| 1877 case "$canonical" in | 1867 case "$canonical" in |
| 1878 *-sun-sunos* ) test "$CPP" = "acc -E" && CPP="acc -E -Xs" ;; | 1868 *-sun-sunos* ) test "$CPP" = "acc -E" && CPP="acc -E -Xs" ;; |
| 1879 esac | 1869 esac |
| 1880 | 1870 |
| 1881 | 1871 |
| 1882 echo "Extracting information from the machine- and system-dependent headers..." | 1872 echo "Extracting information from the machine- and system-dependent headers..." |
| 1883 | 1873 |
| 1899 #define LD_SWITCH_X_SITE_AUX | 1889 #define LD_SWITCH_X_SITE_AUX |
| 1900 #include "'$srcdir'/src/'$opsysfile'" | 1890 #include "'$srcdir'/src/'$opsysfile'" |
| 1901 #include "'$srcdir'/src/'$machfile'" | 1891 #include "'$srcdir'/src/'$machfile'" |
| 1902 | 1892 |
| 1903 #ifndef LIBS_MACHINE | 1893 #ifndef LIBS_MACHINE |
| 1904 #define LIBS_MACHINE | 1894 #define LIBS_MACHINE |
| 1905 #endif | 1895 #endif |
| 1906 configure___ libs_machine=LIBS_MACHINE | 1896 configure___ libs_machine=LIBS_MACHINE |
| 1907 | 1897 |
| 1908 #ifndef LIBS_SYSTEM | 1898 #ifndef LIBS_SYSTEM |
| 1909 #define LIBS_SYSTEM | 1899 #define LIBS_SYSTEM |
| 1910 #endif | 1900 #endif |
| 1911 configure___ libs_system=LIBS_SYSTEM | 1901 configure___ libs_system=LIBS_SYSTEM |
| 1912 | 1902 |
| 1913 #ifndef LIBS_TERMCAP | 1903 #ifndef LIBS_TERMCAP |
| 1914 #define LIBS_TERMCAP | 1904 #define LIBS_TERMCAP |
| 1915 #endif | 1905 #endif |
| 1916 configure___ libs_termcap=LIBS_TERMCAP | 1906 configure___ libs_termcap=LIBS_TERMCAP |
| 1917 | 1907 |
| 1918 #ifndef LIB_STANDARD | 1908 #ifndef LIB_STANDARD |
| 1919 #define LIB_STANDARD | 1909 #define LIB_STANDARD |
| 1920 #endif | 1910 #endif |
| 1921 configure___ libs_standard=LIB_STANDARD | 1911 configure___ libs_standard=LIB_STANDARD |
| 1922 | 1912 |
| 1923 #ifndef C_SWITCH_SYSTEM | 1913 #ifndef C_SWITCH_SYSTEM |
| 1924 #define C_SWITCH_SYSTEM | 1914 #define C_SWITCH_SYSTEM |
| 1925 #endif | 1915 #endif |
| 1926 configure___ c_switch_system=C_SWITCH_SYSTEM | 1916 configure___ c_switch_system=C_SWITCH_SYSTEM |
| 1927 | 1917 |
| 1928 #ifndef C_SWITCH_MACHINE | 1918 #ifndef C_SWITCH_MACHINE |
| 1929 #define C_SWITCH_MACHINE | 1919 #define C_SWITCH_MACHINE |
| 1930 #endif | 1920 #endif |
| 1931 configure___ c_switch_machine=C_SWITCH_MACHINE | 1921 configure___ c_switch_machine=C_SWITCH_MACHINE |
| 1932 | 1922 |
| 1933 #ifndef C_SWITCH_X_SYSTEM | 1923 #ifndef C_SWITCH_X_SYSTEM |
| 1934 #define C_SWITCH_X_SYSTEM | 1924 #define C_SWITCH_X_SYSTEM |
| 1935 #endif | 1925 #endif |
| 1936 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM | 1926 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM |
| 1937 | 1927 |
| 1938 #ifndef LD_SWITCH_X_SYSTEM | 1928 #ifndef LD_SWITCH_X_SYSTEM |
| 1939 #define LD_SWITCH_X_SYSTEM | 1929 #define LD_SWITCH_X_SYSTEM |
| 1940 #endif | 1930 #endif |
| 1941 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM | 1931 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM |
| 1942 | 1932 |
| 1943 #ifndef LD_SWITCH_SYSTEM | 1933 #ifndef LD_SWITCH_SYSTEM |
| 1944 #define LD_SWITCH_SYSTEM | 1934 #define LD_SWITCH_SYSTEM |
| 1945 #endif | 1935 #endif |
| 1946 configure___ ld_switch_system=LD_SWITCH_SYSTEM | 1936 configure___ ld_switch_system=LD_SWITCH_SYSTEM |
| 1947 | 1937 |
| 1948 #ifndef UNEXEC | 1938 #ifndef UNEXEC |
| 1949 #define UNEXEC unexec.o | 1939 #define UNEXEC unexec.o |
| 1981 | 1971 |
| 1982 #ifdef MAIL_USE_LOCKF | 1972 #ifdef MAIL_USE_LOCKF |
| 1983 configure___ mail_use_lockf=yes | 1973 configure___ mail_use_lockf=yes |
| 1984 #else | 1974 #else |
| 1985 configure___ mail_use_lockf=no | 1975 configure___ mail_use_lockf=no |
| 1986 #endif | |
| 1987 | |
| 1988 #ifdef __SUNPRO_C | |
| 1989 configure___ sunpro_c=yes | |
| 1990 #else | |
| 1991 configure___ sunpro_c=no | |
| 1992 #endif | 1976 #endif |
| 1993 | 1977 |
| 1994 | 1978 |
| 1995 #ifdef THIS_IS_CONFIGURE | 1979 #ifdef THIS_IS_CONFIGURE |
| 1996 | 1980 |
| 2023 else | 2007 else |
| 2024 REAL_CFLAGS="$CFLAGS" | 2008 REAL_CFLAGS="$CFLAGS" |
| 2025 fi | 2009 fi |
| 2026 rm $tempcname | 2010 rm $tempcname |
| 2027 | 2011 |
| 2028 if test "$cflags" != "NO_CFLAGS_DEFINED" ; then | 2012 test "$cflags" != "NO_CFLAGS_DEFINED" && REAL_CFLAGS="$cflags" |
| 2029 REAL_CFLAGS=$cflags | 2013 |
| 2030 fi | 2014 extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then |
| 2031 | 2015 echo " xemacs will be linked with \"$unexec\"" |
| 2032 UNEXEC_SRC="`echo $unexec | sed 's/\.o/.c/'`" | 2016 fi |
| 2017 | |
| 2018 | |
| 2019 if test -n "$site_libraries"; then | |
| 2020 for arg in $site_libraries; do | |
| 2021 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac | |
| 2022 ld_switch_site="$ld_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$ld_switch_site"; fi | |
| 2023 done | |
| 2024 fi | |
| 2025 | |
| 2026 if test -n "$site_includes" ; then | |
| 2027 for arg in $site_includes; do | |
| 2028 case "$arg" in -* ) ;; * ) arg="-I${arg}" ;; esac | |
| 2029 c_switch_site="$c_switch_site $arg" && if test "$extra_verbose" = "yes"; then echo " Appending \"$arg\" to \$c_switch_site"; fi | |
| 2030 done | |
| 2031 fi | |
| 2032 | |
| 2033 for dir in "/usr/ccs/lib"; do | |
| 2034 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${dir}\" to \$ld_switch_site"; fi | |
| 2035 done | |
| 2036 | |
| 2037 if test -n "$site_runtime_libraries" ; then | |
| 2038 LD_RUN_PATH="`echo $site_runtime_libraries | sed 's/ */:/'`" | |
| 2039 export LD_RUN_PATH | |
| 2040 fi | |
| 2041 | |
| 2042 | |
| 2043 if test "$dynamic" = "no"; then add_runtime_path=no | |
| 2044 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes | |
| 2045 else case "$canonical" in | |
| 2046 *-solaris2.* | *-sgi-irix* ) add_runtime_path=yes ;; | |
| 2047 * ) add_runtime_path=no ;; | |
| 2048 esac | |
| 2049 fi | |
| 2050 | |
| 2051 if test "$add_runtime_path" = "yes"; then | |
| 2052 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 | |
| 2053 echo "configure:2054: checking "for runtime libraries flag"" >&5 | |
| 2054 dash_r="" | |
| 2055 for try_dash_r in "-R" "-R " "-rpath "; do | |
| 2056 xe_check_libs="${try_dash_r}/no/such/file-or-directory" | |
| 2057 cat > conftest.$ac_ext <<EOF | |
| 2058 #line 2059 "configure" | |
| 2059 #include "confdefs.h" | |
| 2060 | |
| 2061 int main() { | |
| 2062 | |
| 2063 ; return 0; } | |
| 2064 EOF | |
| 2065 if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 2066 rm -rf conftest* | |
| 2067 dash_r="$try_dash_r" | |
| 2068 else | |
| 2069 echo "configure: failed program was:" >&5 | |
| 2070 cat conftest.$ac_ext >&5 | |
| 2071 fi | |
| 2072 rm -f conftest* | |
| 2073 xe_check_libs="" | |
| 2074 test -n "$dash_r" && break | |
| 2075 done | |
| 2076 if test -n "$dash_r"; | |
| 2077 then echo "$ac_t"""\"${dash_r}\""" 1>&6 | |
| 2078 else echo "$ac_t""NONE" 1>&6 | |
| 2079 fi | |
| 2080 fi | |
| 2081 | |
| 2082 | |
| 2083 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then | |
| 2084 ld_switch_site="`echo $ld_switch_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 2085 ld_switch_x_site="`echo $ld_switch_x_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 2086 | |
| 2087 if test -n "$LD_RUN_PATH"; then | |
| 2088 runpath="$LD_RUN_PATH" | |
| 2089 else | |
| 2090 runpath="" | |
| 2091 for arg in $ld_switch_site $ld_switch_x_site; do | |
| 2092 case "$arg" in -L* ) | |
| 2093 dir=`echo "$arg" | sed 's/^-L//'` | |
| 2094 if test -n "`ls ${dir}/*.s[ol] 2>/dev/null`"; then | |
| 2095 test -n "$runpath" && runpath="${runpath}:" | |
| 2096 runpath="${runpath}${dir}" | |
| 2097 fi | |
| 2098 ;; | |
| 2099 esac | |
| 2100 done | |
| 2101 case "$canonical" in *-solaris2.[1-4]* ) | |
| 2102 test "$need_motif" = "yes" && runpath="${runpath}:/opt/SUNWdt/lib" ;; | |
| 2103 esac | |
| 2104 fi | |
| 2105 | |
| 2106 if test -n "$runpath"; then | |
| 2107 ld_switch_run="${dash_r}${runpath}" | |
| 2108 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" | |
| 2109 fi | |
| 2110 fi | |
| 2111 | |
| 2112 | |
| 2033 | 2113 |
| 2034 GNU_MALLOC=yes | 2114 GNU_MALLOC=yes |
| 2035 if test "$system_malloc" = "yes" ; then | 2115 if test "$system_malloc" = "yes" ; then |
| 2036 GNU_MALLOC=no | 2116 GNU_MALLOC=no |
| 2037 GNU_MALLOC_reason=" | 2117 GNU_MALLOC_reason=" |
| 2041 GNU_MALLOC_reason=" | 2121 GNU_MALLOC_reason=" |
| 2042 (User chose not to use GNU allocators.)" | 2122 (User chose not to use GNU allocators.)" |
| 2043 fi | 2123 fi |
| 2044 | 2124 |
| 2045 | 2125 |
| 2046 | |
| 2047 # Extract the first word of "ranlib", so it can be a program name with args. | 2126 # Extract the first word of "ranlib", so it can be a program name with args. |
| 2048 set dummy ranlib; ac_word=$2 | 2127 set dummy ranlib; ac_word=$2 |
| 2049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2050 echo "configure:2051: checking for $ac_word" >&5 | 2129 echo "configure:2130: checking for $ac_word" >&5 |
| 2051 | 2130 |
| 2052 if test -n "$RANLIB"; then | 2131 if test -n "$RANLIB"; then |
| 2053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 2132 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2054 else | 2133 else |
| 2055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2098 # AIX /bin/install | 2177 # AIX /bin/install |
| 2099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 2178 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 2179 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2101 # ./install, which can be erroneously created by make from ./install.sh. | 2180 # ./install, which can be erroneously created by make from ./install.sh. |
| 2102 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 2181 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 2103 echo "configure:2104: checking for a BSD compatible install" >&5 | 2182 echo "configure:2183: checking for a BSD compatible install" >&5 |
| 2104 if test -z "$INSTALL"; then | 2183 if test -z "$INSTALL"; then |
| 2105 | 2184 |
| 2106 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" | 2185 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
| 2107 for ac_dir in $PATH; do | 2186 for ac_dir in $PATH; do |
| 2108 # Account for people who put trailing slashes in PATH elements. | 2187 # Account for people who put trailing slashes in PATH elements. |
| 2149 for ac_prog in 'bison -y' byacc | 2228 for ac_prog in 'bison -y' byacc |
| 2150 do | 2229 do |
| 2151 # Extract the first word of "$ac_prog", so it can be a program name with args. | 2230 # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2152 set dummy $ac_prog; ac_word=$2 | 2231 set dummy $ac_prog; ac_word=$2 |
| 2153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2232 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2154 echo "configure:2155: checking for $ac_word" >&5 | 2233 echo "configure:2234: checking for $ac_word" >&5 |
| 2155 | 2234 |
| 2156 if test -n "$YACC"; then | 2235 if test -n "$YACC"; then |
| 2157 ac_cv_prog_YACC="$YACC" # Let the user override the test. | 2236 ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 2158 else | 2237 else |
| 2159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 2177 done | 2256 done |
| 2178 test -n "$YACC" || YACC="yacc" | 2257 test -n "$YACC" || YACC="yacc" |
| 2179 | 2258 |
| 2180 | 2259 |
| 2181 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 2260 echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
| 2182 echo "configure:2183: checking for AIX" >&5 | 2261 echo "configure:2262: checking for AIX" >&5 |
| 2183 cat > conftest.$ac_ext <<EOF | 2262 cat > conftest.$ac_ext <<EOF |
| 2184 #line 2185 "configure" | 2263 #line 2264 "configure" |
| 2185 #include "confdefs.h" | 2264 #include "confdefs.h" |
| 2186 #ifdef _AIX | 2265 #ifdef _AIX |
| 2187 yes | 2266 yes |
| 2188 #endif | 2267 #endif |
| 2189 | 2268 |
| 2209 | 2288 |
| 2210 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h | 2289 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h |
| 2211 do | 2290 do |
| 2212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2291 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2292 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2214 echo "configure:2215: checking for $ac_hdr" >&5 | 2293 echo "configure:2294: checking for $ac_hdr" >&5 |
| 2215 | 2294 |
| 2216 cat > conftest.$ac_ext <<EOF | 2295 cat > conftest.$ac_ext <<EOF |
| 2217 #line 2218 "configure" | 2296 #line 2297 "configure" |
| 2218 #include "confdefs.h" | 2297 #include "confdefs.h" |
| 2219 #include <$ac_hdr> | 2298 #include <$ac_hdr> |
| 2220 EOF | 2299 EOF |
| 2221 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2222 { (eval echo configure:2223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2301 { (eval echo configure:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2223 ac_err=`grep -v '^ *+' conftest.out` | 2302 ac_err=`grep -v '^ *+' conftest.out` |
| 2224 if test -z "$ac_err"; then | 2303 if test -z "$ac_err"; then |
| 2225 rm -rf conftest* | 2304 rm -rf conftest* |
| 2226 eval "ac_cv_header_$ac_safe=yes" | 2305 eval "ac_cv_header_$ac_safe=yes" |
| 2227 else | 2306 else |
| 2250 | 2329 |
| 2251 for ac_hdr in utime.h sys/wait.h libintl.h locale.h libgen.h | 2330 for ac_hdr in utime.h sys/wait.h libintl.h locale.h libgen.h |
| 2252 do | 2331 do |
| 2253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2255 echo "configure:2256: checking for $ac_hdr" >&5 | 2334 echo "configure:2335: checking for $ac_hdr" >&5 |
| 2256 | 2335 |
| 2257 cat > conftest.$ac_ext <<EOF | 2336 cat > conftest.$ac_ext <<EOF |
| 2258 #line 2259 "configure" | 2337 #line 2338 "configure" |
| 2259 #include "confdefs.h" | 2338 #include "confdefs.h" |
| 2260 #include <$ac_hdr> | 2339 #include <$ac_hdr> |
| 2261 EOF | 2340 EOF |
| 2262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2263 { (eval echo configure:2264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2342 { (eval echo configure:2343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2264 ac_err=`grep -v '^ *+' conftest.out` | 2343 ac_err=`grep -v '^ *+' conftest.out` |
| 2265 if test -z "$ac_err"; then | 2344 if test -z "$ac_err"; then |
| 2266 rm -rf conftest* | 2345 rm -rf conftest* |
| 2267 eval "ac_cv_header_$ac_safe=yes" | 2346 eval "ac_cv_header_$ac_safe=yes" |
| 2268 else | 2347 else |
| 2291 | 2370 |
| 2292 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h | 2371 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h |
| 2293 do | 2372 do |
| 2294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2373 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2296 echo "configure:2297: checking for $ac_hdr" >&5 | 2375 echo "configure:2376: checking for $ac_hdr" >&5 |
| 2297 | 2376 |
| 2298 cat > conftest.$ac_ext <<EOF | 2377 cat > conftest.$ac_ext <<EOF |
| 2299 #line 2300 "configure" | 2378 #line 2379 "configure" |
| 2300 #include "confdefs.h" | 2379 #include "confdefs.h" |
| 2301 #include <$ac_hdr> | 2380 #include <$ac_hdr> |
| 2302 EOF | 2381 EOF |
| 2303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2304 { (eval echo configure:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2383 { (eval echo configure:2384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2305 ac_err=`grep -v '^ *+' conftest.out` | 2384 ac_err=`grep -v '^ *+' conftest.out` |
| 2306 if test -z "$ac_err"; then | 2385 if test -z "$ac_err"; then |
| 2307 rm -rf conftest* | 2386 rm -rf conftest* |
| 2308 eval "ac_cv_header_$ac_safe=yes" | 2387 eval "ac_cv_header_$ac_safe=yes" |
| 2309 else | 2388 else |
| 2329 echo "$ac_t""no" 1>&6 | 2408 echo "$ac_t""no" 1>&6 |
| 2330 fi | 2409 fi |
| 2331 done | 2410 done |
| 2332 | 2411 |
| 2333 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 2412 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 2334 echo "configure:2335: checking for ANSI C header files" >&5 | 2413 echo "configure:2414: checking for ANSI C header files" >&5 |
| 2335 | 2414 |
| 2336 cat > conftest.$ac_ext <<EOF | 2415 cat > conftest.$ac_ext <<EOF |
| 2337 #line 2338 "configure" | 2416 #line 2417 "configure" |
| 2338 #include "confdefs.h" | 2417 #include "confdefs.h" |
| 2339 #include <stdlib.h> | 2418 #include <stdlib.h> |
| 2340 #include <stdarg.h> | 2419 #include <stdarg.h> |
| 2341 #include <string.h> | 2420 #include <string.h> |
| 2342 #include <float.h> | 2421 #include <float.h> |
| 2343 EOF | 2422 EOF |
| 2344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2345 { (eval echo configure:2346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2424 { (eval echo configure:2425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2346 ac_err=`grep -v '^ *+' conftest.out` | 2425 ac_err=`grep -v '^ *+' conftest.out` |
| 2347 if test -z "$ac_err"; then | 2426 if test -z "$ac_err"; then |
| 2348 rm -rf conftest* | 2427 rm -rf conftest* |
| 2349 ac_cv_header_stdc=yes | 2428 ac_cv_header_stdc=yes |
| 2350 else | 2429 else |
| 2357 rm -f conftest* | 2436 rm -f conftest* |
| 2358 | 2437 |
| 2359 if test $ac_cv_header_stdc = yes; then | 2438 if test $ac_cv_header_stdc = yes; then |
| 2360 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 2439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2361 cat > conftest.$ac_ext <<EOF | 2440 cat > conftest.$ac_ext <<EOF |
| 2362 #line 2363 "configure" | 2441 #line 2442 "configure" |
| 2363 #include "confdefs.h" | 2442 #include "confdefs.h" |
| 2364 #include <string.h> | 2443 #include <string.h> |
| 2365 EOF | 2444 EOF |
| 2366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2367 egrep "memchr" >/dev/null 2>&1; then | 2446 egrep "memchr" >/dev/null 2>&1; then |
| 2375 fi | 2454 fi |
| 2376 | 2455 |
| 2377 if test $ac_cv_header_stdc = yes; then | 2456 if test $ac_cv_header_stdc = yes; then |
| 2378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 2457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2379 cat > conftest.$ac_ext <<EOF | 2458 cat > conftest.$ac_ext <<EOF |
| 2380 #line 2381 "configure" | 2459 #line 2460 "configure" |
| 2381 #include "confdefs.h" | 2460 #include "confdefs.h" |
| 2382 #include <stdlib.h> | 2461 #include <stdlib.h> |
| 2383 EOF | 2462 EOF |
| 2384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2385 egrep "free" >/dev/null 2>&1; then | 2464 egrep "free" >/dev/null 2>&1; then |
| 2393 fi | 2472 fi |
| 2394 | 2473 |
| 2395 if test $ac_cv_header_stdc = yes; then | 2474 if test $ac_cv_header_stdc = yes; then |
| 2396 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 2475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2397 cat > conftest.$ac_ext <<EOF | 2476 cat > conftest.$ac_ext <<EOF |
| 2398 #line 2399 "configure" | 2477 #line 2478 "configure" |
| 2399 #include "confdefs.h" | 2478 #include "confdefs.h" |
| 2400 #include <ctype.h> | 2479 #include <ctype.h> |
| 2401 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 2480 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2402 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 2481 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 2482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2404 int main () { int i; for (i = 0; i < 256; i++) | 2483 int main () { int i; for (i = 0; i < 256; i++) |
| 2405 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 2484 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2406 exit (0); } | 2485 exit (0); } |
| 2407 | 2486 |
| 2408 EOF | 2487 EOF |
| 2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | 2488 if { (eval echo configure:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
| 2410 then | 2489 then |
| 2411 : | 2490 : |
| 2412 else | 2491 else |
| 2413 echo "configure: failed program was:" >&5 | 2492 echo "configure: failed program was:" >&5 |
| 2414 cat conftest.$ac_ext >&5 | 2493 cat conftest.$ac_ext >&5 |
| 2429 } | 2508 } |
| 2430 | 2509 |
| 2431 fi | 2510 fi |
| 2432 | 2511 |
| 2433 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 2512 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 2434 echo "configure:2435: checking whether time.h and sys/time.h may both be included" >&5 | 2513 echo "configure:2514: checking whether time.h and sys/time.h may both be included" >&5 |
| 2435 | 2514 |
| 2436 cat > conftest.$ac_ext <<EOF | 2515 cat > conftest.$ac_ext <<EOF |
| 2437 #line 2438 "configure" | 2516 #line 2517 "configure" |
| 2438 #include "confdefs.h" | 2517 #include "confdefs.h" |
| 2439 #include <sys/types.h> | 2518 #include <sys/types.h> |
| 2440 #include <sys/time.h> | 2519 #include <sys/time.h> |
| 2441 #include <time.h> | 2520 #include <time.h> |
| 2442 int main() { | 2521 int main() { |
| 2443 struct tm *tp; | 2522 struct tm *tp; |
| 2444 ; return 0; } | 2523 ; return 0; } |
| 2445 EOF | 2524 EOF |
| 2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2525 if { (eval echo configure:2526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2447 rm -rf conftest* | 2526 rm -rf conftest* |
| 2448 ac_cv_header_time=yes | 2527 ac_cv_header_time=yes |
| 2449 else | 2528 else |
| 2450 echo "configure: failed program was:" >&5 | 2529 echo "configure: failed program was:" >&5 |
| 2451 cat conftest.$ac_ext >&5 | 2530 cat conftest.$ac_ext >&5 |
| 2465 } | 2544 } |
| 2466 | 2545 |
| 2467 fi | 2546 fi |
| 2468 | 2547 |
| 2469 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | 2548 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
| 2470 echo "configure:2471: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | 2549 echo "configure:2550: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
| 2471 | 2550 |
| 2472 cat > conftest.$ac_ext <<EOF | 2551 cat > conftest.$ac_ext <<EOF |
| 2473 #line 2474 "configure" | 2552 #line 2553 "configure" |
| 2474 #include "confdefs.h" | 2553 #include "confdefs.h" |
| 2475 #include <sys/types.h> | 2554 #include <sys/types.h> |
| 2476 #include <signal.h> | 2555 #include <signal.h> |
| 2477 /* NetBSD declares sys_siglist in unistd.h. */ | 2556 /* NetBSD declares sys_siglist in unistd.h. */ |
| 2478 #ifdef HAVE_UNISTD_H | 2557 #ifdef HAVE_UNISTD_H |
| 2480 #endif | 2559 #endif |
| 2481 int main() { | 2560 int main() { |
| 2482 char *msg = *(sys_siglist + 1); | 2561 char *msg = *(sys_siglist + 1); |
| 2483 ; return 0; } | 2562 ; return 0; } |
| 2484 EOF | 2563 EOF |
| 2485 if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2564 if { (eval echo configure:2565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2486 rm -rf conftest* | 2565 rm -rf conftest* |
| 2487 ac_cv_decl_sys_siglist=yes | 2566 ac_cv_decl_sys_siglist=yes |
| 2488 else | 2567 else |
| 2489 echo "configure: failed program was:" >&5 | 2568 echo "configure: failed program was:" >&5 |
| 2490 cat conftest.$ac_ext >&5 | 2569 cat conftest.$ac_ext >&5 |
| 2505 | 2584 |
| 2506 fi | 2585 fi |
| 2507 | 2586 |
| 2508 | 2587 |
| 2509 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | 2588 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 |
| 2510 echo "configure:2511: checking for struct utimbuf" >&5 | 2589 echo "configure:2590: checking for struct utimbuf" >&5 |
| 2511 cat > conftest.$ac_ext <<EOF | 2590 cat > conftest.$ac_ext <<EOF |
| 2512 #line 2513 "configure" | 2591 #line 2592 "configure" |
| 2513 #include "confdefs.h" | 2592 #include "confdefs.h" |
| 2514 #ifdef TIME_WITH_SYS_TIME | 2593 #ifdef TIME_WITH_SYS_TIME |
| 2515 #include <sys/time.h> | 2594 #include <sys/time.h> |
| 2516 #include <time.h> | 2595 #include <time.h> |
| 2517 #else | 2596 #else |
| 2526 #endif | 2605 #endif |
| 2527 int main() { | 2606 int main() { |
| 2528 static struct utimbuf x; x.actime = x.modtime; | 2607 static struct utimbuf x; x.actime = x.modtime; |
| 2529 ; return 0; } | 2608 ; return 0; } |
| 2530 EOF | 2609 EOF |
| 2531 if { (eval echo configure:2532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2610 if { (eval echo configure:2611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2532 rm -rf conftest* | 2611 rm -rf conftest* |
| 2533 echo "$ac_t""yes" 1>&6 | 2612 echo "$ac_t""yes" 1>&6 |
| 2534 { test "$extra_verbose" = "yes" && cat << \EOF | 2613 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2535 Defining HAVE_STRUCT_UTIMBUF | 2614 Defining HAVE_STRUCT_UTIMBUF |
| 2536 EOF | 2615 EOF |
| 2546 echo "$ac_t""no" 1>&6 | 2625 echo "$ac_t""no" 1>&6 |
| 2547 fi | 2626 fi |
| 2548 rm -f conftest* | 2627 rm -f conftest* |
| 2549 | 2628 |
| 2550 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 2629 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 2551 echo "configure:2552: checking return type of signal handlers" >&5 | 2630 echo "configure:2631: checking return type of signal handlers" >&5 |
| 2552 | 2631 |
| 2553 cat > conftest.$ac_ext <<EOF | 2632 cat > conftest.$ac_ext <<EOF |
| 2554 #line 2555 "configure" | 2633 #line 2634 "configure" |
| 2555 #include "confdefs.h" | 2634 #include "confdefs.h" |
| 2556 #include <sys/types.h> | 2635 #include <sys/types.h> |
| 2557 #include <signal.h> | 2636 #include <signal.h> |
| 2558 #ifdef signal | 2637 #ifdef signal |
| 2559 #undef signal | 2638 #undef signal |
| 2566 | 2645 |
| 2567 int main() { | 2646 int main() { |
| 2568 int i; | 2647 int i; |
| 2569 ; return 0; } | 2648 ; return 0; } |
| 2570 EOF | 2649 EOF |
| 2571 if { (eval echo configure:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2650 if { (eval echo configure:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2572 rm -rf conftest* | 2651 rm -rf conftest* |
| 2573 ac_cv_type_signal=void | 2652 ac_cv_type_signal=void |
| 2574 else | 2653 else |
| 2575 echo "configure: failed program was:" >&5 | 2654 echo "configure: failed program was:" >&5 |
| 2576 cat conftest.$ac_ext >&5 | 2655 cat conftest.$ac_ext >&5 |
| 2589 } | 2668 } |
| 2590 | 2669 |
| 2591 | 2670 |
| 2592 | 2671 |
| 2593 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | 2672 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
| 2594 echo "configure:2595: checking for struct timeval" >&5 | 2673 echo "configure:2674: checking for struct timeval" >&5 |
| 2595 cat > conftest.$ac_ext <<EOF | 2674 cat > conftest.$ac_ext <<EOF |
| 2596 #line 2597 "configure" | 2675 #line 2676 "configure" |
| 2597 #include "confdefs.h" | 2676 #include "confdefs.h" |
| 2598 #ifdef TIME_WITH_SYS_TIME | 2677 #ifdef TIME_WITH_SYS_TIME |
| 2599 #include <sys/time.h> | 2678 #include <sys/time.h> |
| 2600 #include <time.h> | 2679 #include <time.h> |
| 2601 #else | 2680 #else |
| 2607 #endif | 2686 #endif |
| 2608 int main() { | 2687 int main() { |
| 2609 static struct timeval x; x.tv_sec = x.tv_usec; | 2688 static struct timeval x; x.tv_sec = x.tv_usec; |
| 2610 ; return 0; } | 2689 ; return 0; } |
| 2611 EOF | 2690 EOF |
| 2612 if { (eval echo configure:2613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2691 if { (eval echo configure:2692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2613 rm -rf conftest* | 2692 rm -rf conftest* |
| 2614 echo "$ac_t""yes" 1>&6 | 2693 echo "$ac_t""yes" 1>&6 |
| 2615 HAVE_TIMEVAL=yes | 2694 HAVE_TIMEVAL=yes |
| 2616 { test "$extra_verbose" = "yes" && cat << \EOF | 2695 { test "$extra_verbose" = "yes" && cat << \EOF |
| 2617 Defining HAVE_TIMEVAL | 2696 Defining HAVE_TIMEVAL |
| 2629 HAVE_TIMEVAL=no | 2708 HAVE_TIMEVAL=no |
| 2630 fi | 2709 fi |
| 2631 rm -f conftest* | 2710 rm -f conftest* |
| 2632 | 2711 |
| 2633 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 2712 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
| 2634 echo "configure:2635: checking whether struct tm is in sys/time.h or time.h" >&5 | 2713 echo "configure:2714: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 2635 | 2714 |
| 2636 cat > conftest.$ac_ext <<EOF | 2715 cat > conftest.$ac_ext <<EOF |
| 2637 #line 2638 "configure" | 2716 #line 2717 "configure" |
| 2638 #include "confdefs.h" | 2717 #include "confdefs.h" |
| 2639 #include <sys/types.h> | 2718 #include <sys/types.h> |
| 2640 #include <time.h> | 2719 #include <time.h> |
| 2641 int main() { | 2720 int main() { |
| 2642 struct tm *tp; tp->tm_sec; | 2721 struct tm *tp; tp->tm_sec; |
| 2643 ; return 0; } | 2722 ; return 0; } |
| 2644 EOF | 2723 EOF |
| 2645 if { (eval echo configure:2646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2724 if { (eval echo configure:2725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2646 rm -rf conftest* | 2725 rm -rf conftest* |
| 2647 ac_cv_struct_tm=time.h | 2726 ac_cv_struct_tm=time.h |
| 2648 else | 2727 else |
| 2649 echo "configure: failed program was:" >&5 | 2728 echo "configure: failed program was:" >&5 |
| 2650 cat conftest.$ac_ext >&5 | 2729 cat conftest.$ac_ext >&5 |
| 2664 } | 2743 } |
| 2665 | 2744 |
| 2666 fi | 2745 fi |
| 2667 | 2746 |
| 2668 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 2747 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
| 2669 echo "configure:2670: checking for tm_zone in struct tm" >&5 | 2748 echo "configure:2749: checking for tm_zone in struct tm" >&5 |
| 2670 | 2749 |
| 2671 cat > conftest.$ac_ext <<EOF | 2750 cat > conftest.$ac_ext <<EOF |
| 2672 #line 2673 "configure" | 2751 #line 2752 "configure" |
| 2673 #include "confdefs.h" | 2752 #include "confdefs.h" |
| 2674 #include <sys/types.h> | 2753 #include <sys/types.h> |
| 2675 #include <$ac_cv_struct_tm> | 2754 #include <$ac_cv_struct_tm> |
| 2676 int main() { | 2755 int main() { |
| 2677 struct tm tm; tm.tm_zone; | 2756 struct tm tm; tm.tm_zone; |
| 2678 ; return 0; } | 2757 ; return 0; } |
| 2679 EOF | 2758 EOF |
| 2680 if { (eval echo configure:2681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2759 if { (eval echo configure:2760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2681 rm -rf conftest* | 2760 rm -rf conftest* |
| 2682 ac_cv_struct_tm_zone=yes | 2761 ac_cv_struct_tm_zone=yes |
| 2683 else | 2762 else |
| 2684 echo "configure: failed program was:" >&5 | 2763 echo "configure: failed program was:" >&5 |
| 2685 cat conftest.$ac_ext >&5 | 2764 cat conftest.$ac_ext >&5 |
| 2698 EOF | 2777 EOF |
| 2699 } | 2778 } |
| 2700 | 2779 |
| 2701 else | 2780 else |
| 2702 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 2781 echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
| 2703 echo "configure:2704: checking for tzname" >&5 | 2782 echo "configure:2783: checking for tzname" >&5 |
| 2704 | 2783 |
| 2705 cat > conftest.$ac_ext <<EOF | 2784 cat > conftest.$ac_ext <<EOF |
| 2706 #line 2707 "configure" | 2785 #line 2786 "configure" |
| 2707 #include "confdefs.h" | 2786 #include "confdefs.h" |
| 2708 #include <time.h> | 2787 #include <time.h> |
| 2709 #ifndef tzname /* For SGI. */ | 2788 #ifndef tzname /* For SGI. */ |
| 2710 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | 2789 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
| 2711 #endif | 2790 #endif |
| 2712 int main() { | 2791 int main() { |
| 2713 atoi(*tzname); | 2792 atoi(*tzname); |
| 2714 ; return 0; } | 2793 ; return 0; } |
| 2715 EOF | 2794 EOF |
| 2716 if { (eval echo configure:2717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2717 rm -rf conftest* | 2796 rm -rf conftest* |
| 2718 ac_cv_var_tzname=yes | 2797 ac_cv_var_tzname=yes |
| 2719 else | 2798 else |
| 2720 echo "configure: failed program was:" >&5 | 2799 echo "configure: failed program was:" >&5 |
| 2721 cat conftest.$ac_ext >&5 | 2800 cat conftest.$ac_ext >&5 |
| 2737 fi | 2816 fi |
| 2738 fi | 2817 fi |
| 2739 | 2818 |
| 2740 | 2819 |
| 2741 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 2820 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 2742 echo "configure:2743: checking for working const" >&5 | 2821 echo "configure:2822: checking for working const" >&5 |
| 2743 | 2822 |
| 2744 cat > conftest.$ac_ext <<EOF | 2823 cat > conftest.$ac_ext <<EOF |
| 2745 #line 2746 "configure" | 2824 #line 2825 "configure" |
| 2746 #include "confdefs.h" | 2825 #include "confdefs.h" |
| 2747 | 2826 |
| 2748 int main() { | 2827 int main() { |
| 2749 | 2828 |
| 2750 /* Ultrix mips cc rejects this. */ | 2829 /* Ultrix mips cc rejects this. */ |
| 2789 const int foo = 10; | 2868 const int foo = 10; |
| 2790 } | 2869 } |
| 2791 | 2870 |
| 2792 ; return 0; } | 2871 ; return 0; } |
| 2793 EOF | 2872 EOF |
| 2794 if { (eval echo configure:2795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2873 if { (eval echo configure:2874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2795 rm -rf conftest* | 2874 rm -rf conftest* |
| 2796 ac_cv_c_const=yes | 2875 ac_cv_c_const=yes |
| 2797 else | 2876 else |
| 2798 echo "configure: failed program was:" >&5 | 2877 echo "configure: failed program was:" >&5 |
| 2799 cat conftest.$ac_ext >&5 | 2878 cat conftest.$ac_ext >&5 |
| 2814 | 2893 |
| 2815 fi | 2894 fi |
| 2816 | 2895 |
| 2817 | 2896 |
| 2818 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 2897 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 2819 echo "configure:2820: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 2898 echo "configure:2899: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 2820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 2899 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 2821 | 2900 |
| 2822 cat > conftestmake <<\EOF | 2901 cat > conftestmake <<\EOF |
| 2823 all: | 2902 all: |
| 2824 @echo 'ac_maketemp="${MAKE}"' | 2903 @echo 'ac_maketemp="${MAKE}"' |
| 2839 SET_MAKE="MAKE=${MAKE-make}" | 2918 SET_MAKE="MAKE=${MAKE-make}" |
| 2840 fi | 2919 fi |
| 2841 | 2920 |
| 2842 | 2921 |
| 2843 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | 2922 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
| 2844 echo "configure:2845: checking whether byte ordering is bigendian" >&5 | 2923 echo "configure:2924: checking whether byte ordering is bigendian" >&5 |
| 2845 | 2924 |
| 2846 ac_cv_c_bigendian=unknown | 2925 ac_cv_c_bigendian=unknown |
| 2847 # See if sys/param.h defines the BYTE_ORDER macro. | 2926 # See if sys/param.h defines the BYTE_ORDER macro. |
| 2848 cat > conftest.$ac_ext <<EOF | 2927 cat > conftest.$ac_ext <<EOF |
| 2849 #line 2850 "configure" | 2928 #line 2929 "configure" |
| 2850 #include "confdefs.h" | 2929 #include "confdefs.h" |
| 2851 #include <sys/types.h> | 2930 #include <sys/types.h> |
| 2852 #include <sys/param.h> | 2931 #include <sys/param.h> |
| 2853 int main() { | 2932 int main() { |
| 2854 | 2933 |
| 2855 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 2934 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 2856 bogus endian macros | 2935 bogus endian macros |
| 2857 #endif | 2936 #endif |
| 2858 ; return 0; } | 2937 ; return 0; } |
| 2859 EOF | 2938 EOF |
| 2860 if { (eval echo configure:2861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2939 if { (eval echo configure:2940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2861 rm -rf conftest* | 2940 rm -rf conftest* |
| 2862 # It does; now see whether it defined to BIG_ENDIAN or not. | 2941 # It does; now see whether it defined to BIG_ENDIAN or not. |
| 2863 cat > conftest.$ac_ext <<EOF | 2942 cat > conftest.$ac_ext <<EOF |
| 2864 #line 2865 "configure" | 2943 #line 2944 "configure" |
| 2865 #include "confdefs.h" | 2944 #include "confdefs.h" |
| 2866 #include <sys/types.h> | 2945 #include <sys/types.h> |
| 2867 #include <sys/param.h> | 2946 #include <sys/param.h> |
| 2868 int main() { | 2947 int main() { |
| 2869 | 2948 |
| 2870 #if BYTE_ORDER != BIG_ENDIAN | 2949 #if BYTE_ORDER != BIG_ENDIAN |
| 2871 not big endian | 2950 not big endian |
| 2872 #endif | 2951 #endif |
| 2873 ; return 0; } | 2952 ; return 0; } |
| 2874 EOF | 2953 EOF |
| 2875 if { (eval echo configure:2876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2954 if { (eval echo configure:2955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2876 rm -rf conftest* | 2955 rm -rf conftest* |
| 2877 ac_cv_c_bigendian=yes | 2956 ac_cv_c_bigendian=yes |
| 2878 else | 2957 else |
| 2879 echo "configure: failed program was:" >&5 | 2958 echo "configure: failed program was:" >&5 |
| 2880 cat conftest.$ac_ext >&5 | 2959 cat conftest.$ac_ext >&5 |
| 2887 cat conftest.$ac_ext >&5 | 2966 cat conftest.$ac_ext >&5 |
| 2888 fi | 2967 fi |
| 2889 rm -f conftest* | 2968 rm -f conftest* |
| 2890 if test $ac_cv_c_bigendian = unknown; then | 2969 if test $ac_cv_c_bigendian = unknown; then |
| 2891 cat > conftest.$ac_ext <<EOF | 2970 cat > conftest.$ac_ext <<EOF |
| 2892 #line 2893 "configure" | 2971 #line 2972 "configure" |
| 2893 #include "confdefs.h" | 2972 #include "confdefs.h" |
| 2894 main () { | 2973 main () { |
| 2895 /* Are we little or big endian? From Harbison&Steele. */ | 2974 /* Are we little or big endian? From Harbison&Steele. */ |
| 2896 union | 2975 union |
| 2897 { | 2976 { |
| 2900 } u; | 2979 } u; |
| 2901 u.l = 1; | 2980 u.l = 1; |
| 2902 exit (u.c[sizeof (long) - 1] == 1); | 2981 exit (u.c[sizeof (long) - 1] == 1); |
| 2903 } | 2982 } |
| 2904 EOF | 2983 EOF |
| 2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | 2984 if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
| 2906 then | 2985 then |
| 2907 ac_cv_c_bigendian=no | 2986 ac_cv_c_bigendian=no |
| 2908 else | 2987 else |
| 2909 echo "configure: failed program was:" >&5 | 2988 echo "configure: failed program was:" >&5 |
| 2910 cat conftest.$ac_ext >&5 | 2989 cat conftest.$ac_ext >&5 |
| 2925 } | 3004 } |
| 2926 | 3005 |
| 2927 fi | 3006 fi |
| 2928 | 3007 |
| 2929 | 3008 |
| 3009 echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
| 3010 echo "configure:3011: checking size of short" >&5 | |
| 3011 | |
| 3012 cat > conftest.$ac_ext <<EOF | |
| 3013 #line 3014 "configure" | |
| 3014 #include "confdefs.h" | |
| 3015 #include <stdio.h> | |
| 3016 main() | |
| 3017 { | |
| 3018 FILE *f=fopen("conftestval", "w"); | |
| 3019 if (!f) exit(1); | |
| 3020 fprintf(f, "%d\n", sizeof(short)); | |
| 3021 exit(0); | |
| 3022 } | |
| 3023 EOF | |
| 3024 if { (eval echo configure:3025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 | |
| 3025 then | |
| 3026 ac_cv_sizeof_short=`cat conftestval` | |
| 3027 else | |
| 3028 echo "configure: failed program was:" >&5 | |
| 3029 cat conftest.$ac_ext >&5 | |
| 3030 rm -fr conftest* | |
| 3031 ac_cv_sizeof_short=0 | |
| 3032 fi | |
| 3033 rm -fr conftest* | |
| 3034 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
| 3035 { test "$extra_verbose" = "yes" && cat << EOF | |
| 3036 Defining SIZEOF_SHORT = $ac_cv_sizeof_short | |
| 3037 EOF | |
| 3038 cat >> confdefs.h <<EOF | |
| 3039 #define SIZEOF_SHORT $ac_cv_sizeof_short | |
| 3040 EOF | |
| 3041 } | |
| 3042 | |
| 3043 | |
| 3044 echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
| 3045 echo "configure:3046: checking size of int" >&5 | |
| 3046 | |
| 3047 cat > conftest.$ac_ext <<EOF | |
| 3048 #line 3049 "configure" | |
| 3049 #include "confdefs.h" | |
| 3050 #include <stdio.h> | |
| 3051 main() | |
| 3052 { | |
| 3053 FILE *f=fopen("conftestval", "w"); | |
| 3054 if (!f) exit(1); | |
| 3055 fprintf(f, "%d\n", sizeof(int)); | |
| 3056 exit(0); | |
| 3057 } | |
| 3058 EOF | |
| 3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 | |
| 3060 then | |
| 3061 ac_cv_sizeof_int=`cat conftestval` | |
| 3062 else | |
| 3063 echo "configure: failed program was:" >&5 | |
| 3064 cat conftest.$ac_ext >&5 | |
| 3065 rm -fr conftest* | |
| 3066 ac_cv_sizeof_int=0 | |
| 3067 fi | |
| 3068 rm -fr conftest* | |
| 3069 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
| 3070 { test "$extra_verbose" = "yes" && cat << EOF | |
| 3071 Defining SIZEOF_INT = $ac_cv_sizeof_int | |
| 3072 EOF | |
| 3073 cat >> confdefs.h <<EOF | |
| 3074 #define SIZEOF_INT $ac_cv_sizeof_int | |
| 3075 EOF | |
| 3076 } | |
| 3077 | |
| 3078 | |
| 3079 echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
| 3080 echo "configure:3081: checking size of long" >&5 | |
| 3081 | |
| 3082 cat > conftest.$ac_ext <<EOF | |
| 3083 #line 3084 "configure" | |
| 3084 #include "confdefs.h" | |
| 3085 #include <stdio.h> | |
| 3086 main() | |
| 3087 { | |
| 3088 FILE *f=fopen("conftestval", "w"); | |
| 3089 if (!f) exit(1); | |
| 3090 fprintf(f, "%d\n", sizeof(long)); | |
| 3091 exit(0); | |
| 3092 } | |
| 3093 EOF | |
| 3094 if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 | |
| 3095 then | |
| 3096 ac_cv_sizeof_long=`cat conftestval` | |
| 3097 else | |
| 3098 echo "configure: failed program was:" >&5 | |
| 3099 cat conftest.$ac_ext >&5 | |
| 3100 rm -fr conftest* | |
| 3101 ac_cv_sizeof_long=0 | |
| 3102 fi | |
| 3103 rm -fr conftest* | |
| 3104 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
| 3105 { test "$extra_verbose" = "yes" && cat << EOF | |
| 3106 Defining SIZEOF_LONG = $ac_cv_sizeof_long | |
| 3107 EOF | |
| 3108 cat >> confdefs.h <<EOF | |
| 3109 #define SIZEOF_LONG $ac_cv_sizeof_long | |
| 3110 EOF | |
| 3111 } | |
| 3112 | |
| 3113 | |
| 3114 | |
| 2930 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | 3115 echo $ac_n "checking for long file names""... $ac_c" 1>&6 |
| 2931 echo "configure:2932: checking for long file names" >&5 | 3116 echo "configure:3117: checking for long file names" >&5 |
| 2932 | 3117 |
| 2933 ac_cv_sys_long_file_names=yes | 3118 ac_cv_sys_long_file_names=yes |
| 2934 # Test for long file names in all the places we know might matter: | 3119 # Test for long file names in all the places we know might matter: |
| 2935 # . the current directory, where building will happen | 3120 # . the current directory, where building will happen |
| 2936 # $prefix/lib where we will be installing things | 3121 # $prefix/lib where we will be installing things |
| 2974 | 3159 |
| 2975 | 3160 |
| 2976 | 3161 |
| 2977 | 3162 |
| 2978 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 3163 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
| 2979 echo "configure:2980: checking for sqrt in -lm" >&5 | 3164 echo "configure:3165: checking for sqrt in -lm" >&5 |
| 2980 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 3165 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
| 2981 | 3166 |
| 2982 xe_check_libs=" -lm " | 3167 xe_check_libs=" -lm " |
| 2983 cat > conftest.$ac_ext <<EOF | 3168 cat > conftest.$ac_ext <<EOF |
| 2984 #line 2985 "configure" | 3169 #line 3170 "configure" |
| 2985 #include "confdefs.h" | 3170 #include "confdefs.h" |
| 2986 /* Override any gcc2 internal prototype to avoid an error. */ | 3171 /* Override any gcc2 internal prototype to avoid an error. */ |
| 2987 /* We use char because int might match the return type of a gcc2 | 3172 /* We use char because int might match the return type of a gcc2 |
| 2988 builtin and then its argument prototype would still apply. */ | 3173 builtin and then its argument prototype would still apply. */ |
| 2989 char sqrt(); | 3174 char sqrt(); |
| 2990 | 3175 |
| 2991 int main() { | 3176 int main() { |
| 2992 sqrt() | 3177 sqrt() |
| 2993 ; return 0; } | 3178 ; return 0; } |
| 2994 EOF | 3179 EOF |
| 2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3180 if { (eval echo configure:3181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 2996 rm -rf conftest* | 3181 rm -rf conftest* |
| 2997 eval "ac_cv_lib_$ac_lib_var=yes" | 3182 eval "ac_cv_lib_$ac_lib_var=yes" |
| 2998 else | 3183 else |
| 2999 echo "configure: failed program was:" >&5 | 3184 echo "configure: failed program was:" >&5 |
| 3000 cat conftest.$ac_ext >&5 | 3185 cat conftest.$ac_ext >&5 |
| 3002 eval "ac_cv_lib_$ac_lib_var=no" | 3187 eval "ac_cv_lib_$ac_lib_var=no" |
| 3003 fi | 3188 fi |
| 3004 rm -f conftest* | 3189 rm -f conftest* |
| 3005 xe_check_libs="" | 3190 xe_check_libs="" |
| 3006 | 3191 |
| 3007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 3192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 3008 echo "$ac_t""yes" 1>&6 | 3193 echo "$ac_t""yes" 1>&6 |
| 3009 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 3194 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 3010 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 3195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 3011 { test "$extra_verbose" = "yes" && cat << EOF | 3196 { test "$extra_verbose" = "yes" && cat << EOF |
| 3012 Defining $ac_tr_lib | 3197 Defining $ac_tr_lib |
| 3014 cat >> confdefs.h <<EOF | 3199 cat >> confdefs.h <<EOF |
| 3015 #define $ac_tr_lib 1 | 3200 #define $ac_tr_lib 1 |
| 3016 EOF | 3201 EOF |
| 3017 } | 3202 } |
| 3018 | 3203 |
| 3019 LIBS="-lm $LIBS" | 3204 LIBS="-lm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lm\" to \$LIBS"; fi |
| 3020 | 3205 |
| 3021 else | 3206 else |
| 3022 echo "$ac_t""no" 1>&6 | 3207 echo "$ac_t""no" 1>&6 |
| 3023 fi | 3208 fi |
| 3024 | 3209 |
| 3210 | |
| 3211 | |
| 3212 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 3213 Defining LISP_FLOAT_TYPE | |
| 3214 EOF | |
| 3215 cat >> confdefs.h <<\EOF | |
| 3216 #define LISP_FLOAT_TYPE 1 | |
| 3217 EOF | |
| 3218 } | |
| 3025 | 3219 |
| 3026 | 3220 |
| 3027 echo "checking type of mail spool file locking" 1>&6 | 3221 echo "checking type of mail spool file locking" 1>&6 |
| 3028 echo "configure:3029: checking type of mail spool file locking" >&5 | 3222 echo "configure:3223: checking type of mail spool file locking" >&5 |
| 3029 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock | 3223 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock |
| 3030 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf | 3224 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf |
| 3031 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF | 3225 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF |
| 3032 Defining REAL_MAIL_USE_LOCKF | 3226 Defining REAL_MAIL_USE_LOCKF |
| 3033 EOF | 3227 EOF |
| 3044 EOF | 3238 EOF |
| 3045 } | 3239 } |
| 3046 | 3240 |
| 3047 fi | 3241 fi |
| 3048 | 3242 |
| 3049 if test "$need_dynodump" = "yes" ; then | 3243 |
| 3244 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 | |
| 3245 echo "configure:3246: checking for kstat_open in -lkstat" >&5 | |
| 3246 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` | |
| 3247 | |
| 3248 xe_check_libs=" -lkstat " | |
| 3249 cat > conftest.$ac_ext <<EOF | |
| 3250 #line 3251 "configure" | |
| 3251 #include "confdefs.h" | |
| 3252 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3253 /* We use char because int might match the return type of a gcc2 | |
| 3254 builtin and then its argument prototype would still apply. */ | |
| 3255 char kstat_open(); | |
| 3256 | |
| 3257 int main() { | |
| 3258 kstat_open() | |
| 3259 ; return 0; } | |
| 3260 EOF | |
| 3261 if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3262 rm -rf conftest* | |
| 3263 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3264 else | |
| 3265 echo "configure: failed program was:" >&5 | |
| 3266 cat conftest.$ac_ext >&5 | |
| 3267 rm -rf conftest* | |
| 3268 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3269 fi | |
| 3270 rm -f conftest* | |
| 3271 xe_check_libs="" | |
| 3272 | |
| 3273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
| 3274 echo "$ac_t""yes" 1>&6 | |
| 3275 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
| 3276 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
| 3277 { test "$extra_verbose" = "yes" && cat << EOF | |
| 3278 Defining $ac_tr_lib | |
| 3279 EOF | |
| 3280 cat >> confdefs.h <<EOF | |
| 3281 #define $ac_tr_lib 1 | |
| 3282 EOF | |
| 3283 } | |
| 3284 | |
| 3285 LIBS="-lkstat $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkstat\" to \$LIBS"; fi | |
| 3286 | |
| 3287 else | |
| 3288 echo "$ac_t""no" 1>&6 | |
| 3289 fi | |
| 3290 | |
| 3291 | |
| 3292 | |
| 3293 | |
| 3294 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 | |
| 3295 echo "configure:3296: checking for kvm_read in -lkvm" >&5 | |
| 3296 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` | |
| 3297 | |
| 3298 xe_check_libs=" -lkvm " | |
| 3299 cat > conftest.$ac_ext <<EOF | |
| 3300 #line 3301 "configure" | |
| 3301 #include "confdefs.h" | |
| 3302 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3303 /* We use char because int might match the return type of a gcc2 | |
| 3304 builtin and then its argument prototype would still apply. */ | |
| 3305 char kvm_read(); | |
| 3306 | |
| 3307 int main() { | |
| 3308 kvm_read() | |
| 3309 ; return 0; } | |
| 3310 EOF | |
| 3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3312 rm -rf conftest* | |
| 3313 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3314 else | |
| 3315 echo "configure: failed program was:" >&5 | |
| 3316 cat conftest.$ac_ext >&5 | |
| 3317 rm -rf conftest* | |
| 3318 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3319 fi | |
| 3320 rm -f conftest* | |
| 3321 xe_check_libs="" | |
| 3322 | |
| 3323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
| 3324 echo "$ac_t""yes" 1>&6 | |
| 3325 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
| 3326 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
| 3327 { test "$extra_verbose" = "yes" && cat << EOF | |
| 3328 Defining $ac_tr_lib | |
| 3329 EOF | |
| 3330 cat >> confdefs.h <<EOF | |
| 3331 #define $ac_tr_lib 1 | |
| 3332 EOF | |
| 3333 } | |
| 3334 | |
| 3335 LIBS="-lkvm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkvm\" to \$LIBS"; fi | |
| 3336 | |
| 3337 else | |
| 3338 echo "$ac_t""no" 1>&6 | |
| 3339 fi | |
| 3340 | |
| 3341 | |
| 3342 | |
| 3343 | |
| 3344 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | |
| 3345 echo "configure:3346: checking for cma_open in -lpthreads" >&5 | |
| 3346 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | |
| 3347 | |
| 3348 xe_check_libs=" -lpthreads " | |
| 3349 cat > conftest.$ac_ext <<EOF | |
| 3350 #line 3351 "configure" | |
| 3351 #include "confdefs.h" | |
| 3352 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 3353 /* We use char because int might match the return type of a gcc2 | |
| 3354 builtin and then its argument prototype would still apply. */ | |
| 3355 char cma_open(); | |
| 3356 | |
| 3357 int main() { | |
| 3358 cma_open() | |
| 3359 ; return 0; } | |
| 3360 EOF | |
| 3361 if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 3362 rm -rf conftest* | |
| 3363 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 3364 else | |
| 3365 echo "configure: failed program was:" >&5 | |
| 3366 cat conftest.$ac_ext >&5 | |
| 3367 rm -rf conftest* | |
| 3368 eval "ac_cv_lib_$ac_lib_var=no" | |
| 3369 fi | |
| 3370 rm -f conftest* | |
| 3371 xe_check_libs="" | |
| 3372 | |
| 3373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
| 3374 echo "$ac_t""yes" 1>&6 | |
| 3375 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
| 3376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
| 3377 { test "$extra_verbose" = "yes" && cat << EOF | |
| 3378 Defining $ac_tr_lib | |
| 3379 EOF | |
| 3380 cat >> confdefs.h <<EOF | |
| 3381 #define $ac_tr_lib 1 | |
| 3382 EOF | |
| 3383 } | |
| 3384 | |
| 3385 LIBS="-lpthreads $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpthreads\" to \$LIBS"; fi | |
| 3386 | |
| 3387 else | |
| 3388 echo "$ac_t""no" 1>&6 | |
| 3389 fi | |
| 3390 | |
| 3391 | |
| 3392 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then | |
| 3393 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac | |
| 3394 fi | |
| 3395 | |
| 3396 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 | |
| 3397 echo "configure:3398: checking whether the -xildoff compiler flag is required" >&5 | |
| 3398 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then | |
| 3399 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; | |
| 3400 then echo "$ac_t""no" 1>&6; | |
| 3401 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi | |
| 3402 fi | |
| 3403 else echo "$ac_t""no" 1>&6 | |
| 3404 fi | |
| 3405 | |
| 3406 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 | |
| 3407 echo "configure:3408: checking for dynodump" >&5 | |
| 3408 case "$canonical" in *-solaris2.[0-5]* ) | |
| 3409 echo "$ac_t""yes" 1>&6 | |
| 3050 { test "$extra_verbose" = "yes" && cat << \EOF | 3410 { test "$extra_verbose" = "yes" && cat << \EOF |
| 3051 Defining DYNODUMP | 3411 Defining DYNODUMP |
| 3052 EOF | 3412 EOF |
| 3053 cat >> confdefs.h <<\EOF | 3413 cat >> confdefs.h <<\EOF |
| 3054 #define DYNODUMP 1 | 3414 #define DYNODUMP 1 |
| 3055 EOF | 3415 EOF |
| 3056 } | 3416 } |
| 3057 | 3417 |
| 3058 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" | 3418 MAKE_SUBDIR="$MAKE_SUBDIR dynodump" && if test "$extra_verbose" = "yes"; then echo " Appending \"dynodump\" to \$MAKE_SUBDIR"; fi |
| 3059 case "$canonical" in | 3419 case "$canonical" in |
| 3060 sparc* ) dynodump_arch=sparc ;; | 3420 sparc* ) dynodump_arch=sparc ;; |
| 3061 powerpc* ) dynodump_arch=ppc ;; | 3421 powerpc* ) dynodump_arch=ppc ;; |
| 3062 i*86* ) dynodump_arch=i386 ;; | 3422 i*86* ) dynodump_arch=i386 ;; |
| 3063 esac | 3423 esac |
| 3064 test "$GCC" = "yes" && ld_switch_site="-fno-gnu-linker $ld_switch_site" | 3424 test "$GCC" = "yes" && ld_switch_site="$ld_switch_site -fno-gnu-linker" && if test "$extra_verbose" = "yes"; then echo " Appending \"-fno-gnu-linker\" to \$ld_switch_site"; fi ;; |
| 3065 fi | 3425 *) echo "$ac_t""no" 1>&6 ;; |
| 3066 | 3426 esac |
| 3067 for dir in "/usr/ccs/lib"; do | |
| 3068 test -d "$dir" && ld_switch_site="$ld_switch_site -L${dir}" | |
| 3069 done | |
| 3070 | 3427 |
| 3071 | 3428 |
| 3072 echo "checking "for specified window system"" 1>&6 | 3429 echo "checking "for specified window system"" 1>&6 |
| 3073 echo "configure:3074: checking "for specified window system"" >&5 | 3430 echo "configure:3431: checking "for specified window system"" >&5 |
| 3074 | 3431 |
| 3075 if test "$x_includes $x_libraries" = "NONE NONE"; then | 3432 if test "$x_includes $x_libraries" = "NONE NONE"; then |
| 3076 if test -n "$OPENWINHOME" \ | 3433 if test -n "$OPENWINHOME" \ |
| 3077 -a "$OPENWINHOME" != "/usr/openwin" \ | 3434 -a "$OPENWINHOME" != "/usr/openwin" \ |
| 3078 -a -d "$OPENWINHOME"; then | 3435 -a -d "$OPENWINHOME"; then |
| 3089 # If we find X, set shell vars x_includes and x_libraries to the | 3446 # If we find X, set shell vars x_includes and x_libraries to the |
| 3090 # paths, otherwise set no_x=yes. | 3447 # paths, otherwise set no_x=yes. |
| 3091 # Uses ac_ vars as temps to allow command line to override cache and checks. | 3448 # Uses ac_ vars as temps to allow command line to override cache and checks. |
| 3092 # --without-x overrides everything else, but does not touch the cache. | 3449 # --without-x overrides everything else, but does not touch the cache. |
| 3093 echo $ac_n "checking for X""... $ac_c" 1>&6 | 3450 echo $ac_n "checking for X""... $ac_c" 1>&6 |
| 3094 echo "configure:3095: checking for X" >&5 | 3451 echo "configure:3452: checking for X" >&5 |
| 3095 | 3452 |
| 3096 # Check whether --with-x or --without-x was given. | 3453 # Check whether --with-x or --without-x was given. |
| 3097 if test "${with_x+set}" = set; then | 3454 if test "${with_x+set}" = set; then |
| 3098 withval="$with_x" | 3455 withval="$with_x" |
| 3099 : | 3456 : |
| 3149 # Guess where to find include files, by looking for this one X11 .h file. | 3506 # Guess where to find include files, by looking for this one X11 .h file. |
| 3150 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 3507 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 3151 | 3508 |
| 3152 # First, try using that file with no special directory specified. | 3509 # First, try using that file with no special directory specified. |
| 3153 cat > conftest.$ac_ext <<EOF | 3510 cat > conftest.$ac_ext <<EOF |
| 3154 #line 3155 "configure" | 3511 #line 3512 "configure" |
| 3155 #include "confdefs.h" | 3512 #include "confdefs.h" |
| 3156 #include <$x_direct_test_include> | 3513 #include <$x_direct_test_include> |
| 3157 EOF | 3514 EOF |
| 3158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3159 { (eval echo configure:3160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3516 { (eval echo configure:3517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3160 ac_err=`grep -v '^ *+' conftest.out` | 3517 ac_err=`grep -v '^ *+' conftest.out` |
| 3161 if test -z "$ac_err"; then | 3518 if test -z "$ac_err"; then |
| 3162 rm -rf conftest* | 3519 rm -rf conftest* |
| 3163 # We can compile using X headers with no special include directory. | 3520 # We can compile using X headers with no special include directory. |
| 3164 ac_x_includes= | 3521 ac_x_includes= |
| 3223 # See if we find them without any special options. | 3580 # See if we find them without any special options. |
| 3224 # Don't add to $LIBS permanently. | 3581 # Don't add to $LIBS permanently. |
| 3225 ac_save_LIBS="$LIBS" | 3582 ac_save_LIBS="$LIBS" |
| 3226 LIBS="-l$x_direct_test_library $LIBS" | 3583 LIBS="-l$x_direct_test_library $LIBS" |
| 3227 cat > conftest.$ac_ext <<EOF | 3584 cat > conftest.$ac_ext <<EOF |
| 3228 #line 3229 "configure" | 3585 #line 3586 "configure" |
| 3229 #include "confdefs.h" | 3586 #include "confdefs.h" |
| 3230 | 3587 |
| 3231 int main() { | 3588 int main() { |
| 3232 ${x_direct_test_function}() | 3589 ${x_direct_test_function}() |
| 3233 ; return 0; } | 3590 ; return 0; } |
| 3234 EOF | 3591 EOF |
| 3235 if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3236 rm -rf conftest* | 3593 rm -rf conftest* |
| 3237 LIBS="$ac_save_LIBS" | 3594 LIBS="$ac_save_LIBS" |
| 3238 # We can link X programs with no special library path. | 3595 # We can link X programs with no special library path. |
| 3239 ac_x_libraries= | 3596 ac_x_libraries= |
| 3240 else | 3597 else |
| 3339 # For Solaris; some versions of Sun CC require a space after -R and | 3696 # For Solaris; some versions of Sun CC require a space after -R and |
| 3340 # others require no space. Words are not sufficient . . . . | 3697 # others require no space. Words are not sufficient . . . . |
| 3341 case "`(uname -sr) 2>/dev/null`" in | 3698 case "`(uname -sr) 2>/dev/null`" in |
| 3342 "SunOS 5"*) | 3699 "SunOS 5"*) |
| 3343 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | 3700 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
| 3344 echo "configure:3345: checking whether -R must be followed by a space" >&5 | 3701 echo "configure:3702: checking whether -R must be followed by a space" >&5 |
| 3345 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | 3702 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
| 3346 cat > conftest.$ac_ext <<EOF | 3703 cat > conftest.$ac_ext <<EOF |
| 3347 #line 3348 "configure" | 3704 #line 3705 "configure" |
| 3348 #include "confdefs.h" | 3705 #include "confdefs.h" |
| 3349 | 3706 |
| 3350 int main() { | 3707 int main() { |
| 3351 | 3708 |
| 3352 ; return 0; } | 3709 ; return 0; } |
| 3353 EOF | 3710 EOF |
| 3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3711 if { (eval echo configure:3712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3355 rm -rf conftest* | 3712 rm -rf conftest* |
| 3356 ac_R_nospace=yes | 3713 ac_R_nospace=yes |
| 3357 else | 3714 else |
| 3358 echo "configure: failed program was:" >&5 | 3715 echo "configure: failed program was:" >&5 |
| 3359 cat conftest.$ac_ext >&5 | 3716 cat conftest.$ac_ext >&5 |
| 3365 echo "$ac_t""no" 1>&6 | 3722 echo "$ac_t""no" 1>&6 |
| 3366 X_LIBS="$X_LIBS -R$x_libraries" | 3723 X_LIBS="$X_LIBS -R$x_libraries" |
| 3367 else | 3724 else |
| 3368 LIBS="$ac_xsave_LIBS -R $x_libraries" | 3725 LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 3369 cat > conftest.$ac_ext <<EOF | 3726 cat > conftest.$ac_ext <<EOF |
| 3370 #line 3371 "configure" | 3727 #line 3728 "configure" |
| 3371 #include "confdefs.h" | 3728 #include "confdefs.h" |
| 3372 | 3729 |
| 3373 int main() { | 3730 int main() { |
| 3374 | 3731 |
| 3375 ; return 0; } | 3732 ; return 0; } |
| 3376 EOF | 3733 EOF |
| 3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3734 if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3378 rm -rf conftest* | 3735 rm -rf conftest* |
| 3379 ac_R_space=yes | 3736 ac_R_space=yes |
| 3380 else | 3737 else |
| 3381 echo "configure: failed program was:" >&5 | 3738 echo "configure: failed program was:" >&5 |
| 3382 cat conftest.$ac_ext >&5 | 3739 cat conftest.$ac_ext >&5 |
| 3403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | 3760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 3404 else | 3761 else |
| 3405 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | 3762 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
| 3406 # libraries were built with DECnet support. And karl@cs.umb.edu says | 3763 # libraries were built with DECnet support. And karl@cs.umb.edu says |
| 3407 # the Alpha needs dnet_stub (dnet does not exist). | 3764 # the Alpha needs dnet_stub (dnet does not exist). |
| 3408 if test "$with_dnet" = "no"; then | 3765 if test "$with_dnet" = "no" ; then |
| 3409 ac_cv_lib_dnet_dnet_ntoa=no | 3766 ac_cv_lib_dnet_dnet_ntoa=no |
| 3410 else | 3767 else |
| 3411 | 3768 |
| 3412 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 3769 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
| 3413 echo "configure:3414: checking for dnet_ntoa in -ldnet" >&5 | 3770 echo "configure:3771: checking for dnet_ntoa in -ldnet" >&5 |
| 3414 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 3771 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
| 3415 | 3772 |
| 3416 xe_check_libs=" -ldnet " | 3773 xe_check_libs=" -ldnet " |
| 3417 cat > conftest.$ac_ext <<EOF | 3774 cat > conftest.$ac_ext <<EOF |
| 3418 #line 3419 "configure" | 3775 #line 3776 "configure" |
| 3419 #include "confdefs.h" | 3776 #include "confdefs.h" |
| 3420 /* Override any gcc2 internal prototype to avoid an error. */ | 3777 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3421 /* We use char because int might match the return type of a gcc2 | 3778 /* We use char because int might match the return type of a gcc2 |
| 3422 builtin and then its argument prototype would still apply. */ | 3779 builtin and then its argument prototype would still apply. */ |
| 3423 char dnet_ntoa(); | 3780 char dnet_ntoa(); |
| 3424 | 3781 |
| 3425 int main() { | 3782 int main() { |
| 3426 dnet_ntoa() | 3783 dnet_ntoa() |
| 3427 ; return 0; } | 3784 ; return 0; } |
| 3428 EOF | 3785 EOF |
| 3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3430 rm -rf conftest* | 3787 rm -rf conftest* |
| 3431 eval "ac_cv_lib_$ac_lib_var=yes" | 3788 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3432 else | 3789 else |
| 3433 echo "configure: failed program was:" >&5 | 3790 echo "configure: failed program was:" >&5 |
| 3434 cat conftest.$ac_ext >&5 | 3791 cat conftest.$ac_ext >&5 |
| 3436 eval "ac_cv_lib_$ac_lib_var=no" | 3793 eval "ac_cv_lib_$ac_lib_var=no" |
| 3437 fi | 3794 fi |
| 3438 rm -f conftest* | 3795 rm -f conftest* |
| 3439 xe_check_libs="" | 3796 xe_check_libs="" |
| 3440 | 3797 |
| 3441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 3798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 3442 echo "$ac_t""yes" 1>&6 | 3799 echo "$ac_t""yes" 1>&6 |
| 3443 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | 3800 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 3444 else | 3801 else |
| 3445 echo "$ac_t""no" 1>&6 | 3802 echo "$ac_t""no" 1>&6 |
| 3446 fi | 3803 fi |
| 3448 fi | 3805 fi |
| 3449 | 3806 |
| 3450 if test $ac_cv_lib_dnet_dnet_ntoa = no; then | 3807 if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 3451 | 3808 |
| 3452 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | 3809 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
| 3453 echo "configure:3454: checking for dnet_ntoa in -ldnet_stub" >&5 | 3810 echo "configure:3811: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 3454 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 3811 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
| 3455 | 3812 |
| 3456 xe_check_libs=" -ldnet_stub " | 3813 xe_check_libs=" -ldnet_stub " |
| 3457 cat > conftest.$ac_ext <<EOF | 3814 cat > conftest.$ac_ext <<EOF |
| 3458 #line 3459 "configure" | 3815 #line 3816 "configure" |
| 3459 #include "confdefs.h" | 3816 #include "confdefs.h" |
| 3460 /* Override any gcc2 internal prototype to avoid an error. */ | 3817 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3461 /* We use char because int might match the return type of a gcc2 | 3818 /* We use char because int might match the return type of a gcc2 |
| 3462 builtin and then its argument prototype would still apply. */ | 3819 builtin and then its argument prototype would still apply. */ |
| 3463 char dnet_ntoa(); | 3820 char dnet_ntoa(); |
| 3464 | 3821 |
| 3465 int main() { | 3822 int main() { |
| 3466 dnet_ntoa() | 3823 dnet_ntoa() |
| 3467 ; return 0; } | 3824 ; return 0; } |
| 3468 EOF | 3825 EOF |
| 3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3470 rm -rf conftest* | 3827 rm -rf conftest* |
| 3471 eval "ac_cv_lib_$ac_lib_var=yes" | 3828 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3472 else | 3829 else |
| 3473 echo "configure: failed program was:" >&5 | 3830 echo "configure: failed program was:" >&5 |
| 3474 cat conftest.$ac_ext >&5 | 3831 cat conftest.$ac_ext >&5 |
| 3476 eval "ac_cv_lib_$ac_lib_var=no" | 3833 eval "ac_cv_lib_$ac_lib_var=no" |
| 3477 fi | 3834 fi |
| 3478 rm -f conftest* | 3835 rm -f conftest* |
| 3479 xe_check_libs="" | 3836 xe_check_libs="" |
| 3480 | 3837 |
| 3481 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 3838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 3482 echo "$ac_t""yes" 1>&6 | 3839 echo "$ac_t""yes" 1>&6 |
| 3483 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | 3840 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 3484 else | 3841 else |
| 3485 echo "$ac_t""no" 1>&6 | 3842 echo "$ac_t""no" 1>&6 |
| 3486 fi | 3843 fi |
| 3493 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | 3850 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 3494 # needs -lnsl. | 3851 # needs -lnsl. |
| 3495 # The nsl library prevents programs from opening the X display | 3852 # The nsl library prevents programs from opening the X display |
| 3496 # on Irix 5.2, according to dickey@clark.net. | 3853 # on Irix 5.2, according to dickey@clark.net. |
| 3497 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | 3854 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
| 3498 echo "configure:3499: checking for gethostbyname" >&5 | 3855 echo "configure:3856: checking for gethostbyname" >&5 |
| 3499 | 3856 |
| 3500 cat > conftest.$ac_ext <<EOF | 3857 cat > conftest.$ac_ext <<EOF |
| 3501 #line 3502 "configure" | 3858 #line 3859 "configure" |
| 3502 #include "confdefs.h" | 3859 #include "confdefs.h" |
| 3503 /* System header to define __stub macros and hopefully few prototypes, | 3860 /* System header to define __stub macros and hopefully few prototypes, |
| 3504 which can conflict with char gethostbyname(); below. */ | 3861 which can conflict with char gethostbyname(); below. */ |
| 3505 #include <assert.h> | 3862 #include <assert.h> |
| 3506 /* Override any gcc2 internal prototype to avoid an error. */ | 3863 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3519 gethostbyname(); | 3876 gethostbyname(); |
| 3520 #endif | 3877 #endif |
| 3521 | 3878 |
| 3522 ; return 0; } | 3879 ; return 0; } |
| 3523 EOF | 3880 EOF |
| 3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3525 rm -rf conftest* | 3882 rm -rf conftest* |
| 3526 eval "ac_cv_func_gethostbyname=yes" | 3883 eval "ac_cv_func_gethostbyname=yes" |
| 3527 else | 3884 else |
| 3528 echo "configure: failed program was:" >&5 | 3885 echo "configure: failed program was:" >&5 |
| 3529 cat conftest.$ac_ext >&5 | 3886 cat conftest.$ac_ext >&5 |
| 3540 fi | 3897 fi |
| 3541 | 3898 |
| 3542 if test $ac_cv_func_gethostbyname = no; then | 3899 if test $ac_cv_func_gethostbyname = no; then |
| 3543 | 3900 |
| 3544 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | 3901 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
| 3545 echo "configure:3546: checking for gethostbyname in -lnsl" >&5 | 3902 echo "configure:3903: checking for gethostbyname in -lnsl" >&5 |
| 3546 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | 3903 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 3547 | 3904 |
| 3548 xe_check_libs=" -lnsl " | 3905 xe_check_libs=" -lnsl " |
| 3549 cat > conftest.$ac_ext <<EOF | 3906 cat > conftest.$ac_ext <<EOF |
| 3550 #line 3551 "configure" | 3907 #line 3908 "configure" |
| 3551 #include "confdefs.h" | 3908 #include "confdefs.h" |
| 3552 /* Override any gcc2 internal prototype to avoid an error. */ | 3909 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3553 /* We use char because int might match the return type of a gcc2 | 3910 /* We use char because int might match the return type of a gcc2 |
| 3554 builtin and then its argument prototype would still apply. */ | 3911 builtin and then its argument prototype would still apply. */ |
| 3555 char gethostbyname(); | 3912 char gethostbyname(); |
| 3556 | 3913 |
| 3557 int main() { | 3914 int main() { |
| 3558 gethostbyname() | 3915 gethostbyname() |
| 3559 ; return 0; } | 3916 ; return 0; } |
| 3560 EOF | 3917 EOF |
| 3561 if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3562 rm -rf conftest* | 3919 rm -rf conftest* |
| 3563 eval "ac_cv_lib_$ac_lib_var=yes" | 3920 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3564 else | 3921 else |
| 3565 echo "configure: failed program was:" >&5 | 3922 echo "configure: failed program was:" >&5 |
| 3566 cat conftest.$ac_ext >&5 | 3923 cat conftest.$ac_ext >&5 |
| 3568 eval "ac_cv_lib_$ac_lib_var=no" | 3925 eval "ac_cv_lib_$ac_lib_var=no" |
| 3569 fi | 3926 fi |
| 3570 rm -f conftest* | 3927 rm -f conftest* |
| 3571 xe_check_libs="" | 3928 xe_check_libs="" |
| 3572 | 3929 |
| 3573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 3930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 3574 echo "$ac_t""yes" 1>&6 | 3931 echo "$ac_t""yes" 1>&6 |
| 3575 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | 3932 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 3576 else | 3933 else |
| 3577 echo "$ac_t""no" 1>&6 | 3934 echo "$ac_t""no" 1>&6 |
| 3578 fi | 3935 fi |
| 3586 # on later versions), says simon@lia.di.epfl.ch: it contains | 3943 # on later versions), says simon@lia.di.epfl.ch: it contains |
| 3587 # gethostby* variants that don't use the nameserver (or something). | 3944 # gethostby* variants that don't use the nameserver (or something). |
| 3588 # -lsocket must be given before -lnsl if both are needed. | 3945 # -lsocket must be given before -lnsl if both are needed. |
| 3589 # We assume that if connect needs -lnsl, so does gethostbyname. | 3946 # We assume that if connect needs -lnsl, so does gethostbyname. |
| 3590 echo $ac_n "checking for connect""... $ac_c" 1>&6 | 3947 echo $ac_n "checking for connect""... $ac_c" 1>&6 |
| 3591 echo "configure:3592: checking for connect" >&5 | 3948 echo "configure:3949: checking for connect" >&5 |
| 3592 | 3949 |
| 3593 cat > conftest.$ac_ext <<EOF | 3950 cat > conftest.$ac_ext <<EOF |
| 3594 #line 3595 "configure" | 3951 #line 3952 "configure" |
| 3595 #include "confdefs.h" | 3952 #include "confdefs.h" |
| 3596 /* System header to define __stub macros and hopefully few prototypes, | 3953 /* System header to define __stub macros and hopefully few prototypes, |
| 3597 which can conflict with char connect(); below. */ | 3954 which can conflict with char connect(); below. */ |
| 3598 #include <assert.h> | 3955 #include <assert.h> |
| 3599 /* Override any gcc2 internal prototype to avoid an error. */ | 3956 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3612 connect(); | 3969 connect(); |
| 3613 #endif | 3970 #endif |
| 3614 | 3971 |
| 3615 ; return 0; } | 3972 ; return 0; } |
| 3616 EOF | 3973 EOF |
| 3617 if { (eval echo configure:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 3974 if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3618 rm -rf conftest* | 3975 rm -rf conftest* |
| 3619 eval "ac_cv_func_connect=yes" | 3976 eval "ac_cv_func_connect=yes" |
| 3620 else | 3977 else |
| 3621 echo "configure: failed program was:" >&5 | 3978 echo "configure: failed program was:" >&5 |
| 3622 cat conftest.$ac_ext >&5 | 3979 cat conftest.$ac_ext >&5 |
| 3635 if test $ac_cv_func_connect = no; then | 3992 if test $ac_cv_func_connect = no; then |
| 3636 | 3993 |
| 3637 xe_msg_checking="for connect in -lsocket" | 3994 xe_msg_checking="for connect in -lsocket" |
| 3638 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" | 3995 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" |
| 3639 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | 3996 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 |
| 3640 echo "configure:3641: checking "$xe_msg_checking"" >&5 | 3997 echo "configure:3998: checking "$xe_msg_checking"" >&5 |
| 3641 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | 3998 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
| 3642 | 3999 |
| 3643 xe_check_libs=" -lsocket $X_EXTRA_LIBS" | 4000 xe_check_libs=" -lsocket $X_EXTRA_LIBS" |
| 3644 cat > conftest.$ac_ext <<EOF | 4001 cat > conftest.$ac_ext <<EOF |
| 3645 #line 3646 "configure" | 4002 #line 4003 "configure" |
| 3646 #include "confdefs.h" | 4003 #include "confdefs.h" |
| 3647 /* Override any gcc2 internal prototype to avoid an error. */ | 4004 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3648 /* We use char because int might match the return type of a gcc2 | 4005 /* We use char because int might match the return type of a gcc2 |
| 3649 builtin and then its argument prototype would still apply. */ | 4006 builtin and then its argument prototype would still apply. */ |
| 3650 char connect(); | 4007 char connect(); |
| 3651 | 4008 |
| 3652 int main() { | 4009 int main() { |
| 3653 connect() | 4010 connect() |
| 3654 ; return 0; } | 4011 ; return 0; } |
| 3655 EOF | 4012 EOF |
| 3656 if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3657 rm -rf conftest* | 4014 rm -rf conftest* |
| 3658 eval "ac_cv_lib_$ac_lib_var=yes" | 4015 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3659 else | 4016 else |
| 3660 echo "configure: failed program was:" >&5 | 4017 echo "configure: failed program was:" >&5 |
| 3661 cat conftest.$ac_ext >&5 | 4018 cat conftest.$ac_ext >&5 |
| 3663 eval "ac_cv_lib_$ac_lib_var=no" | 4020 eval "ac_cv_lib_$ac_lib_var=no" |
| 3664 fi | 4021 fi |
| 3665 rm -f conftest* | 4022 rm -f conftest* |
| 3666 xe_check_libs="" | 4023 xe_check_libs="" |
| 3667 | 4024 |
| 3668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 3669 echo "$ac_t""yes" 1>&6 | 4026 echo "$ac_t""yes" 1>&6 |
| 3670 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | 4027 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 3671 else | 4028 else |
| 3672 echo "$ac_t""no" 1>&6 | 4029 echo "$ac_t""no" 1>&6 |
| 3673 fi | 4030 fi |
| 3675 | 4032 |
| 3676 fi | 4033 fi |
| 3677 | 4034 |
| 3678 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | 4035 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
| 3679 echo $ac_n "checking for remove""... $ac_c" 1>&6 | 4036 echo $ac_n "checking for remove""... $ac_c" 1>&6 |
| 3680 echo "configure:3681: checking for remove" >&5 | 4037 echo "configure:4038: checking for remove" >&5 |
| 3681 | 4038 |
| 3682 cat > conftest.$ac_ext <<EOF | 4039 cat > conftest.$ac_ext <<EOF |
| 3683 #line 3684 "configure" | 4040 #line 4041 "configure" |
| 3684 #include "confdefs.h" | 4041 #include "confdefs.h" |
| 3685 /* System header to define __stub macros and hopefully few prototypes, | 4042 /* System header to define __stub macros and hopefully few prototypes, |
| 3686 which can conflict with char remove(); below. */ | 4043 which can conflict with char remove(); below. */ |
| 3687 #include <assert.h> | 4044 #include <assert.h> |
| 3688 /* Override any gcc2 internal prototype to avoid an error. */ | 4045 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3701 remove(); | 4058 remove(); |
| 3702 #endif | 4059 #endif |
| 3703 | 4060 |
| 3704 ; return 0; } | 4061 ; return 0; } |
| 3705 EOF | 4062 EOF |
| 3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4063 if { (eval echo configure:4064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3707 rm -rf conftest* | 4064 rm -rf conftest* |
| 3708 eval "ac_cv_func_remove=yes" | 4065 eval "ac_cv_func_remove=yes" |
| 3709 else | 4066 else |
| 3710 echo "configure: failed program was:" >&5 | 4067 echo "configure: failed program was:" >&5 |
| 3711 cat conftest.$ac_ext >&5 | 4068 cat conftest.$ac_ext >&5 |
| 3722 fi | 4079 fi |
| 3723 | 4080 |
| 3724 if test $ac_cv_func_remove = no; then | 4081 if test $ac_cv_func_remove = no; then |
| 3725 | 4082 |
| 3726 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | 4083 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
| 3727 echo "configure:3728: checking for remove in -lposix" >&5 | 4084 echo "configure:4085: checking for remove in -lposix" >&5 |
| 3728 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | 4085 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
| 3729 | 4086 |
| 3730 xe_check_libs=" -lposix " | 4087 xe_check_libs=" -lposix " |
| 3731 cat > conftest.$ac_ext <<EOF | 4088 cat > conftest.$ac_ext <<EOF |
| 3732 #line 3733 "configure" | 4089 #line 4090 "configure" |
| 3733 #include "confdefs.h" | 4090 #include "confdefs.h" |
| 3734 /* Override any gcc2 internal prototype to avoid an error. */ | 4091 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3735 /* We use char because int might match the return type of a gcc2 | 4092 /* We use char because int might match the return type of a gcc2 |
| 3736 builtin and then its argument prototype would still apply. */ | 4093 builtin and then its argument prototype would still apply. */ |
| 3737 char remove(); | 4094 char remove(); |
| 3738 | 4095 |
| 3739 int main() { | 4096 int main() { |
| 3740 remove() | 4097 remove() |
| 3741 ; return 0; } | 4098 ; return 0; } |
| 3742 EOF | 4099 EOF |
| 3743 if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3744 rm -rf conftest* | 4101 rm -rf conftest* |
| 3745 eval "ac_cv_lib_$ac_lib_var=yes" | 4102 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3746 else | 4103 else |
| 3747 echo "configure: failed program was:" >&5 | 4104 echo "configure: failed program was:" >&5 |
| 3748 cat conftest.$ac_ext >&5 | 4105 cat conftest.$ac_ext >&5 |
| 3750 eval "ac_cv_lib_$ac_lib_var=no" | 4107 eval "ac_cv_lib_$ac_lib_var=no" |
| 3751 fi | 4108 fi |
| 3752 rm -f conftest* | 4109 rm -f conftest* |
| 3753 xe_check_libs="" | 4110 xe_check_libs="" |
| 3754 | 4111 |
| 3755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 3756 echo "$ac_t""yes" 1>&6 | 4113 echo "$ac_t""yes" 1>&6 |
| 3757 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | 4114 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 3758 else | 4115 else |
| 3759 echo "$ac_t""no" 1>&6 | 4116 echo "$ac_t""no" 1>&6 |
| 3760 fi | 4117 fi |
| 3762 | 4119 |
| 3763 fi | 4120 fi |
| 3764 | 4121 |
| 3765 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | 4122 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 3766 echo $ac_n "checking for shmat""... $ac_c" 1>&6 | 4123 echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
| 3767 echo "configure:3768: checking for shmat" >&5 | 4124 echo "configure:4125: checking for shmat" >&5 |
| 3768 | 4125 |
| 3769 cat > conftest.$ac_ext <<EOF | 4126 cat > conftest.$ac_ext <<EOF |
| 3770 #line 3771 "configure" | 4127 #line 4128 "configure" |
| 3771 #include "confdefs.h" | 4128 #include "confdefs.h" |
| 3772 /* System header to define __stub macros and hopefully few prototypes, | 4129 /* System header to define __stub macros and hopefully few prototypes, |
| 3773 which can conflict with char shmat(); below. */ | 4130 which can conflict with char shmat(); below. */ |
| 3774 #include <assert.h> | 4131 #include <assert.h> |
| 3775 /* Override any gcc2 internal prototype to avoid an error. */ | 4132 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3788 shmat(); | 4145 shmat(); |
| 3789 #endif | 4146 #endif |
| 3790 | 4147 |
| 3791 ; return 0; } | 4148 ; return 0; } |
| 3792 EOF | 4149 EOF |
| 3793 if { (eval echo configure:3794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3794 rm -rf conftest* | 4151 rm -rf conftest* |
| 3795 eval "ac_cv_func_shmat=yes" | 4152 eval "ac_cv_func_shmat=yes" |
| 3796 else | 4153 else |
| 3797 echo "configure: failed program was:" >&5 | 4154 echo "configure: failed program was:" >&5 |
| 3798 cat conftest.$ac_ext >&5 | 4155 cat conftest.$ac_ext >&5 |
| 3809 fi | 4166 fi |
| 3810 | 4167 |
| 3811 if test $ac_cv_func_shmat = no; then | 4168 if test $ac_cv_func_shmat = no; then |
| 3812 | 4169 |
| 3813 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | 4170 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
| 3814 echo "configure:3815: checking for shmat in -lipc" >&5 | 4171 echo "configure:4172: checking for shmat in -lipc" >&5 |
| 3815 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | 4172 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
| 3816 | 4173 |
| 3817 xe_check_libs=" -lipc " | 4174 xe_check_libs=" -lipc " |
| 3818 cat > conftest.$ac_ext <<EOF | 4175 cat > conftest.$ac_ext <<EOF |
| 3819 #line 3820 "configure" | 4176 #line 4177 "configure" |
| 3820 #include "confdefs.h" | 4177 #include "confdefs.h" |
| 3821 /* Override any gcc2 internal prototype to avoid an error. */ | 4178 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3822 /* We use char because int might match the return type of a gcc2 | 4179 /* We use char because int might match the return type of a gcc2 |
| 3823 builtin and then its argument prototype would still apply. */ | 4180 builtin and then its argument prototype would still apply. */ |
| 3824 char shmat(); | 4181 char shmat(); |
| 3825 | 4182 |
| 3826 int main() { | 4183 int main() { |
| 3827 shmat() | 4184 shmat() |
| 3828 ; return 0; } | 4185 ; return 0; } |
| 3829 EOF | 4186 EOF |
| 3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4187 if { (eval echo configure:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3831 rm -rf conftest* | 4188 rm -rf conftest* |
| 3832 eval "ac_cv_lib_$ac_lib_var=yes" | 4189 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3833 else | 4190 else |
| 3834 echo "configure: failed program was:" >&5 | 4191 echo "configure: failed program was:" >&5 |
| 3835 cat conftest.$ac_ext >&5 | 4192 cat conftest.$ac_ext >&5 |
| 3837 eval "ac_cv_lib_$ac_lib_var=no" | 4194 eval "ac_cv_lib_$ac_lib_var=no" |
| 3838 fi | 4195 fi |
| 3839 rm -f conftest* | 4196 rm -f conftest* |
| 3840 xe_check_libs="" | 4197 xe_check_libs="" |
| 3841 | 4198 |
| 3842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 3843 echo "$ac_t""yes" 1>&6 | 4200 echo "$ac_t""yes" 1>&6 |
| 3844 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | 4201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 3845 else | 4202 else |
| 3846 echo "$ac_t""no" 1>&6 | 4203 echo "$ac_t""no" 1>&6 |
| 3847 fi | 4204 fi |
| 3859 # These have to be linked with before -lX11, unlike the other | 4216 # These have to be linked with before -lX11, unlike the other |
| 3860 # libraries we check for below, so use a different variable. | 4217 # libraries we check for below, so use a different variable. |
| 3861 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | 4218 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
| 3862 | 4219 |
| 3863 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | 4220 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
| 3864 echo "configure:3865: checking for IceConnectionNumber in -lICE" >&5 | 4221 echo "configure:4222: checking for IceConnectionNumber in -lICE" >&5 |
| 3865 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | 4222 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
| 3866 | 4223 |
| 3867 xe_check_libs=" -lICE " | 4224 xe_check_libs=" -lICE " |
| 3868 cat > conftest.$ac_ext <<EOF | 4225 cat > conftest.$ac_ext <<EOF |
| 3869 #line 3870 "configure" | 4226 #line 4227 "configure" |
| 3870 #include "confdefs.h" | 4227 #include "confdefs.h" |
| 3871 /* Override any gcc2 internal prototype to avoid an error. */ | 4228 /* Override any gcc2 internal prototype to avoid an error. */ |
| 3872 /* We use char because int might match the return type of a gcc2 | 4229 /* We use char because int might match the return type of a gcc2 |
| 3873 builtin and then its argument prototype would still apply. */ | 4230 builtin and then its argument prototype would still apply. */ |
| 3874 char IceConnectionNumber(); | 4231 char IceConnectionNumber(); |
| 3875 | 4232 |
| 3876 int main() { | 4233 int main() { |
| 3877 IceConnectionNumber() | 4234 IceConnectionNumber() |
| 3878 ; return 0; } | 4235 ; return 0; } |
| 3879 EOF | 4236 EOF |
| 3880 if { (eval echo configure:3881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4237 if { (eval echo configure:4238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 3881 rm -rf conftest* | 4238 rm -rf conftest* |
| 3882 eval "ac_cv_lib_$ac_lib_var=yes" | 4239 eval "ac_cv_lib_$ac_lib_var=yes" |
| 3883 else | 4240 else |
| 3884 echo "configure: failed program was:" >&5 | 4241 echo "configure: failed program was:" >&5 |
| 3885 cat conftest.$ac_ext >&5 | 4242 cat conftest.$ac_ext >&5 |
| 3887 eval "ac_cv_lib_$ac_lib_var=no" | 4244 eval "ac_cv_lib_$ac_lib_var=no" |
| 3888 fi | 4245 fi |
| 3889 rm -f conftest* | 4246 rm -f conftest* |
| 3890 xe_check_libs="" | 4247 xe_check_libs="" |
| 3891 | 4248 |
| 3892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 3893 echo "$ac_t""yes" 1>&6 | 4250 echo "$ac_t""yes" 1>&6 |
| 3894 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | 4251 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 3895 else | 4252 else |
| 3896 echo "$ac_t""no" 1>&6 | 4253 echo "$ac_t""no" 1>&6 |
| 3897 fi | 4254 fi |
| 3919 cat >> confdefs.h <<\EOF | 4276 cat >> confdefs.h <<\EOF |
| 3920 #define HAVE_X_WINDOWS 1 | 4277 #define HAVE_X_WINDOWS 1 |
| 3921 EOF | 4278 EOF |
| 3922 } | 4279 } |
| 3923 | 4280 |
| 3924 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" | 4281 MAKE_SUBDIR="$MAKE_SUBDIR lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$MAKE_SUBDIR"; fi |
| 3925 | 4282 |
| 3926 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do | 4283 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do |
| 3927 inc_dir="`echo $lib_dir | sed 's/lib/include/'`" | 4284 inc_dir="`echo $lib_dir | sed 's/lib/include/'`" |
| 3928 if test -d "$lib_dir" -a -d "$inc_dir"; then | 4285 if test -d "$lib_dir" -a -d "$inc_dir"; then |
| 3929 case "$x_libraries" in *"$lib_dir"* ) : ;; *) | 4286 case "$x_libraries" in *"$lib_dir"* ) ;; *) |
| 3930 x_libraries="$lib_dir $x_libraries" X_LIBS="-L${lib_dir} $X_LIBS" | 4287 x_libraries="$lib_dir $x_libraries" |
| 4288 X_LIBS="-L${lib_dir} $X_LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-L${lib_dir}\" to \$X_LIBS"; fi ;; | |
| 3931 esac | 4289 esac |
| 3932 case "$x_includes" in "$inc_dir"* ) : ;; *) | 4290 case "$x_includes" in "$inc_dir"* ) ;; *) |
| 3933 x_includes="$inc_dir $x_includes" X_CFLAGS="-I${inc_dir} $X_CFLAGS" | 4291 x_includes="$inc_dir $x_includes" |
| 4292 X_CFLAGS="-I${inc_dir} $X_CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-I${inc_dir}\" to \$X_CFLAGS"; fi ;; | |
| 3934 esac | 4293 esac |
| 3935 break; fi | 4294 break; fi |
| 3936 done | 4295 done |
| 3937 | 4296 |
| 3938 for rel in "X11R6" "X11R5" "X11R4"; do | 4297 for rel in "X11R6" "X11R5" "X11R4"; do |
| 3939 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include" | 4298 lib_dir="/usr/contrib/$rel/lib" inc_dir="/usr/contrib/$rel/include" |
| 3940 if test -d "$lib_dir" -a -d "$inc_dir"; then | 4299 if test -d "$lib_dir" -a -d "$inc_dir"; then |
| 3941 case "$x_libraries" in *"$lib_dir"* ) : ;; *) | 4300 case "$x_libraries" in *"$lib_dir"* ) ;; *) |
| 3942 x_libraries="$x_libraries $lib_dir" X_LIBS="$X_LIBS -L${lib_dir}" | 4301 x_libraries="$x_libraries $lib_dir" |
| 4302 X_LIBS="$X_LIBS -L${lib_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-L${lib_dir}\" to \$X_LIBS"; fi | |
| 3943 esac | 4303 esac |
| 3944 case "$x_includes" in "$inc_dir"* ) : ;; *) | 4304 case "$x_includes" in "$inc_dir"* ) ;; *) |
| 3945 x_includes="$x_includes $inc_dir" X_CFLAGS="$X_CFLAGS -I${inc_dir}" | 4305 x_includes="$x_includes $inc_dir" |
| 4306 X_CFLAGS="$X_CFLAGS -I${inc_dir}" && if test "$extra_verbose" = "yes"; then echo " Appending \"-I${inc_dir}\" to \$X_CFLAGS"; fi | |
| 3946 esac | 4307 esac |
| 3947 break; fi | 4308 break; fi |
| 3948 done | 4309 done |
| 3949 | 4310 |
| 3950 ld_switch_x_site="$X_LIBS" | 4311 ld_switch_x_site="$X_LIBS" |
| 4312 | |
| 4313 | |
| 4314 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then | |
| 4315 ld_switch_site="`echo $ld_switch_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 4316 ld_switch_x_site="`echo $ld_switch_x_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 4317 | |
| 4318 if test -n "$LD_RUN_PATH"; then | |
| 4319 runpath="$LD_RUN_PATH" | |
| 4320 else | |
| 4321 runpath="" | |
| 4322 for arg in $ld_switch_site $ld_switch_x_site; do | |
| 4323 case "$arg" in -L* ) | |
| 4324 dir=`echo "$arg" | sed 's/^-L//'` | |
| 4325 if test -n "`ls ${dir}/*.s[ol] 2>/dev/null`"; then | |
| 4326 test -n "$runpath" && runpath="${runpath}:" | |
| 4327 runpath="${runpath}${dir}" | |
| 4328 fi | |
| 4329 ;; | |
| 4330 esac | |
| 4331 done | |
| 4332 case "$canonical" in *-solaris2.[1-4]* ) | |
| 4333 test "$need_motif" = "yes" && runpath="${runpath}:/opt/SUNWdt/lib" ;; | |
| 4334 esac | |
| 4335 fi | |
| 4336 | |
| 4337 if test -n "$runpath"; then | |
| 4338 ld_switch_run="${dash_r}${runpath}" | |
| 4339 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" | |
| 4340 fi | |
| 4341 fi | |
| 4342 | |
| 3951 | 4343 |
| 3952 if test "$extra_verbose" = "yes"; then | 4344 if test "$extra_verbose" = "yes"; then |
| 3953 echo; echo "X11 compilation variables:" | 4345 echo; echo "X11 compilation variables:" |
| 3954 echo "x_libraries = $x_libraries" | 4346 echo "x_libraries = $x_libraries" |
| 3955 echo "x_includes = $x_includes" | 4347 echo "x_includes = $x_includes" |
| 3960 echo | 4352 echo |
| 3961 fi | 4353 fi |
| 3962 | 4354 |
| 3963 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` | 4355 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` |
| 3964 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 | 4356 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 |
| 3965 echo "configure:3966: checking for X11/Intrinsic.h" >&5 | 4357 echo "configure:4358: checking for X11/Intrinsic.h" >&5 |
| 3966 | 4358 |
| 3967 cat > conftest.$ac_ext <<EOF | 4359 cat > conftest.$ac_ext <<EOF |
| 3968 #line 3969 "configure" | 4360 #line 4361 "configure" |
| 3969 #include "confdefs.h" | 4361 #include "confdefs.h" |
| 3970 #include <X11/Intrinsic.h> | 4362 #include <X11/Intrinsic.h> |
| 3971 EOF | 4363 EOF |
| 3972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3973 { (eval echo configure:3974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4365 { (eval echo configure:4366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3974 ac_err=`grep -v '^ *+' conftest.out` | 4366 ac_err=`grep -v '^ *+' conftest.out` |
| 3975 if test -z "$ac_err"; then | 4367 if test -z "$ac_err"; then |
| 3976 rm -rf conftest* | 4368 rm -rf conftest* |
| 3977 eval "ac_cv_header_$ac_safe=yes" | 4369 eval "ac_cv_header_$ac_safe=yes" |
| 3978 else | 4370 else |
| 3992 fi | 4384 fi |
| 3993 | 4385 |
| 3994 | 4386 |
| 3995 | 4387 |
| 3996 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 | 4388 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 |
| 3997 echo "configure:3998: checking for XOpenDisplay in -lX11" >&5 | 4389 echo "configure:4390: checking for XOpenDisplay in -lX11" >&5 |
| 3998 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` | 4390 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` |
| 3999 | 4391 |
| 4000 xe_check_libs=" -lX11 " | 4392 xe_check_libs=" -lX11 " |
| 4001 cat > conftest.$ac_ext <<EOF | 4393 cat > conftest.$ac_ext <<EOF |
| 4002 #line 4003 "configure" | 4394 #line 4395 "configure" |
| 4003 #include "confdefs.h" | 4395 #include "confdefs.h" |
| 4004 /* Override any gcc2 internal prototype to avoid an error. */ | 4396 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4005 /* We use char because int might match the return type of a gcc2 | 4397 /* We use char because int might match the return type of a gcc2 |
| 4006 builtin and then its argument prototype would still apply. */ | 4398 builtin and then its argument prototype would still apply. */ |
| 4007 char XOpenDisplay(); | 4399 char XOpenDisplay(); |
| 4008 | 4400 |
| 4009 int main() { | 4401 int main() { |
| 4010 XOpenDisplay() | 4402 XOpenDisplay() |
| 4011 ; return 0; } | 4403 ; return 0; } |
| 4012 EOF | 4404 EOF |
| 4013 if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4405 if { (eval echo configure:4406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4014 rm -rf conftest* | 4406 rm -rf conftest* |
| 4015 eval "ac_cv_lib_$ac_lib_var=yes" | 4407 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4016 else | 4408 else |
| 4017 echo "configure: failed program was:" >&5 | 4409 echo "configure: failed program was:" >&5 |
| 4018 cat conftest.$ac_ext >&5 | 4410 cat conftest.$ac_ext >&5 |
| 4020 eval "ac_cv_lib_$ac_lib_var=no" | 4412 eval "ac_cv_lib_$ac_lib_var=no" |
| 4021 fi | 4413 fi |
| 4022 rm -f conftest* | 4414 rm -f conftest* |
| 4023 xe_check_libs="" | 4415 xe_check_libs="" |
| 4024 | 4416 |
| 4025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4026 echo "$ac_t""yes" 1>&6 | 4418 echo "$ac_t""yes" 1>&6 |
| 4027 have_lib_x11=yes | 4419 have_lib_x11=yes |
| 4028 else | 4420 else |
| 4029 echo "$ac_t""no" 1>&6 | 4421 echo "$ac_t""no" 1>&6 |
| 4030 fi | 4422 fi |
| 4033 if test "$have_lib_x11" != "yes"; then | 4425 if test "$have_lib_x11" != "yes"; then |
| 4034 | 4426 |
| 4035 xe_msg_checking="for XGetFontProperty in -lX11" | 4427 xe_msg_checking="for XGetFontProperty in -lX11" |
| 4036 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" | 4428 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" |
| 4037 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | 4429 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 |
| 4038 echo "configure:4039: checking "$xe_msg_checking"" >&5 | 4430 echo "configure:4431: checking "$xe_msg_checking"" >&5 |
| 4039 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` | 4431 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` |
| 4040 | 4432 |
| 4041 xe_check_libs=" -lX11 -b i486-linuxaout" | 4433 xe_check_libs=" -lX11 -b i486-linuxaout" |
| 4042 cat > conftest.$ac_ext <<EOF | 4434 cat > conftest.$ac_ext <<EOF |
| 4043 #line 4044 "configure" | 4435 #line 4436 "configure" |
| 4044 #include "confdefs.h" | 4436 #include "confdefs.h" |
| 4045 /* Override any gcc2 internal prototype to avoid an error. */ | 4437 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4046 /* We use char because int might match the return type of a gcc2 | 4438 /* We use char because int might match the return type of a gcc2 |
| 4047 builtin and then its argument prototype would still apply. */ | 4439 builtin and then its argument prototype would still apply. */ |
| 4048 char XGetFontProperty(); | 4440 char XGetFontProperty(); |
| 4049 | 4441 |
| 4050 int main() { | 4442 int main() { |
| 4051 XGetFontProperty() | 4443 XGetFontProperty() |
| 4052 ; return 0; } | 4444 ; return 0; } |
| 4053 EOF | 4445 EOF |
| 4054 if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4055 rm -rf conftest* | 4447 rm -rf conftest* |
| 4056 eval "ac_cv_lib_$ac_lib_var=yes" | 4448 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4057 else | 4449 else |
| 4058 echo "configure: failed program was:" >&5 | 4450 echo "configure: failed program was:" >&5 |
| 4059 cat conftest.$ac_ext >&5 | 4451 cat conftest.$ac_ext >&5 |
| 4061 eval "ac_cv_lib_$ac_lib_var=no" | 4453 eval "ac_cv_lib_$ac_lib_var=no" |
| 4062 fi | 4454 fi |
| 4063 rm -f conftest* | 4455 rm -f conftest* |
| 4064 xe_check_libs="" | 4456 xe_check_libs="" |
| 4065 | 4457 |
| 4066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4067 echo "$ac_t""yes" 1>&6 | 4459 echo "$ac_t""yes" 1>&6 |
| 4068 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site" | 4460 ld_switch_x_site="-b i486-linuxaout $ld_switch_x_site" |
| 4069 else | 4461 else |
| 4070 echo "$ac_t""no" 1>&6 | 4462 echo "$ac_t""no" 1>&6 |
| 4071 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; } | 4463 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; } |
| 4072 fi | 4464 fi |
| 4073 | 4465 |
| 4074 | 4466 |
| 4075 fi | 4467 fi |
| 4076 libs_x="-lX11" | 4468 libs_x="-lX11" |
| 4469 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" | |
| 4077 | 4470 |
| 4078 case "$canonical" in *-sunos4.* ) # Bug workaround | 4471 case "$canonical" in *-sunos4.* ) # Bug workaround |
| 4079 ld_switch_x_site="$ld_switch_x_site -u _XtToolkitInitialize" ;; | 4472 ld_switch_x_site="$ld_switch_x_site -u _XtToolkitInitialize" ;; |
| 4080 esac | 4473 esac |
| 4081 | 4474 |
| 4082 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 | 4475 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 |
| 4083 echo "configure:4084: checking for XtOpenDisplay in -lXt" >&5 | 4476 echo "configure:4477: checking for XtOpenDisplay in -lXt" >&5 |
| 4084 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` | 4477 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` |
| 4085 | 4478 |
| 4086 xe_check_libs=" -lXt " | 4479 xe_check_libs=" -lXt " |
| 4087 cat > conftest.$ac_ext <<EOF | 4480 cat > conftest.$ac_ext <<EOF |
| 4088 #line 4089 "configure" | 4481 #line 4482 "configure" |
| 4089 #include "confdefs.h" | 4482 #include "confdefs.h" |
| 4090 /* Override any gcc2 internal prototype to avoid an error. */ | 4483 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4091 /* We use char because int might match the return type of a gcc2 | 4484 /* We use char because int might match the return type of a gcc2 |
| 4092 builtin and then its argument prototype would still apply. */ | 4485 builtin and then its argument prototype would still apply. */ |
| 4093 char XtOpenDisplay(); | 4486 char XtOpenDisplay(); |
| 4094 | 4487 |
| 4095 int main() { | 4488 int main() { |
| 4096 XtOpenDisplay() | 4489 XtOpenDisplay() |
| 4097 ; return 0; } | 4490 ; return 0; } |
| 4098 EOF | 4491 EOF |
| 4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4100 rm -rf conftest* | 4493 rm -rf conftest* |
| 4101 eval "ac_cv_lib_$ac_lib_var=yes" | 4494 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4102 else | 4495 else |
| 4103 echo "configure: failed program was:" >&5 | 4496 echo "configure: failed program was:" >&5 |
| 4104 cat conftest.$ac_ext >&5 | 4497 cat conftest.$ac_ext >&5 |
| 4106 eval "ac_cv_lib_$ac_lib_var=no" | 4499 eval "ac_cv_lib_$ac_lib_var=no" |
| 4107 fi | 4500 fi |
| 4108 rm -f conftest* | 4501 rm -f conftest* |
| 4109 xe_check_libs="" | 4502 xe_check_libs="" |
| 4110 | 4503 |
| 4111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4112 echo "$ac_t""yes" 1>&6 | 4505 echo "$ac_t""yes" 1>&6 |
| 4113 libs_x="-lXt $libs_x" | 4506 libs_x="-lXt $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXt\" to \$libs_x"; fi |
| 4114 else | 4507 else |
| 4115 echo "$ac_t""no" 1>&6 | 4508 echo "$ac_t""no" 1>&6 |
| 4116 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; } | 4509 { echo "configure: error: "Unable to find X11 libraries."" 1>&2; exit 1; } |
| 4117 fi | 4510 fi |
| 4118 | 4511 |
| 4119 | 4512 |
| 4120 | 4513 |
| 4121 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 | 4514 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 |
| 4122 echo "configure:4123: checking the version of X11 being used" >&5 | 4515 echo "configure:4516: checking the version of X11 being used" >&5 |
| 4123 cat > conftest.$ac_ext <<EOF | 4516 cat > conftest.$ac_ext <<EOF |
| 4124 #line 4125 "configure" | 4517 #line 4518 "configure" |
| 4125 #include "confdefs.h" | 4518 #include "confdefs.h" |
| 4126 #include <X11/Intrinsic.h> | 4519 #include <X11/Intrinsic.h> |
| 4127 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } | 4520 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } |
| 4128 EOF | 4521 EOF |
| 4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | 4522 if { (eval echo configure:4523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
| 4130 then | 4523 then |
| 4131 ./conftest foobar; rc=$? | 4524 ./conftest foobar; x11_release=$? |
| 4132 else | 4525 else |
| 4133 echo "configure: failed program was:" >&5 | 4526 echo "configure: failed program was:" >&5 |
| 4134 cat conftest.$ac_ext >&5 | 4527 cat conftest.$ac_ext >&5 |
| 4135 rm -fr conftest* | 4528 rm -fr conftest* |
| 4136 rc=4 | 4529 x11_release=4 |
| 4137 fi | 4530 fi |
| 4138 rm -fr conftest* | 4531 rm -fr conftest* |
| 4139 echo "$ac_t""R${rc}" 1>&6 | 4532 echo "$ac_t""R${x11_release}" 1>&6 |
| 4140 { test "$extra_verbose" = "yes" && cat << EOF | 4533 { test "$extra_verbose" = "yes" && cat << EOF |
| 4141 Defining THIS_IS_X11R${rc} | 4534 Defining THIS_IS_X11R${x11_release} |
| 4142 EOF | 4535 EOF |
| 4143 cat >> confdefs.h <<EOF | 4536 cat >> confdefs.h <<EOF |
| 4144 #define THIS_IS_X11R${rc} 1 | 4537 #define THIS_IS_X11R${x11_release} 1 |
| 4145 EOF | 4538 EOF |
| 4146 } | 4539 } |
| 4147 | 4540 |
| 4148 | 4541 |
| 4149 for ac_hdr in X11/Xlocale.h | 4542 for ac_hdr in X11/Xlocale.h |
| 4150 do | 4543 do |
| 4151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 4544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 4545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4153 echo "configure:4154: checking for $ac_hdr" >&5 | 4546 echo "configure:4547: checking for $ac_hdr" >&5 |
| 4154 | 4547 |
| 4155 cat > conftest.$ac_ext <<EOF | 4548 cat > conftest.$ac_ext <<EOF |
| 4156 #line 4157 "configure" | 4549 #line 4550 "configure" |
| 4157 #include "confdefs.h" | 4550 #include "confdefs.h" |
| 4158 #include <$ac_hdr> | 4551 #include <$ac_hdr> |
| 4159 EOF | 4552 EOF |
| 4160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4161 { (eval echo configure:4162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4554 { (eval echo configure:4555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4162 ac_err=`grep -v '^ *+' conftest.out` | 4555 ac_err=`grep -v '^ *+' conftest.out` |
| 4163 if test -z "$ac_err"; then | 4556 if test -z "$ac_err"; then |
| 4164 rm -rf conftest* | 4557 rm -rf conftest* |
| 4165 eval "ac_cv_header_$ac_safe=yes" | 4558 eval "ac_cv_header_$ac_safe=yes" |
| 4166 else | 4559 else |
| 4187 fi | 4580 fi |
| 4188 done | 4581 done |
| 4189 | 4582 |
| 4190 | 4583 |
| 4191 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 | 4584 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 |
| 4192 echo "configure:4193: checking for XFree86" >&5 | 4585 echo "configure:4586: checking for XFree86" >&5 |
| 4193 if test -d "/usr/X386/include" -o \ | 4586 if test -d "/usr/X386/include" -o \ |
| 4194 -f "/etc/XF86Config" -o \ | 4587 -f "/etc/XF86Config" -o \ |
| 4195 -f "/etc/X11/XF86Config" -o \ | 4588 -f "/etc/X11/XF86Config" -o \ |
| 4196 -f "/usr/X11R6/lib/X11/XF86Config"; then | 4589 -f "/usr/X11R6/lib/X11/XF86Config"; then |
| 4197 echo "$ac_t""yes" 1>&6 | 4590 echo "$ac_t""yes" 1>&6 |
| 4207 echo "$ac_t""no" 1>&6 | 4600 echo "$ac_t""no" 1>&6 |
| 4208 fi | 4601 fi |
| 4209 | 4602 |
| 4210 | 4603 |
| 4211 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 | 4604 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 |
| 4212 echo "configure:4213: checking for XShapeSelectInput in -lXext" >&5 | 4605 echo "configure:4606: checking for XShapeSelectInput in -lXext" >&5 |
| 4213 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` | 4606 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` |
| 4214 | 4607 |
| 4215 xe_check_libs=" -lXext " | 4608 xe_check_libs=" -lXext " |
| 4216 cat > conftest.$ac_ext <<EOF | 4609 cat > conftest.$ac_ext <<EOF |
| 4217 #line 4218 "configure" | 4610 #line 4611 "configure" |
| 4218 #include "confdefs.h" | 4611 #include "confdefs.h" |
| 4219 /* Override any gcc2 internal prototype to avoid an error. */ | 4612 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4220 /* We use char because int might match the return type of a gcc2 | 4613 /* We use char because int might match the return type of a gcc2 |
| 4221 builtin and then its argument prototype would still apply. */ | 4614 builtin and then its argument prototype would still apply. */ |
| 4222 char XShapeSelectInput(); | 4615 char XShapeSelectInput(); |
| 4223 | 4616 |
| 4224 int main() { | 4617 int main() { |
| 4225 XShapeSelectInput() | 4618 XShapeSelectInput() |
| 4226 ; return 0; } | 4619 ; return 0; } |
| 4227 EOF | 4620 EOF |
| 4228 if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4229 rm -rf conftest* | 4622 rm -rf conftest* |
| 4230 eval "ac_cv_lib_$ac_lib_var=yes" | 4623 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4231 else | 4624 else |
| 4232 echo "configure: failed program was:" >&5 | 4625 echo "configure: failed program was:" >&5 |
| 4233 cat conftest.$ac_ext >&5 | 4626 cat conftest.$ac_ext >&5 |
| 4235 eval "ac_cv_lib_$ac_lib_var=no" | 4628 eval "ac_cv_lib_$ac_lib_var=no" |
| 4236 fi | 4629 fi |
| 4237 rm -f conftest* | 4630 rm -f conftest* |
| 4238 xe_check_libs="" | 4631 xe_check_libs="" |
| 4239 | 4632 |
| 4240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4241 echo "$ac_t""yes" 1>&6 | 4634 echo "$ac_t""yes" 1>&6 |
| 4242 libs_x="-lXext $libs_x" | 4635 libs_x="-lXext $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXext\" to \$libs_x"; fi |
| 4243 else | 4636 else |
| 4244 echo "$ac_t""no" 1>&6 | 4637 echo "$ac_t""no" 1>&6 |
| 4245 fi | 4638 fi |
| 4246 | 4639 |
| 4247 | 4640 |
| 4250 ld_switch_x_site="$ld_switch_x_site -u _get_applicationShellWidgetClass" ;; | 4643 ld_switch_x_site="$ld_switch_x_site -u _get_applicationShellWidgetClass" ;; |
| 4251 esac | 4644 esac |
| 4252 if test -z "$with_xmu"; then | 4645 if test -z "$with_xmu"; then |
| 4253 | 4646 |
| 4254 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | 4647 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 |
| 4255 echo "configure:4256: checking for XmuConvertStandardSelection in -lXmu" >&5 | 4648 echo "configure:4649: checking for XmuConvertStandardSelection in -lXmu" >&5 |
| 4256 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | 4649 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
| 4257 | 4650 |
| 4258 xe_check_libs=" -lXmu " | 4651 xe_check_libs=" -lXmu " |
| 4259 cat > conftest.$ac_ext <<EOF | 4652 cat > conftest.$ac_ext <<EOF |
| 4260 #line 4261 "configure" | 4653 #line 4654 "configure" |
| 4261 #include "confdefs.h" | 4654 #include "confdefs.h" |
| 4262 /* Override any gcc2 internal prototype to avoid an error. */ | 4655 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4263 /* We use char because int might match the return type of a gcc2 | 4656 /* We use char because int might match the return type of a gcc2 |
| 4264 builtin and then its argument prototype would still apply. */ | 4657 builtin and then its argument prototype would still apply. */ |
| 4265 char XmuConvertStandardSelection(); | 4658 char XmuConvertStandardSelection(); |
| 4266 | 4659 |
| 4267 int main() { | 4660 int main() { |
| 4268 XmuConvertStandardSelection() | 4661 XmuConvertStandardSelection() |
| 4269 ; return 0; } | 4662 ; return 0; } |
| 4270 EOF | 4663 EOF |
| 4271 if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4272 rm -rf conftest* | 4665 rm -rf conftest* |
| 4273 eval "ac_cv_lib_$ac_lib_var=yes" | 4666 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4274 else | 4667 else |
| 4275 echo "configure: failed program was:" >&5 | 4668 echo "configure: failed program was:" >&5 |
| 4276 cat conftest.$ac_ext >&5 | 4669 cat conftest.$ac_ext >&5 |
| 4278 eval "ac_cv_lib_$ac_lib_var=no" | 4671 eval "ac_cv_lib_$ac_lib_var=no" |
| 4279 fi | 4672 fi |
| 4280 rm -f conftest* | 4673 rm -f conftest* |
| 4281 xe_check_libs="" | 4674 xe_check_libs="" |
| 4282 | 4675 |
| 4283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4284 echo "$ac_t""yes" 1>&6 | 4677 echo "$ac_t""yes" 1>&6 |
| 4285 with_xmu=yes | 4678 with_xmu=yes |
| 4286 else | 4679 else |
| 4287 echo "$ac_t""no" 1>&6 | 4680 echo "$ac_t""no" 1>&6 |
| 4288 with_xmu=no | 4681 with_xmu=no |
| 4289 fi | 4682 fi |
| 4290 | 4683 |
| 4291 | 4684 |
| 4292 fi | 4685 fi |
| 4293 if test "$with_xmu" = "no"; then | 4686 if test "$with_xmu" = "no"; then |
| 4294 extra_objs="$extra_objs xmu.o" | 4687 extra_objs="$extra_objs xmu.o" && if test "$extra_verbose" = "yes"; then |
| 4688 echo " xemacs will be linked with \"xmu.o\"" | |
| 4689 fi | |
| 4295 else | 4690 else |
| 4296 libs_x="-lXmu $libs_x" | 4691 libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi |
| 4297 fi | 4692 fi |
| 4298 | 4693 |
| 4299 | 4694 |
| 4300 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | 4695 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 |
| 4301 echo "configure:4302: checking for main in -lXbsd" >&5 | 4696 echo "configure:4697: checking for main in -lXbsd" >&5 |
| 4302 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | 4697 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
| 4303 | 4698 |
| 4304 xe_check_libs=" -lXbsd " | 4699 xe_check_libs=" -lXbsd " |
| 4305 cat > conftest.$ac_ext <<EOF | 4700 cat > conftest.$ac_ext <<EOF |
| 4306 #line 4307 "configure" | 4701 #line 4702 "configure" |
| 4307 #include "confdefs.h" | 4702 #include "confdefs.h" |
| 4308 | 4703 |
| 4309 int main() { | 4704 int main() { |
| 4310 main() | 4705 main() |
| 4311 ; return 0; } | 4706 ; return 0; } |
| 4312 EOF | 4707 EOF |
| 4313 if { (eval echo configure:4314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4314 rm -rf conftest* | 4709 rm -rf conftest* |
| 4315 eval "ac_cv_lib_$ac_lib_var=yes" | 4710 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4316 else | 4711 else |
| 4317 echo "configure: failed program was:" >&5 | 4712 echo "configure: failed program was:" >&5 |
| 4318 cat conftest.$ac_ext >&5 | 4713 cat conftest.$ac_ext >&5 |
| 4320 eval "ac_cv_lib_$ac_lib_var=no" | 4715 eval "ac_cv_lib_$ac_lib_var=no" |
| 4321 fi | 4716 fi |
| 4322 rm -f conftest* | 4717 rm -f conftest* |
| 4323 xe_check_libs="" | 4718 xe_check_libs="" |
| 4324 | 4719 |
| 4325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4326 echo "$ac_t""yes" 1>&6 | 4721 echo "$ac_t""yes" 1>&6 |
| 4327 libs_x="-lXbsd $libs_x" | 4722 libs_x="-lXbsd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXbsd\" to \$libs_x"; fi |
| 4328 else | 4723 else |
| 4329 echo "$ac_t""no" 1>&6 | 4724 echo "$ac_t""no" 1>&6 |
| 4330 fi | 4725 fi |
| 4331 | 4726 |
| 4332 | |
| 4333 | |
| 4334 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` | |
| 4335 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 | |
| 4336 echo "configure:4337: checking for Xm/Xm.h" >&5 | |
| 4337 | |
| 4338 cat > conftest.$ac_ext <<EOF | |
| 4339 #line 4340 "configure" | |
| 4340 #include "confdefs.h" | |
| 4341 #include <Xm/Xm.h> | |
| 4342 EOF | |
| 4343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 4344 { (eval echo configure:4345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 4345 ac_err=`grep -v '^ *+' conftest.out` | |
| 4346 if test -z "$ac_err"; then | |
| 4347 rm -rf conftest* | |
| 4348 eval "ac_cv_header_$ac_safe=yes" | |
| 4349 else | |
| 4350 echo "$ac_err" >&5 | |
| 4351 echo "configure: failed program was:" >&5 | |
| 4352 cat conftest.$ac_ext >&5 | |
| 4353 rm -rf conftest* | |
| 4354 eval "ac_cv_header_$ac_safe=no" | |
| 4355 fi | |
| 4356 rm -f conftest* | |
| 4357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 4358 echo "$ac_t""yes" 1>&6 | |
| 4359 | |
| 4360 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 | |
| 4361 echo "configure:4362: checking for XmStringFree in -lXm" >&5 | |
| 4362 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` | |
| 4363 | |
| 4364 xe_check_libs=" -lXm " | |
| 4365 cat > conftest.$ac_ext <<EOF | |
| 4366 #line 4367 "configure" | |
| 4367 #include "confdefs.h" | |
| 4368 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4369 /* We use char because int might match the return type of a gcc2 | |
| 4370 builtin and then its argument prototype would still apply. */ | |
| 4371 char XmStringFree(); | |
| 4372 | |
| 4373 int main() { | |
| 4374 XmStringFree() | |
| 4375 ; return 0; } | |
| 4376 EOF | |
| 4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4378 rm -rf conftest* | |
| 4379 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4380 else | |
| 4381 echo "configure: failed program was:" >&5 | |
| 4382 cat conftest.$ac_ext >&5 | |
| 4383 rm -rf conftest* | |
| 4384 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4385 fi | |
| 4386 rm -f conftest* | |
| 4387 xe_check_libs="" | |
| 4388 | |
| 4389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4390 echo "$ac_t""yes" 1>&6 | |
| 4391 have_motif=yes | |
| 4392 else | |
| 4393 echo "$ac_t""no" 1>&6 | |
| 4394 have_motif=no | |
| 4395 fi | |
| 4396 | |
| 4397 | |
| 4398 else | |
| 4399 echo "$ac_t""no" 1>&6 | |
| 4400 have_motif=no | |
| 4401 fi | |
| 4402 | 4727 |
| 4403 | 4728 |
| 4404 | 4729 |
| 4405 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 | 4730 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 |
| 4406 echo "configure:4407: checking for XawScrollbarSetThumb in -lXaw" >&5 | 4731 echo "configure:4732: checking for XawScrollbarSetThumb in -lXaw" >&5 |
| 4407 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 4732 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
| 4408 | 4733 |
| 4409 xe_check_libs=" -lXaw " | 4734 xe_check_libs=" -lXaw " |
| 4410 cat > conftest.$ac_ext <<EOF | 4735 cat > conftest.$ac_ext <<EOF |
| 4411 #line 4412 "configure" | 4736 #line 4737 "configure" |
| 4412 #include "confdefs.h" | 4737 #include "confdefs.h" |
| 4413 /* Override any gcc2 internal prototype to avoid an error. */ | 4738 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4414 /* We use char because int might match the return type of a gcc2 | 4739 /* We use char because int might match the return type of a gcc2 |
| 4415 builtin and then its argument prototype would still apply. */ | 4740 builtin and then its argument prototype would still apply. */ |
| 4416 char XawScrollbarSetThumb(); | 4741 char XawScrollbarSetThumb(); |
| 4417 | 4742 |
| 4418 int main() { | 4743 int main() { |
| 4419 XawScrollbarSetThumb() | 4744 XawScrollbarSetThumb() |
| 4420 ; return 0; } | 4745 ; return 0; } |
| 4421 EOF | 4746 EOF |
| 4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4423 rm -rf conftest* | 4748 rm -rf conftest* |
| 4424 eval "ac_cv_lib_$ac_lib_var=yes" | 4749 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4425 else | 4750 else |
| 4426 echo "configure: failed program was:" >&5 | 4751 echo "configure: failed program was:" >&5 |
| 4427 cat conftest.$ac_ext >&5 | 4752 cat conftest.$ac_ext >&5 |
| 4429 eval "ac_cv_lib_$ac_lib_var=no" | 4754 eval "ac_cv_lib_$ac_lib_var=no" |
| 4430 fi | 4755 fi |
| 4431 rm -f conftest* | 4756 rm -f conftest* |
| 4432 xe_check_libs="" | 4757 xe_check_libs="" |
| 4433 | 4758 |
| 4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4435 echo "$ac_t""yes" 1>&6 | 4760 echo "$ac_t""yes" 1>&6 |
| 4436 have_xaw=yes | 4761 have_xaw=yes |
| 4437 else | 4762 else |
| 4438 echo "$ac_t""no" 1>&6 | 4763 echo "$ac_t""no" 1>&6 |
| 4439 have_xaw=no | 4764 have_xaw=no |
| 4482 add_runtime_flag=yes; | 4807 add_runtime_flag=yes; |
| 4483 runtime_arg="-rpath " ;; | 4808 runtime_arg="-rpath " ;; |
| 4484 esac | 4809 esac |
| 4485 fi | 4810 fi |
| 4486 | 4811 |
| 4487 if test -n "$site_libraries"; then | |
| 4488 for arg in $site_libraries; do | |
| 4489 test -d "$arg" && arg="-L${arg}" | |
| 4490 ld_switch_site="$ld_switch_site $arg" | |
| 4491 done | |
| 4492 fi | |
| 4493 | |
| 4494 if test -n "$site_runtime_libraries" ; then | |
| 4495 LD_RUN_PATH="`echo $site_runtime_libraries | sed 's/ */:/'`" | |
| 4496 export LD_RUN_PATH | |
| 4497 fi | |
| 4498 | |
| 4499 if test -n "$site_includes" ; then | |
| 4500 for arg in $site_includes; do | |
| 4501 test -d "$arg" && arg="-I${arg}" | |
| 4502 c_switch_site="$c_switch_site $arg" | |
| 4503 done | |
| 4504 fi | |
| 4505 | |
| 4506 | 4812 |
| 4507 bitmapdir= | 4813 bitmapdir= |
| 4508 | 4814 |
| 4509 case "$window_system" in | 4815 case "$window_system" in |
| 4510 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; | 4816 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; |
| 4514 case "$x_libraries" in *X11R4* ) | 4820 case "$x_libraries" in *X11R4* ) |
| 4515 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" | 4821 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" |
| 4516 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" | 4822 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" |
| 4517 esac | 4823 esac |
| 4518 | 4824 |
| 4519 { test "$extra_verbose" = "yes" && cat << \EOF | |
| 4520 Defining LISP_FLOAT_TYPE | |
| 4521 EOF | |
| 4522 cat >> confdefs.h <<\EOF | |
| 4523 #define LISP_FLOAT_TYPE 1 | |
| 4524 EOF | |
| 4525 } | |
| 4526 | |
| 4527 | |
| 4528 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 | |
| 4529 echo "configure:4530: checking for kstat_open in -lkstat" >&5 | |
| 4530 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` | |
| 4531 | |
| 4532 xe_check_libs=" -lkstat " | |
| 4533 cat > conftest.$ac_ext <<EOF | |
| 4534 #line 4535 "configure" | |
| 4535 #include "confdefs.h" | |
| 4536 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4537 /* We use char because int might match the return type of a gcc2 | |
| 4538 builtin and then its argument prototype would still apply. */ | |
| 4539 char kstat_open(); | |
| 4540 | |
| 4541 int main() { | |
| 4542 kstat_open() | |
| 4543 ; return 0; } | |
| 4544 EOF | |
| 4545 if { (eval echo configure:4546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4546 rm -rf conftest* | |
| 4547 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4548 else | |
| 4549 echo "configure: failed program was:" >&5 | |
| 4550 cat conftest.$ac_ext >&5 | |
| 4551 rm -rf conftest* | |
| 4552 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4553 fi | |
| 4554 rm -f conftest* | |
| 4555 xe_check_libs="" | |
| 4556 | |
| 4557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4558 echo "$ac_t""yes" 1>&6 | |
| 4559 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
| 4560 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
| 4561 { test "$extra_verbose" = "yes" && cat << EOF | |
| 4562 Defining $ac_tr_lib | |
| 4563 EOF | |
| 4564 cat >> confdefs.h <<EOF | |
| 4565 #define $ac_tr_lib 1 | |
| 4566 EOF | |
| 4567 } | |
| 4568 | |
| 4569 LIBS="-lkstat $LIBS" | |
| 4570 | |
| 4571 else | |
| 4572 echo "$ac_t""no" 1>&6 | |
| 4573 fi | |
| 4574 | |
| 4575 | |
| 4576 | |
| 4577 | |
| 4578 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 | |
| 4579 echo "configure:4580: checking for kvm_read in -lkvm" >&5 | |
| 4580 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` | |
| 4581 | |
| 4582 xe_check_libs=" -lkvm " | |
| 4583 cat > conftest.$ac_ext <<EOF | |
| 4584 #line 4585 "configure" | |
| 4585 #include "confdefs.h" | |
| 4586 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4587 /* We use char because int might match the return type of a gcc2 | |
| 4588 builtin and then its argument prototype would still apply. */ | |
| 4589 char kvm_read(); | |
| 4590 | |
| 4591 int main() { | |
| 4592 kvm_read() | |
| 4593 ; return 0; } | |
| 4594 EOF | |
| 4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4596 rm -rf conftest* | |
| 4597 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4598 else | |
| 4599 echo "configure: failed program was:" >&5 | |
| 4600 cat conftest.$ac_ext >&5 | |
| 4601 rm -rf conftest* | |
| 4602 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4603 fi | |
| 4604 rm -f conftest* | |
| 4605 xe_check_libs="" | |
| 4606 | |
| 4607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4608 echo "$ac_t""yes" 1>&6 | |
| 4609 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
| 4610 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
| 4611 { test "$extra_verbose" = "yes" && cat << EOF | |
| 4612 Defining $ac_tr_lib | |
| 4613 EOF | |
| 4614 cat >> confdefs.h <<EOF | |
| 4615 #define $ac_tr_lib 1 | |
| 4616 EOF | |
| 4617 } | |
| 4618 | |
| 4619 LIBS="-lkvm $LIBS" | |
| 4620 | |
| 4621 else | |
| 4622 echo "$ac_t""no" 1>&6 | |
| 4623 fi | |
| 4624 | |
| 4625 | |
| 4626 | |
| 4627 | |
| 4628 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | |
| 4629 echo "configure:4630: checking for cma_open in -lpthreads" >&5 | |
| 4630 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | |
| 4631 | |
| 4632 xe_check_libs=" -lpthreads " | |
| 4633 cat > conftest.$ac_ext <<EOF | |
| 4634 #line 4635 "configure" | |
| 4635 #include "confdefs.h" | |
| 4636 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 4637 /* We use char because int might match the return type of a gcc2 | |
| 4638 builtin and then its argument prototype would still apply. */ | |
| 4639 char cma_open(); | |
| 4640 | |
| 4641 int main() { | |
| 4642 cma_open() | |
| 4643 ; return 0; } | |
| 4644 EOF | |
| 4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 4646 rm -rf conftest* | |
| 4647 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 4648 else | |
| 4649 echo "configure: failed program was:" >&5 | |
| 4650 cat conftest.$ac_ext >&5 | |
| 4651 rm -rf conftest* | |
| 4652 eval "ac_cv_lib_$ac_lib_var=no" | |
| 4653 fi | |
| 4654 rm -f conftest* | |
| 4655 xe_check_libs="" | |
| 4656 | |
| 4657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
| 4658 echo "$ac_t""yes" 1>&6 | |
| 4659 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
| 4660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
| 4661 { test "$extra_verbose" = "yes" && cat << EOF | |
| 4662 Defining $ac_tr_lib | |
| 4663 EOF | |
| 4664 cat >> confdefs.h <<EOF | |
| 4665 #define $ac_tr_lib 1 | |
| 4666 EOF | |
| 4667 } | |
| 4668 | |
| 4669 LIBS="-lpthreads $LIBS" | |
| 4670 | |
| 4671 else | |
| 4672 echo "$ac_t""no" 1>&6 | |
| 4673 fi | |
| 4674 | |
| 4675 | |
| 4676 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then | |
| 4677 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac | |
| 4678 fi | |
| 4679 | |
| 4680 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 | |
| 4681 echo "configure:4682: checking whether the -xildoff compiler flag is required" >&5 | |
| 4682 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then | |
| 4683 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; | |
| 4684 then echo "$ac_t""no" 1>&6; | |
| 4685 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" | |
| 4686 fi | |
| 4687 else echo "$ac_t""no" 1>&6 | |
| 4688 fi | |
| 4689 | |
| 4690 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no | 4825 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no |
| 4691 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` | 4826 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` |
| 4692 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 | 4827 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 |
| 4693 echo "configure:4694: checking for X11/Xauth.h" >&5 | 4828 echo "configure:4829: checking for X11/Xauth.h" >&5 |
| 4694 | 4829 |
| 4695 cat > conftest.$ac_ext <<EOF | 4830 cat > conftest.$ac_ext <<EOF |
| 4696 #line 4697 "configure" | 4831 #line 4832 "configure" |
| 4697 #include "confdefs.h" | 4832 #include "confdefs.h" |
| 4698 #include <X11/Xauth.h> | 4833 #include <X11/Xauth.h> |
| 4699 EOF | 4834 EOF |
| 4700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4701 { (eval echo configure:4702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4836 { (eval echo configure:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4702 ac_err=`grep -v '^ *+' conftest.out` | 4837 ac_err=`grep -v '^ *+' conftest.out` |
| 4703 if test -z "$ac_err"; then | 4838 if test -z "$ac_err"; then |
| 4704 rm -rf conftest* | 4839 rm -rf conftest* |
| 4705 eval "ac_cv_header_$ac_safe=yes" | 4840 eval "ac_cv_header_$ac_safe=yes" |
| 4706 else | 4841 else |
| 4719 with_xauth=no | 4854 with_xauth=no |
| 4720 fi | 4855 fi |
| 4721 } | 4856 } |
| 4722 test -z "$with_xauth" && { | 4857 test -z "$with_xauth" && { |
| 4723 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 | 4858 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 |
| 4724 echo "configure:4725: checking for XauGetAuthByAddr in -lXau" >&5 | 4859 echo "configure:4860: checking for XauGetAuthByAddr in -lXau" >&5 |
| 4725 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` | 4860 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` |
| 4726 | 4861 |
| 4727 xe_check_libs=" -lXau " | 4862 xe_check_libs=" -lXau " |
| 4728 cat > conftest.$ac_ext <<EOF | 4863 cat > conftest.$ac_ext <<EOF |
| 4729 #line 4730 "configure" | 4864 #line 4865 "configure" |
| 4730 #include "confdefs.h" | 4865 #include "confdefs.h" |
| 4731 /* Override any gcc2 internal prototype to avoid an error. */ | 4866 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4732 /* We use char because int might match the return type of a gcc2 | 4867 /* We use char because int might match the return type of a gcc2 |
| 4733 builtin and then its argument prototype would still apply. */ | 4868 builtin and then its argument prototype would still apply. */ |
| 4734 char XauGetAuthByAddr(); | 4869 char XauGetAuthByAddr(); |
| 4735 | 4870 |
| 4736 int main() { | 4871 int main() { |
| 4737 XauGetAuthByAddr() | 4872 XauGetAuthByAddr() |
| 4738 ; return 0; } | 4873 ; return 0; } |
| 4739 EOF | 4874 EOF |
| 4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4875 if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4741 rm -rf conftest* | 4876 rm -rf conftest* |
| 4742 eval "ac_cv_lib_$ac_lib_var=yes" | 4877 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4743 else | 4878 else |
| 4744 echo "configure: failed program was:" >&5 | 4879 echo "configure: failed program was:" >&5 |
| 4745 cat conftest.$ac_ext >&5 | 4880 cat conftest.$ac_ext >&5 |
| 4747 eval "ac_cv_lib_$ac_lib_var=no" | 4882 eval "ac_cv_lib_$ac_lib_var=no" |
| 4748 fi | 4883 fi |
| 4749 rm -f conftest* | 4884 rm -f conftest* |
| 4750 xe_check_libs="" | 4885 xe_check_libs="" |
| 4751 | 4886 |
| 4752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4753 echo "$ac_t""yes" 1>&6 | 4888 echo "$ac_t""yes" 1>&6 |
| 4754 : | 4889 : |
| 4755 else | 4890 else |
| 4756 echo "$ac_t""no" 1>&6 | 4891 echo "$ac_t""no" 1>&6 |
| 4757 with_xauth=no | 4892 with_xauth=no |
| 4766 cat >> confdefs.h <<\EOF | 4901 cat >> confdefs.h <<\EOF |
| 4767 #define HAVE_XAUTH 1 | 4902 #define HAVE_XAUTH 1 |
| 4768 EOF | 4903 EOF |
| 4769 } | 4904 } |
| 4770 | 4905 |
| 4771 libs_x="-lXau $libs_x" | 4906 libs_x="-lXau $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXau\" to \$libs_x"; fi |
| 4772 fi | 4907 fi |
| 4773 | 4908 |
| 4774 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` | 4909 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` |
| 4775 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 | 4910 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 |
| 4776 echo "configure:4777: checking for OffiX/DragAndDrop.h" >&5 | 4911 echo "configure:4912: checking for OffiX/DragAndDrop.h" >&5 |
| 4777 | 4912 |
| 4778 cat > conftest.$ac_ext <<EOF | 4913 cat > conftest.$ac_ext <<EOF |
| 4779 #line 4780 "configure" | 4914 #line 4915 "configure" |
| 4780 #include "confdefs.h" | 4915 #include "confdefs.h" |
| 4781 #include <OffiX/DragAndDrop.h> | 4916 #include <OffiX/DragAndDrop.h> |
| 4782 EOF | 4917 EOF |
| 4783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4784 { (eval echo configure:4785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4919 { (eval echo configure:4920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4785 ac_err=`grep -v '^ *+' conftest.out` | 4920 ac_err=`grep -v '^ *+' conftest.out` |
| 4786 if test -z "$ac_err"; then | 4921 if test -z "$ac_err"; then |
| 4787 rm -rf conftest* | 4922 rm -rf conftest* |
| 4788 eval "ac_cv_header_$ac_safe=yes" | 4923 eval "ac_cv_header_$ac_safe=yes" |
| 4789 else | 4924 else |
| 4802 with_offix=no | 4937 with_offix=no |
| 4803 fi | 4938 fi |
| 4804 } | 4939 } |
| 4805 test -z "$with_offix" && { | 4940 test -z "$with_offix" && { |
| 4806 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 | 4941 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 |
| 4807 echo "configure:4808: checking for DndInitialize in -lDnd" >&5 | 4942 echo "configure:4943: checking for DndInitialize in -lDnd" >&5 |
| 4808 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` | 4943 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` |
| 4809 | 4944 |
| 4810 xe_check_libs=" -lDnd " | 4945 xe_check_libs=" -lDnd " |
| 4811 cat > conftest.$ac_ext <<EOF | 4946 cat > conftest.$ac_ext <<EOF |
| 4812 #line 4813 "configure" | 4947 #line 4948 "configure" |
| 4813 #include "confdefs.h" | 4948 #include "confdefs.h" |
| 4814 /* Override any gcc2 internal prototype to avoid an error. */ | 4949 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4815 /* We use char because int might match the return type of a gcc2 | 4950 /* We use char because int might match the return type of a gcc2 |
| 4816 builtin and then its argument prototype would still apply. */ | 4951 builtin and then its argument prototype would still apply. */ |
| 4817 char DndInitialize(); | 4952 char DndInitialize(); |
| 4818 | 4953 |
| 4819 int main() { | 4954 int main() { |
| 4820 DndInitialize() | 4955 DndInitialize() |
| 4821 ; return 0; } | 4956 ; return 0; } |
| 4822 EOF | 4957 EOF |
| 4823 if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 4958 if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4824 rm -rf conftest* | 4959 rm -rf conftest* |
| 4825 eval "ac_cv_lib_$ac_lib_var=yes" | 4960 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4826 else | 4961 else |
| 4827 echo "configure: failed program was:" >&5 | 4962 echo "configure: failed program was:" >&5 |
| 4828 cat conftest.$ac_ext >&5 | 4963 cat conftest.$ac_ext >&5 |
| 4830 eval "ac_cv_lib_$ac_lib_var=no" | 4965 eval "ac_cv_lib_$ac_lib_var=no" |
| 4831 fi | 4966 fi |
| 4832 rm -f conftest* | 4967 rm -f conftest* |
| 4833 xe_check_libs="" | 4968 xe_check_libs="" |
| 4834 | 4969 |
| 4835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 4970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4836 echo "$ac_t""yes" 1>&6 | 4971 echo "$ac_t""yes" 1>&6 |
| 4837 : | 4972 : |
| 4838 else | 4973 else |
| 4839 echo "$ac_t""no" 1>&6 | 4974 echo "$ac_t""no" 1>&6 |
| 4840 with_offix=no | 4975 with_offix=no |
| 4849 cat >> confdefs.h <<\EOF | 4984 cat >> confdefs.h <<\EOF |
| 4850 #define HAVE_OFFIX_DND 1 | 4985 #define HAVE_OFFIX_DND 1 |
| 4851 EOF | 4986 EOF |
| 4852 } | 4987 } |
| 4853 | 4988 |
| 4854 libs_x="-lDnd $libs_x" | 4989 libs_x="-lDnd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDnd\" to \$libs_x"; fi |
| 4855 fi | 4990 fi |
| 4856 | 4991 |
| 4857 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk | 4992 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk |
| 4858 if test "$with_tooltalk" != "no" ; then | 4993 if test "$with_tooltalk" != "no" ; then |
| 4859 for dir in "" "Tt/" "desktop/" ; do | 4994 for dir in "" "Tt/" "desktop/" ; do |
| 4860 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` | 4995 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` |
| 4861 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 | 4996 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 |
| 4862 echo "configure:4863: checking for ${dir}tt_c.h" >&5 | 4997 echo "configure:4998: checking for ${dir}tt_c.h" >&5 |
| 4863 | 4998 |
| 4864 cat > conftest.$ac_ext <<EOF | 4999 cat > conftest.$ac_ext <<EOF |
| 4865 #line 4866 "configure" | 5000 #line 5001 "configure" |
| 4866 #include "confdefs.h" | 5001 #include "confdefs.h" |
| 4867 #include <${dir}tt_c.h> | 5002 #include <${dir}tt_c.h> |
| 4868 EOF | 5003 EOF |
| 4869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4870 { (eval echo configure:4871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5005 { (eval echo configure:5006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4871 ac_err=`grep -v '^ *+' conftest.out` | 5006 ac_err=`grep -v '^ *+' conftest.out` |
| 4872 if test -z "$ac_err"; then | 5007 if test -z "$ac_err"; then |
| 4873 rm -rf conftest* | 5008 rm -rf conftest* |
| 4874 eval "ac_cv_header_$ac_safe=yes" | 5009 eval "ac_cv_header_$ac_safe=yes" |
| 4875 else | 5010 else |
| 4894 for extra_libs in "" "-lI18N -lce" "-lcxx"; do | 5029 for extra_libs in "" "-lI18N -lce" "-lcxx"; do |
| 4895 | 5030 |
| 4896 xe_msg_checking="for tt_message_create in -ltt" | 5031 xe_msg_checking="for tt_message_create in -ltt" |
| 4897 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" | 5032 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" |
| 4898 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | 5033 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 |
| 4899 echo "configure:4900: checking "$xe_msg_checking"" >&5 | 5034 echo "configure:5035: checking "$xe_msg_checking"" >&5 |
| 4900 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` | 5035 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` |
| 4901 | 5036 |
| 4902 xe_check_libs=" -ltt $extra_libs" | 5037 xe_check_libs=" -ltt $extra_libs" |
| 4903 cat > conftest.$ac_ext <<EOF | 5038 cat > conftest.$ac_ext <<EOF |
| 4904 #line 4905 "configure" | 5039 #line 5040 "configure" |
| 4905 #include "confdefs.h" | 5040 #include "confdefs.h" |
| 4906 /* Override any gcc2 internal prototype to avoid an error. */ | 5041 /* Override any gcc2 internal prototype to avoid an error. */ |
| 4907 /* We use char because int might match the return type of a gcc2 | 5042 /* We use char because int might match the return type of a gcc2 |
| 4908 builtin and then its argument prototype would still apply. */ | 5043 builtin and then its argument prototype would still apply. */ |
| 4909 char tt_message_create(); | 5044 char tt_message_create(); |
| 4910 | 5045 |
| 4911 int main() { | 5046 int main() { |
| 4912 tt_message_create() | 5047 tt_message_create() |
| 4913 ; return 0; } | 5048 ; return 0; } |
| 4914 EOF | 5049 EOF |
| 4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 4916 rm -rf conftest* | 5051 rm -rf conftest* |
| 4917 eval "ac_cv_lib_$ac_lib_var=yes" | 5052 eval "ac_cv_lib_$ac_lib_var=yes" |
| 4918 else | 5053 else |
| 4919 echo "configure: failed program was:" >&5 | 5054 echo "configure: failed program was:" >&5 |
| 4920 cat conftest.$ac_ext >&5 | 5055 cat conftest.$ac_ext >&5 |
| 4922 eval "ac_cv_lib_$ac_lib_var=no" | 5057 eval "ac_cv_lib_$ac_lib_var=no" |
| 4923 fi | 5058 fi |
| 4924 rm -f conftest* | 5059 rm -f conftest* |
| 4925 xe_check_libs="" | 5060 xe_check_libs="" |
| 4926 | 5061 |
| 4927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 4928 echo "$ac_t""yes" 1>&6 | 5063 echo "$ac_t""yes" 1>&6 |
| 4929 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break | 5064 with_tooltalk=yes tt_libs="-ltt $extra_libs"; break |
| 4930 else | 5065 else |
| 4931 echo "$ac_t""no" 1>&6 | 5066 echo "$ac_t""no" 1>&6 |
| 4932 : | 5067 : |
| 4951 cat >> confdefs.h <<EOF | 5086 cat >> confdefs.h <<EOF |
| 4952 #define TT_C_H_PATH "$tt_c_h_path" | 5087 #define TT_C_H_PATH "$tt_c_h_path" |
| 4953 EOF | 5088 EOF |
| 4954 } | 5089 } |
| 4955 | 5090 |
| 4956 libs_x="$tt_libs $libs_x" | 5091 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi |
| 4957 extra_objs="$extra_objs tooltalk.o" | 5092 extra_objs="$extra_objs tooltalk.o" && if test "$extra_verbose" = "yes"; then |
| 5093 echo " xemacs will be linked with \"tooltalk.o\"" | |
| 5094 fi | |
| 4958 fi | 5095 fi |
| 4959 | 5096 |
| 4960 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` | 5097 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` |
| 4961 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 | 5098 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 |
| 4962 echo "configure:4963: checking for Dt/Dt.h" >&5 | 5099 echo "configure:5100: checking for Dt/Dt.h" >&5 |
| 4963 | 5100 |
| 4964 cat > conftest.$ac_ext <<EOF | 5101 cat > conftest.$ac_ext <<EOF |
| 4965 #line 4966 "configure" | 5102 #line 5103 "configure" |
| 4966 #include "confdefs.h" | 5103 #include "confdefs.h" |
| 4967 #include <Dt/Dt.h> | 5104 #include <Dt/Dt.h> |
| 4968 EOF | 5105 EOF |
| 4969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4970 { (eval echo configure:4971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5107 { (eval echo configure:5108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4971 ac_err=`grep -v '^ *+' conftest.out` | 5108 ac_err=`grep -v '^ *+' conftest.out` |
| 4972 if test -z "$ac_err"; then | 5109 if test -z "$ac_err"; then |
| 4973 rm -rf conftest* | 5110 rm -rf conftest* |
| 4974 eval "ac_cv_header_$ac_safe=yes" | 5111 eval "ac_cv_header_$ac_safe=yes" |
| 4975 else | 5112 else |
| 4988 with_cde=no | 5125 with_cde=no |
| 4989 fi | 5126 fi |
| 4990 } | 5127 } |
| 4991 test -z "$with_cde" && { | 5128 test -z "$with_cde" && { |
| 4992 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 | 5129 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 |
| 4993 echo "configure:4994: checking for DtDndDragStart in -lDtSvc" >&5 | 5130 echo "configure:5131: checking for DtDndDragStart in -lDtSvc" >&5 |
| 4994 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` | 5131 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` |
| 4995 | 5132 |
| 4996 xe_check_libs=" -lDtSvc " | 5133 xe_check_libs=" -lDtSvc " |
| 4997 cat > conftest.$ac_ext <<EOF | 5134 cat > conftest.$ac_ext <<EOF |
| 4998 #line 4999 "configure" | 5135 #line 5136 "configure" |
| 4999 #include "confdefs.h" | 5136 #include "confdefs.h" |
| 5000 /* Override any gcc2 internal prototype to avoid an error. */ | 5137 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5001 /* We use char because int might match the return type of a gcc2 | 5138 /* We use char because int might match the return type of a gcc2 |
| 5002 builtin and then its argument prototype would still apply. */ | 5139 builtin and then its argument prototype would still apply. */ |
| 5003 char DtDndDragStart(); | 5140 char DtDndDragStart(); |
| 5004 | 5141 |
| 5005 int main() { | 5142 int main() { |
| 5006 DtDndDragStart() | 5143 DtDndDragStart() |
| 5007 ; return 0; } | 5144 ; return 0; } |
| 5008 EOF | 5145 EOF |
| 5009 if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5010 rm -rf conftest* | 5147 rm -rf conftest* |
| 5011 eval "ac_cv_lib_$ac_lib_var=yes" | 5148 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5012 else | 5149 else |
| 5013 echo "configure: failed program was:" >&5 | 5150 echo "configure: failed program was:" >&5 |
| 5014 cat conftest.$ac_ext >&5 | 5151 cat conftest.$ac_ext >&5 |
| 5016 eval "ac_cv_lib_$ac_lib_var=no" | 5153 eval "ac_cv_lib_$ac_lib_var=no" |
| 5017 fi | 5154 fi |
| 5018 rm -f conftest* | 5155 rm -f conftest* |
| 5019 xe_check_libs="" | 5156 xe_check_libs="" |
| 5020 | 5157 |
| 5021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5022 echo "$ac_t""yes" 1>&6 | 5159 echo "$ac_t""yes" 1>&6 |
| 5023 : | 5160 : |
| 5024 else | 5161 else |
| 5025 echo "$ac_t""no" 1>&6 | 5162 echo "$ac_t""no" 1>&6 |
| 5026 with_cde=no | 5163 with_cde=no |
| 5035 cat >> confdefs.h <<\EOF | 5172 cat >> confdefs.h <<\EOF |
| 5036 #define HAVE_CDE 1 | 5173 #define HAVE_CDE 1 |
| 5037 EOF | 5174 EOF |
| 5038 } | 5175 } |
| 5039 | 5176 |
| 5040 libs_x="-lDtSvc $libs_x" | 5177 libs_x="-lDtSvc $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDtSvc\" to \$libs_x"; fi |
| 5041 with_tooltalk=yes # CDE requires Tooltalk | 5178 with_tooltalk=yes # CDE requires Tooltalk |
| 5042 with_motif=yes # CDE requires Motif | 5179 with_motif=yes # CDE requires Motif |
| 5043 fi | 5180 fi |
| 5044 | 5181 |
| 5045 if test "$with_energize" = "yes" ; then | 5182 if test "$with_energize" = "yes" ; then |
| 5051 EOF | 5188 EOF |
| 5052 } | 5189 } |
| 5053 | 5190 |
| 5054 | 5191 |
| 5055 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 | 5192 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 |
| 5056 echo "configure:5057: checking for main in -lenergize" >&5 | 5193 echo "configure:5194: checking for main in -lenergize" >&5 |
| 5057 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` | 5194 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` |
| 5058 | 5195 |
| 5059 xe_check_libs=" -lenergize " | 5196 xe_check_libs=" -lenergize " |
| 5060 cat > conftest.$ac_ext <<EOF | 5197 cat > conftest.$ac_ext <<EOF |
| 5061 #line 5062 "configure" | 5198 #line 5199 "configure" |
| 5062 #include "confdefs.h" | 5199 #include "confdefs.h" |
| 5063 | 5200 |
| 5064 int main() { | 5201 int main() { |
| 5065 main() | 5202 main() |
| 5066 ; return 0; } | 5203 ; return 0; } |
| 5067 EOF | 5204 EOF |
| 5068 if { (eval echo configure:5069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5069 rm -rf conftest* | 5206 rm -rf conftest* |
| 5070 eval "ac_cv_lib_$ac_lib_var=yes" | 5207 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5071 else | 5208 else |
| 5072 echo "configure: failed program was:" >&5 | 5209 echo "configure: failed program was:" >&5 |
| 5073 cat conftest.$ac_ext >&5 | 5210 cat conftest.$ac_ext >&5 |
| 5075 eval "ac_cv_lib_$ac_lib_var=no" | 5212 eval "ac_cv_lib_$ac_lib_var=no" |
| 5076 fi | 5213 fi |
| 5077 rm -f conftest* | 5214 rm -f conftest* |
| 5078 xe_check_libs="" | 5215 xe_check_libs="" |
| 5079 | 5216 |
| 5080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5081 echo "$ac_t""yes" 1>&6 | 5218 echo "$ac_t""yes" 1>&6 |
| 5082 LIBS="$LIBS -lenergize" | 5219 LIBS="-lenergize $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lenergize\" to \$LIBS"; fi |
| 5083 energize_version="3.X" | 5220 energize_version="3.X" |
| 5084 { test "$extra_verbose" = "yes" && cat << \EOF | 5221 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5085 Defining ENERGIZE_3 | 5222 Defining ENERGIZE_3 |
| 5086 EOF | 5223 EOF |
| 5087 cat >> confdefs.h <<\EOF | 5224 cat >> confdefs.h <<\EOF |
| 5095 | 5232 |
| 5096 | 5233 |
| 5097 if test -z "$energize_version"; then | 5234 if test -z "$energize_version"; then |
| 5098 | 5235 |
| 5099 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 | 5236 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 |
| 5100 echo "configure:5101: checking for main in -lconn" >&5 | 5237 echo "configure:5238: checking for main in -lconn" >&5 |
| 5101 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` | 5238 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` |
| 5102 | 5239 |
| 5103 xe_check_libs=" -lconn " | 5240 xe_check_libs=" -lconn " |
| 5104 cat > conftest.$ac_ext <<EOF | 5241 cat > conftest.$ac_ext <<EOF |
| 5105 #line 5106 "configure" | 5242 #line 5243 "configure" |
| 5106 #include "confdefs.h" | 5243 #include "confdefs.h" |
| 5107 | 5244 |
| 5108 int main() { | 5245 int main() { |
| 5109 main() | 5246 main() |
| 5110 ; return 0; } | 5247 ; return 0; } |
| 5111 EOF | 5248 EOF |
| 5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5249 if { (eval echo configure:5250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5113 rm -rf conftest* | 5250 rm -rf conftest* |
| 5114 eval "ac_cv_lib_$ac_lib_var=yes" | 5251 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5115 else | 5252 else |
| 5116 echo "configure: failed program was:" >&5 | 5253 echo "configure: failed program was:" >&5 |
| 5117 cat conftest.$ac_ext >&5 | 5254 cat conftest.$ac_ext >&5 |
| 5119 eval "ac_cv_lib_$ac_lib_var=no" | 5256 eval "ac_cv_lib_$ac_lib_var=no" |
| 5120 fi | 5257 fi |
| 5121 rm -f conftest* | 5258 rm -f conftest* |
| 5122 xe_check_libs="" | 5259 xe_check_libs="" |
| 5123 | 5260 |
| 5124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5125 echo "$ac_t""yes" 1>&6 | 5262 echo "$ac_t""yes" 1>&6 |
| 5126 LIBS="$LIBS -lconn" | 5263 LIBS="-lconn $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lconn\" to \$LIBS"; fi |
| 5127 energize_version="2.X" | 5264 energize_version="2.X" |
| 5128 { test "$extra_verbose" = "yes" && cat << \EOF | 5265 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5129 Defining ENERGIZE_2 | 5266 Defining ENERGIZE_2 |
| 5130 EOF | 5267 EOF |
| 5131 cat >> confdefs.h <<\EOF | 5268 cat >> confdefs.h <<\EOF |
| 5137 echo "$ac_t""no" 1>&6 | 5274 echo "$ac_t""no" 1>&6 |
| 5138 { echo "configure: error: Unable to find Energize library." 1>&2; exit 1; } | 5275 { echo "configure: error: Unable to find Energize library." 1>&2; exit 1; } |
| 5139 fi | 5276 fi |
| 5140 | 5277 |
| 5141 | 5278 |
| 5142 fi | 5279 fi |
| 5143 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` | 5280 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` |
| 5144 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 | 5281 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 |
| 5145 echo "configure:5146: checking for editorconn.h" >&5 | 5282 echo "configure:5283: checking for editorconn.h" >&5 |
| 5146 | 5283 |
| 5147 cat > conftest.$ac_ext <<EOF | 5284 cat > conftest.$ac_ext <<EOF |
| 5148 #line 5149 "configure" | 5285 #line 5286 "configure" |
| 5149 #include "confdefs.h" | 5286 #include "confdefs.h" |
| 5150 #include <editorconn.h> | 5287 #include <editorconn.h> |
| 5151 EOF | 5288 EOF |
| 5152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5153 { (eval echo configure:5154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5290 { (eval echo configure:5291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5154 ac_err=`grep -v '^ *+' conftest.out` | 5291 ac_err=`grep -v '^ *+' conftest.out` |
| 5155 if test -z "$ac_err"; then | 5292 if test -z "$ac_err"; then |
| 5156 rm -rf conftest* | 5293 rm -rf conftest* |
| 5157 eval "ac_cv_header_$ac_safe=yes" | 5294 eval "ac_cv_header_$ac_safe=yes" |
| 5158 else | 5295 else |
| 5190 | 5327 |
| 5191 fi | 5328 fi |
| 5192 | 5329 |
| 5193 | 5330 |
| 5194 echo "checking for graphics libraries" 1>&6 | 5331 echo "checking for graphics libraries" 1>&6 |
| 5195 echo "configure:5196: checking for graphics libraries" >&5 | 5332 echo "configure:5333: checking for graphics libraries" >&5 |
| 5196 test -z "$with_gif" && with_gif=yes; | 5333 test -z "$with_gif" && with_gif=yes; |
| 5197 if test "$with_gif" = "yes"; then | 5334 if test "$with_gif" = "yes"; then |
| 5198 { test "$extra_verbose" = "yes" && cat << \EOF | 5335 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5199 Defining HAVE_GIF | 5336 Defining HAVE_GIF |
| 5200 EOF | 5337 EOF |
| 5201 cat >> confdefs.h <<\EOF | 5338 cat >> confdefs.h <<\EOF |
| 5202 #define HAVE_GIF 1 | 5339 #define HAVE_GIF 1 |
| 5203 EOF | 5340 EOF |
| 5204 } | 5341 } |
| 5205 | 5342 |
| 5206 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" | 5343 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" && if test "$extra_verbose" = "yes"; then |
| 5344 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\"" | |
| 5345 fi | |
| 5207 fi | 5346 fi |
| 5208 | 5347 |
| 5209 test -z "$with_xpm" && { ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 5348 test -z "$with_xpm" && { ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
| 5210 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 5349 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
| 5211 echo "configure:5212: checking for X11/xpm.h" >&5 | 5350 echo "configure:5351: checking for X11/xpm.h" >&5 |
| 5212 | 5351 |
| 5213 cat > conftest.$ac_ext <<EOF | 5352 cat > conftest.$ac_ext <<EOF |
| 5214 #line 5215 "configure" | 5353 #line 5354 "configure" |
| 5215 #include "confdefs.h" | 5354 #include "confdefs.h" |
| 5216 #include <X11/xpm.h> | 5355 #include <X11/xpm.h> |
| 5217 EOF | 5356 EOF |
| 5218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5219 { (eval echo configure:5220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5358 { (eval echo configure:5359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5220 ac_err=`grep -v '^ *+' conftest.out` | 5359 ac_err=`grep -v '^ *+' conftest.out` |
| 5221 if test -z "$ac_err"; then | 5360 if test -z "$ac_err"; then |
| 5222 rm -rf conftest* | 5361 rm -rf conftest* |
| 5223 eval "ac_cv_header_$ac_safe=yes" | 5362 eval "ac_cv_header_$ac_safe=yes" |
| 5224 else | 5363 else |
| 5237 with_xpm=no | 5376 with_xpm=no |
| 5238 fi | 5377 fi |
| 5239 } | 5378 } |
| 5240 test -z "$with_xpm" && { | 5379 test -z "$with_xpm" && { |
| 5241 echo $ac_n "checking for XpmReadFileToData in -lXpm""... $ac_c" 1>&6 | 5380 echo $ac_n "checking for XpmReadFileToData in -lXpm""... $ac_c" 1>&6 |
| 5242 echo "configure:5243: checking for XpmReadFileToData in -lXpm" >&5 | 5381 echo "configure:5382: checking for XpmReadFileToData in -lXpm" >&5 |
| 5243 ac_lib_var=`echo Xpm'_'XpmReadFileToData | sed 'y%./+-%__p_%'` | 5382 ac_lib_var=`echo Xpm'_'XpmReadFileToData | sed 'y%./+-%__p_%'` |
| 5244 | 5383 |
| 5245 xe_check_libs=" -lXpm " | 5384 xe_check_libs=" -lXpm " |
| 5246 cat > conftest.$ac_ext <<EOF | 5385 cat > conftest.$ac_ext <<EOF |
| 5247 #line 5248 "configure" | 5386 #line 5387 "configure" |
| 5248 #include "confdefs.h" | 5387 #include "confdefs.h" |
| 5249 /* Override any gcc2 internal prototype to avoid an error. */ | 5388 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5250 /* We use char because int might match the return type of a gcc2 | 5389 /* We use char because int might match the return type of a gcc2 |
| 5251 builtin and then its argument prototype would still apply. */ | 5390 builtin and then its argument prototype would still apply. */ |
| 5252 char XpmReadFileToData(); | 5391 char XpmReadFileToData(); |
| 5253 | 5392 |
| 5254 int main() { | 5393 int main() { |
| 5255 XpmReadFileToData() | 5394 XpmReadFileToData() |
| 5256 ; return 0; } | 5395 ; return 0; } |
| 5257 EOF | 5396 EOF |
| 5258 if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5259 rm -rf conftest* | 5398 rm -rf conftest* |
| 5260 eval "ac_cv_lib_$ac_lib_var=yes" | 5399 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5261 else | 5400 else |
| 5262 echo "configure: failed program was:" >&5 | 5401 echo "configure: failed program was:" >&5 |
| 5263 cat conftest.$ac_ext >&5 | 5402 cat conftest.$ac_ext >&5 |
| 5265 eval "ac_cv_lib_$ac_lib_var=no" | 5404 eval "ac_cv_lib_$ac_lib_var=no" |
| 5266 fi | 5405 fi |
| 5267 rm -f conftest* | 5406 rm -f conftest* |
| 5268 xe_check_libs="" | 5407 xe_check_libs="" |
| 5269 | 5408 |
| 5270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5271 echo "$ac_t""yes" 1>&6 | 5410 echo "$ac_t""yes" 1>&6 |
| 5272 : | 5411 : |
| 5273 else | 5412 else |
| 5274 echo "$ac_t""no" 1>&6 | 5413 echo "$ac_t""no" 1>&6 |
| 5275 with_xpm=no | 5414 with_xpm=no |
| 5284 cat >> confdefs.h <<\EOF | 5423 cat >> confdefs.h <<\EOF |
| 5285 #define HAVE_XPM 1 | 5424 #define HAVE_XPM 1 |
| 5286 EOF | 5425 EOF |
| 5287 } | 5426 } |
| 5288 | 5427 |
| 5289 libs_x="-lXpm $libs_x" | 5428 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi |
| 5290 fi | 5429 fi |
| 5291 | 5430 |
| 5292 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` | 5431 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` |
| 5293 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 | 5432 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 |
| 5294 echo "configure:5295: checking for compface.h" >&5 | 5433 echo "configure:5434: checking for compface.h" >&5 |
| 5295 | 5434 |
| 5296 cat > conftest.$ac_ext <<EOF | 5435 cat > conftest.$ac_ext <<EOF |
| 5297 #line 5298 "configure" | 5436 #line 5437 "configure" |
| 5298 #include "confdefs.h" | 5437 #include "confdefs.h" |
| 5299 #include <compface.h> | 5438 #include <compface.h> |
| 5300 EOF | 5439 EOF |
| 5301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5302 { (eval echo configure:5303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5441 { (eval echo configure:5442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5303 ac_err=`grep -v '^ *+' conftest.out` | 5442 ac_err=`grep -v '^ *+' conftest.out` |
| 5304 if test -z "$ac_err"; then | 5443 if test -z "$ac_err"; then |
| 5305 rm -rf conftest* | 5444 rm -rf conftest* |
| 5306 eval "ac_cv_header_$ac_safe=yes" | 5445 eval "ac_cv_header_$ac_safe=yes" |
| 5307 else | 5446 else |
| 5320 with_xface=no | 5459 with_xface=no |
| 5321 fi | 5460 fi |
| 5322 } | 5461 } |
| 5323 test -z "$with_xface" && { | 5462 test -z "$with_xface" && { |
| 5324 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 | 5463 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 |
| 5325 echo "configure:5326: checking for UnGenFace in -lcompface" >&5 | 5464 echo "configure:5465: checking for UnGenFace in -lcompface" >&5 |
| 5326 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` | 5465 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` |
| 5327 | 5466 |
| 5328 xe_check_libs=" -lcompface " | 5467 xe_check_libs=" -lcompface " |
| 5329 cat > conftest.$ac_ext <<EOF | 5468 cat > conftest.$ac_ext <<EOF |
| 5330 #line 5331 "configure" | 5469 #line 5470 "configure" |
| 5331 #include "confdefs.h" | 5470 #include "confdefs.h" |
| 5332 /* Override any gcc2 internal prototype to avoid an error. */ | 5471 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5333 /* We use char because int might match the return type of a gcc2 | 5472 /* We use char because int might match the return type of a gcc2 |
| 5334 builtin and then its argument prototype would still apply. */ | 5473 builtin and then its argument prototype would still apply. */ |
| 5335 char UnGenFace(); | 5474 char UnGenFace(); |
| 5336 | 5475 |
| 5337 int main() { | 5476 int main() { |
| 5338 UnGenFace() | 5477 UnGenFace() |
| 5339 ; return 0; } | 5478 ; return 0; } |
| 5340 EOF | 5479 EOF |
| 5341 if { (eval echo configure:5342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5480 if { (eval echo configure:5481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5342 rm -rf conftest* | 5481 rm -rf conftest* |
| 5343 eval "ac_cv_lib_$ac_lib_var=yes" | 5482 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5344 else | 5483 else |
| 5345 echo "configure: failed program was:" >&5 | 5484 echo "configure: failed program was:" >&5 |
| 5346 cat conftest.$ac_ext >&5 | 5485 cat conftest.$ac_ext >&5 |
| 5348 eval "ac_cv_lib_$ac_lib_var=no" | 5487 eval "ac_cv_lib_$ac_lib_var=no" |
| 5349 fi | 5488 fi |
| 5350 rm -f conftest* | 5489 rm -f conftest* |
| 5351 xe_check_libs="" | 5490 xe_check_libs="" |
| 5352 | 5491 |
| 5353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5354 echo "$ac_t""yes" 1>&6 | 5493 echo "$ac_t""yes" 1>&6 |
| 5355 : | 5494 : |
| 5356 else | 5495 else |
| 5357 echo "$ac_t""no" 1>&6 | 5496 echo "$ac_t""no" 1>&6 |
| 5358 with_xface=no | 5497 with_xface=no |
| 5367 cat >> confdefs.h <<\EOF | 5506 cat >> confdefs.h <<\EOF |
| 5368 #define HAVE_XFACE 1 | 5507 #define HAVE_XFACE 1 |
| 5369 EOF | 5508 EOF |
| 5370 } | 5509 } |
| 5371 | 5510 |
| 5372 libs_x="-lcompface $libs_x" | 5511 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi |
| 5373 fi | 5512 fi |
| 5374 | 5513 |
| 5375 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | 5514 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` |
| 5376 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | 5515 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
| 5377 echo "configure:5378: checking for jpeglib.h" >&5 | 5516 echo "configure:5517: checking for jpeglib.h" >&5 |
| 5378 | 5517 |
| 5379 cat > conftest.$ac_ext <<EOF | 5518 cat > conftest.$ac_ext <<EOF |
| 5380 #line 5381 "configure" | 5519 #line 5520 "configure" |
| 5381 #include "confdefs.h" | 5520 #include "confdefs.h" |
| 5382 #include <jpeglib.h> | 5521 #include <jpeglib.h> |
| 5383 EOF | 5522 EOF |
| 5384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5385 { (eval echo configure:5386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5524 { (eval echo configure:5525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5386 ac_err=`grep -v '^ *+' conftest.out` | 5525 ac_err=`grep -v '^ *+' conftest.out` |
| 5387 if test -z "$ac_err"; then | 5526 if test -z "$ac_err"; then |
| 5388 rm -rf conftest* | 5527 rm -rf conftest* |
| 5389 eval "ac_cv_header_$ac_safe=yes" | 5528 eval "ac_cv_header_$ac_safe=yes" |
| 5390 else | 5529 else |
| 5403 with_jpeg=no | 5542 with_jpeg=no |
| 5404 fi | 5543 fi |
| 5405 } | 5544 } |
| 5406 test -z "$with_jpeg" && { | 5545 test -z "$with_jpeg" && { |
| 5407 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 | 5546 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 |
| 5408 echo "configure:5409: checking for jpeg_destroy_decompress in -ljpeg" >&5 | 5547 echo "configure:5548: checking for jpeg_destroy_decompress in -ljpeg" >&5 |
| 5409 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` | 5548 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` |
| 5410 | 5549 |
| 5411 xe_check_libs=" -ljpeg " | 5550 xe_check_libs=" -ljpeg " |
| 5412 cat > conftest.$ac_ext <<EOF | 5551 cat > conftest.$ac_ext <<EOF |
| 5413 #line 5414 "configure" | 5552 #line 5553 "configure" |
| 5414 #include "confdefs.h" | 5553 #include "confdefs.h" |
| 5415 /* Override any gcc2 internal prototype to avoid an error. */ | 5554 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5416 /* We use char because int might match the return type of a gcc2 | 5555 /* We use char because int might match the return type of a gcc2 |
| 5417 builtin and then its argument prototype would still apply. */ | 5556 builtin and then its argument prototype would still apply. */ |
| 5418 char jpeg_destroy_decompress(); | 5557 char jpeg_destroy_decompress(); |
| 5419 | 5558 |
| 5420 int main() { | 5559 int main() { |
| 5421 jpeg_destroy_decompress() | 5560 jpeg_destroy_decompress() |
| 5422 ; return 0; } | 5561 ; return 0; } |
| 5423 EOF | 5562 EOF |
| 5424 if { (eval echo configure:5425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5563 if { (eval echo configure:5564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5425 rm -rf conftest* | 5564 rm -rf conftest* |
| 5426 eval "ac_cv_lib_$ac_lib_var=yes" | 5565 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5427 else | 5566 else |
| 5428 echo "configure: failed program was:" >&5 | 5567 echo "configure: failed program was:" >&5 |
| 5429 cat conftest.$ac_ext >&5 | 5568 cat conftest.$ac_ext >&5 |
| 5431 eval "ac_cv_lib_$ac_lib_var=no" | 5570 eval "ac_cv_lib_$ac_lib_var=no" |
| 5432 fi | 5571 fi |
| 5433 rm -f conftest* | 5572 rm -f conftest* |
| 5434 xe_check_libs="" | 5573 xe_check_libs="" |
| 5435 | 5574 |
| 5436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5437 echo "$ac_t""yes" 1>&6 | 5576 echo "$ac_t""yes" 1>&6 |
| 5438 : | 5577 : |
| 5439 else | 5578 else |
| 5440 echo "$ac_t""no" 1>&6 | 5579 echo "$ac_t""no" 1>&6 |
| 5441 with_jpeg=no | 5580 with_jpeg=no |
| 5450 cat >> confdefs.h <<\EOF | 5589 cat >> confdefs.h <<\EOF |
| 5451 #define HAVE_JPEG 1 | 5590 #define HAVE_JPEG 1 |
| 5452 EOF | 5591 EOF |
| 5453 } | 5592 } |
| 5454 | 5593 |
| 5455 libs_x="-ljpeg $libs_x" | 5594 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi |
| 5456 fi | 5595 fi |
| 5457 | 5596 |
| 5458 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 5597 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
| 5459 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 5598 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
| 5460 echo "configure:5461: checking for png.h" >&5 | 5599 echo "configure:5600: checking for png.h" >&5 |
| 5461 | 5600 |
| 5462 cat > conftest.$ac_ext <<EOF | 5601 cat > conftest.$ac_ext <<EOF |
| 5463 #line 5464 "configure" | 5602 #line 5603 "configure" |
| 5464 #include "confdefs.h" | 5603 #include "confdefs.h" |
| 5465 #include <png.h> | 5604 #include <png.h> |
| 5466 EOF | 5605 EOF |
| 5467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5468 { (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5607 { (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5469 ac_err=`grep -v '^ *+' conftest.out` | 5608 ac_err=`grep -v '^ *+' conftest.out` |
| 5470 if test -z "$ac_err"; then | 5609 if test -z "$ac_err"; then |
| 5471 rm -rf conftest* | 5610 rm -rf conftest* |
| 5472 eval "ac_cv_header_$ac_safe=yes" | 5611 eval "ac_cv_header_$ac_safe=yes" |
| 5473 else | 5612 else |
| 5485 echo "$ac_t""no" 1>&6 | 5624 echo "$ac_t""no" 1>&6 |
| 5486 with_png=no | 5625 with_png=no |
| 5487 fi | 5626 fi |
| 5488 } | 5627 } |
| 5489 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 | 5628 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 |
| 5490 echo "configure:5491: checking for pow" >&5 | 5629 echo "configure:5630: checking for pow" >&5 |
| 5491 | 5630 |
| 5492 cat > conftest.$ac_ext <<EOF | 5631 cat > conftest.$ac_ext <<EOF |
| 5493 #line 5494 "configure" | 5632 #line 5633 "configure" |
| 5494 #include "confdefs.h" | 5633 #include "confdefs.h" |
| 5495 /* System header to define __stub macros and hopefully few prototypes, | 5634 /* System header to define __stub macros and hopefully few prototypes, |
| 5496 which can conflict with char pow(); below. */ | 5635 which can conflict with char pow(); below. */ |
| 5497 #include <assert.h> | 5636 #include <assert.h> |
| 5498 /* Override any gcc2 internal prototype to avoid an error. */ | 5637 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5511 pow(); | 5650 pow(); |
| 5512 #endif | 5651 #endif |
| 5513 | 5652 |
| 5514 ; return 0; } | 5653 ; return 0; } |
| 5515 EOF | 5654 EOF |
| 5516 if { (eval echo configure:5517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5655 if { (eval echo configure:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5517 rm -rf conftest* | 5656 rm -rf conftest* |
| 5518 eval "ac_cv_func_pow=yes" | 5657 eval "ac_cv_func_pow=yes" |
| 5519 else | 5658 else |
| 5520 echo "configure: failed program was:" >&5 | 5659 echo "configure: failed program was:" >&5 |
| 5521 cat conftest.$ac_ext >&5 | 5660 cat conftest.$ac_ext >&5 |
| 5536 for extra_libs in "" "-lz" "-lgz"; do | 5675 for extra_libs in "" "-lz" "-lgz"; do |
| 5537 | 5676 |
| 5538 xe_msg_checking="for png_read_image in -lpng" | 5677 xe_msg_checking="for png_read_image in -lpng" |
| 5539 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" | 5678 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" |
| 5540 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 | 5679 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 |
| 5541 echo "configure:5542: checking "$xe_msg_checking"" >&5 | 5680 echo "configure:5681: checking "$xe_msg_checking"" >&5 |
| 5542 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` | 5681 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` |
| 5543 | 5682 |
| 5544 xe_check_libs=" -lpng $extra_libs" | 5683 xe_check_libs=" -lpng $extra_libs" |
| 5545 cat > conftest.$ac_ext <<EOF | 5684 cat > conftest.$ac_ext <<EOF |
| 5546 #line 5547 "configure" | 5685 #line 5686 "configure" |
| 5547 #include "confdefs.h" | 5686 #include "confdefs.h" |
| 5548 /* Override any gcc2 internal prototype to avoid an error. */ | 5687 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5549 /* We use char because int might match the return type of a gcc2 | 5688 /* We use char because int might match the return type of a gcc2 |
| 5550 builtin and then its argument prototype would still apply. */ | 5689 builtin and then its argument prototype would still apply. */ |
| 5551 char png_read_image(); | 5690 char png_read_image(); |
| 5552 | 5691 |
| 5553 int main() { | 5692 int main() { |
| 5554 png_read_image() | 5693 png_read_image() |
| 5555 ; return 0; } | 5694 ; return 0; } |
| 5556 EOF | 5695 EOF |
| 5557 if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5558 rm -rf conftest* | 5697 rm -rf conftest* |
| 5559 eval "ac_cv_lib_$ac_lib_var=yes" | 5698 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5560 else | 5699 else |
| 5561 echo "configure: failed program was:" >&5 | 5700 echo "configure: failed program was:" >&5 |
| 5562 cat conftest.$ac_ext >&5 | 5701 cat conftest.$ac_ext >&5 |
| 5564 eval "ac_cv_lib_$ac_lib_var=no" | 5703 eval "ac_cv_lib_$ac_lib_var=no" |
| 5565 fi | 5704 fi |
| 5566 rm -f conftest* | 5705 rm -f conftest* |
| 5567 xe_check_libs="" | 5706 xe_check_libs="" |
| 5568 | 5707 |
| 5569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 5708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5570 echo "$ac_t""yes" 1>&6 | 5709 echo "$ac_t""yes" 1>&6 |
| 5571 png_libs="-lpng $extra_libs" with_png=yes; break | 5710 png_libs="-lpng $extra_libs" with_png=yes; break |
| 5572 else | 5711 else |
| 5573 echo "$ac_t""no" 1>&6 | 5712 echo "$ac_t""no" 1>&6 |
| 5574 : | 5713 : |
| 5585 cat >> confdefs.h <<\EOF | 5724 cat >> confdefs.h <<\EOF |
| 5586 #define HAVE_PNG 1 | 5725 #define HAVE_PNG 1 |
| 5587 EOF | 5726 EOF |
| 5588 } | 5727 } |
| 5589 | 5728 |
| 5590 libs_x="$png_libs $libs_x" | 5729 libs_x="$png_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$png_libs\" to \$libs_x"; fi |
| 5591 fi | 5730 fi |
| 5592 | 5731 |
| 5593 if test "$with_tiff" = "yes"; then | 5732 if test "$with_tiff" = "yes"; then |
| 5594 { test "$extra_verbose" = "yes" && cat << \EOF | 5733 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5595 Defining HAVE_TIFF | 5734 Defining HAVE_TIFF |
| 5597 cat >> confdefs.h <<\EOF | 5736 cat >> confdefs.h <<\EOF |
| 5598 #define HAVE_TIFF 1 | 5737 #define HAVE_TIFF 1 |
| 5599 EOF | 5738 EOF |
| 5600 } | 5739 } |
| 5601 | 5740 |
| 5602 libs_x="-ltiff $libs_x" | 5741 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi |
| 5603 fi | 5742 fi |
| 5743 | |
| 5744 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` | |
| 5745 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 | |
| 5746 echo "configure:5747: checking for Xm/Xm.h" >&5 | |
| 5747 | |
| 5748 cat > conftest.$ac_ext <<EOF | |
| 5749 #line 5750 "configure" | |
| 5750 #include "confdefs.h" | |
| 5751 #include <Xm/Xm.h> | |
| 5752 EOF | |
| 5753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
| 5754 { (eval echo configure:5755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
| 5755 ac_err=`grep -v '^ *+' conftest.out` | |
| 5756 if test -z "$ac_err"; then | |
| 5757 rm -rf conftest* | |
| 5758 eval "ac_cv_header_$ac_safe=yes" | |
| 5759 else | |
| 5760 echo "$ac_err" >&5 | |
| 5761 echo "configure: failed program was:" >&5 | |
| 5762 cat conftest.$ac_ext >&5 | |
| 5763 rm -rf conftest* | |
| 5764 eval "ac_cv_header_$ac_safe=no" | |
| 5765 fi | |
| 5766 rm -f conftest* | |
| 5767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
| 5768 echo "$ac_t""yes" 1>&6 | |
| 5769 | |
| 5770 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 | |
| 5771 echo "configure:5772: checking for XmStringFree in -lXm" >&5 | |
| 5772 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` | |
| 5773 | |
| 5774 xe_check_libs=" -lXm " | |
| 5775 cat > conftest.$ac_ext <<EOF | |
| 5776 #line 5777 "configure" | |
| 5777 #include "confdefs.h" | |
| 5778 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 5779 /* We use char because int might match the return type of a gcc2 | |
| 5780 builtin and then its argument prototype would still apply. */ | |
| 5781 char XmStringFree(); | |
| 5782 | |
| 5783 int main() { | |
| 5784 XmStringFree() | |
| 5785 ; return 0; } | |
| 5786 EOF | |
| 5787 if { (eval echo configure:5788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 5788 rm -rf conftest* | |
| 5789 eval "ac_cv_lib_$ac_lib_var=yes" | |
| 5790 else | |
| 5791 echo "configure: failed program was:" >&5 | |
| 5792 cat conftest.$ac_ext >&5 | |
| 5793 rm -rf conftest* | |
| 5794 eval "ac_cv_lib_$ac_lib_var=no" | |
| 5795 fi | |
| 5796 rm -f conftest* | |
| 5797 xe_check_libs="" | |
| 5798 | |
| 5799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
| 5800 echo "$ac_t""yes" 1>&6 | |
| 5801 have_motif=yes | |
| 5802 else | |
| 5803 echo "$ac_t""no" 1>&6 | |
| 5804 have_motif=no | |
| 5805 fi | |
| 5806 | |
| 5807 | |
| 5808 else | |
| 5809 echo "$ac_t""no" 1>&6 | |
| 5810 have_motif=no | |
| 5811 fi | |
| 5812 | |
| 5604 | 5813 |
| 5605 | 5814 |
| 5606 case "$with_menubars" in "" | "yes" | "athena" ) | 5815 case "$with_menubars" in "" | "yes" | "athena" ) |
| 5607 with_menubars="lucid" ;; | 5816 with_menubars="lucid" ;; |
| 5608 esac | 5817 esac |
| 5625 cat >> confdefs.h <<\EOF | 5834 cat >> confdefs.h <<\EOF |
| 5626 #define LWLIB_USES_ATHENA 1 | 5835 #define LWLIB_USES_ATHENA 1 |
| 5627 EOF | 5836 EOF |
| 5628 } | 5837 } |
| 5629 | 5838 |
| 5630 libs_x="-lXaw $libs_x" ;; | 5839 libs_x="-lXaw $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXaw\" to \$libs_x"; fi ;; |
| 5631 esac | 5840 esac |
| 5632 | 5841 |
| 5633 case "$all_widgets" in *motif* ) | 5842 case "$all_widgets" in *motif* ) |
| 5634 { test "$extra_verbose" = "yes" && cat << \EOF | 5843 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5635 Defining LWLIB_USES_MOTIF | 5844 Defining LWLIB_USES_MOTIF |
| 5748 #define LWLIB_DIALOGS_MOTIF 1 | 5957 #define LWLIB_DIALOGS_MOTIF 1 |
| 5749 EOF | 5958 EOF |
| 5750 } | 5959 } |
| 5751 | 5960 |
| 5752 | 5961 |
| 5753 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" | 5962 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar.o" && if test "$extra_verbose" = "yes"; then |
| 5754 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" | 5963 echo " xemacs will be linked with \"menubar.o\"" |
| 5755 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" | 5964 fi |
| 5756 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" | 5965 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar.o" && if test "$extra_verbose" = "yes"; then |
| 5757 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" | 5966 echo " xemacs will be linked with \"scrollbar.o\"" |
| 5967 fi | |
| 5968 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog.o" && if test "$extra_verbose" = "yes"; then | |
| 5969 echo " xemacs will be linked with \"dialog.o\"" | |
| 5970 fi | |
| 5971 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then | |
| 5972 echo " xemacs will be linked with \"toolbar.o\"" | |
| 5973 fi | |
| 5974 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui.o" && if test "$extra_verbose" = "yes"; then | |
| 5975 echo " xemacs will be linked with \"gui.o\"" | |
| 5976 fi | |
| 5758 | 5977 |
| 5759 if test "$with_x11" = "yes"; then | 5978 if test "$with_x11" = "yes"; then |
| 5760 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" | 5979 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then |
| 5761 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" | 5980 echo " xemacs will be linked with \"menubar-x.o\"" |
| 5762 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" | 5981 fi |
| 5763 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" | 5982 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then |
| 5764 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" | 5983 echo " xemacs will be linked with \"scrollbar-x.o\"" |
| 5984 fi | |
| 5985 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-x.o" && if test "$extra_verbose" = "yes"; then | |
| 5986 echo " xemacs will be linked with \"dialog-x.o\"" | |
| 5987 fi | |
| 5988 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-x.o" && if test "$extra_verbose" = "yes"; then | |
| 5989 echo " xemacs will be linked with \"toolbar-x.o\"" | |
| 5990 fi | |
| 5991 test "$all_widgets" != "no no no no" && extra_objs="$extra_objs gui-x.o" && if test "$extra_verbose" = "yes"; then | |
| 5992 echo " xemacs will be linked with \"gui-x.o\"" | |
| 5993 fi | |
| 5765 fi | 5994 fi |
| 5766 | 5995 |
| 5767 | 5996 |
| 5768 test -z "$with_mule" && with_mule=no | 5997 test -z "$with_mule" && with_mule=no |
| 5769 | 5998 |
| 5770 if test "$with_mule" = "yes" ; then | 5999 if test "$with_mule" = "yes" ; then |
| 6000 echo "checking for Mule-related features" 1>&6 | |
| 6001 echo "configure:6002: checking for Mule-related features" >&5 | |
| 5771 { test "$extra_verbose" = "yes" && cat << \EOF | 6002 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5772 Defining MULE | 6003 Defining MULE |
| 5773 EOF | 6004 EOF |
| 5774 cat >> confdefs.h <<\EOF | 6005 cat >> confdefs.h <<\EOF |
| 5775 #define MULE 1 | 6006 #define MULE 1 |
| 5776 EOF | 6007 EOF |
| 5777 } | 6008 } |
| 5778 | 6009 |
| 5779 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o" | 6010 extra_objs="$extra_objs mule.o mule-ccl.o mule-charset.o mule-coding.o" && if test "$extra_verbose" = "yes"; then |
| 6011 echo " xemacs will be linked with \"mule.o mule-ccl.o mule-charset.o mule-coding.o\"" | |
| 6012 fi | |
| 5780 | 6013 |
| 5781 | 6014 |
| 5782 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 | 6015 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 |
| 5783 echo "configure:5784: checking for strerror in -lintl" >&5 | 6016 echo "configure:6017: checking for strerror in -lintl" >&5 |
| 5784 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` | 6017 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` |
| 5785 | 6018 |
| 5786 xe_check_libs=" -lintl " | 6019 xe_check_libs=" -lintl " |
| 5787 cat > conftest.$ac_ext <<EOF | 6020 cat > conftest.$ac_ext <<EOF |
| 5788 #line 5789 "configure" | 6021 #line 6022 "configure" |
| 5789 #include "confdefs.h" | 6022 #include "confdefs.h" |
| 5790 /* Override any gcc2 internal prototype to avoid an error. */ | 6023 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5791 /* We use char because int might match the return type of a gcc2 | 6024 /* We use char because int might match the return type of a gcc2 |
| 5792 builtin and then its argument prototype would still apply. */ | 6025 builtin and then its argument prototype would still apply. */ |
| 5793 char strerror(); | 6026 char strerror(); |
| 5794 | 6027 |
| 5795 int main() { | 6028 int main() { |
| 5796 strerror() | 6029 strerror() |
| 5797 ; return 0; } | 6030 ; return 0; } |
| 5798 EOF | 6031 EOF |
| 5799 if { (eval echo configure:5800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6032 if { (eval echo configure:6033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5800 rm -rf conftest* | 6033 rm -rf conftest* |
| 5801 eval "ac_cv_lib_$ac_lib_var=yes" | 6034 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5802 else | 6035 else |
| 5803 echo "configure: failed program was:" >&5 | 6036 echo "configure: failed program was:" >&5 |
| 5804 cat conftest.$ac_ext >&5 | 6037 cat conftest.$ac_ext >&5 |
| 5806 eval "ac_cv_lib_$ac_lib_var=no" | 6039 eval "ac_cv_lib_$ac_lib_var=no" |
| 5807 fi | 6040 fi |
| 5808 rm -f conftest* | 6041 rm -f conftest* |
| 5809 xe_check_libs="" | 6042 xe_check_libs="" |
| 5810 | 6043 |
| 5811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5812 echo "$ac_t""yes" 1>&6 | 6045 echo "$ac_t""yes" 1>&6 |
| 5813 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 6046 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5814 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 6047 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 5815 { test "$extra_verbose" = "yes" && cat << EOF | 6048 { test "$extra_verbose" = "yes" && cat << EOF |
| 5816 Defining $ac_tr_lib | 6049 Defining $ac_tr_lib |
| 5818 cat >> confdefs.h <<EOF | 6051 cat >> confdefs.h <<EOF |
| 5819 #define $ac_tr_lib 1 | 6052 #define $ac_tr_lib 1 |
| 5820 EOF | 6053 EOF |
| 5821 } | 6054 } |
| 5822 | 6055 |
| 5823 LIBS="-lintl $LIBS" | 6056 LIBS="-lintl $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lintl\" to \$LIBS"; fi |
| 5824 | 6057 |
| 5825 else | 6058 else |
| 5826 echo "$ac_t""no" 1>&6 | 6059 echo "$ac_t""no" 1>&6 |
| 5827 fi | 6060 fi |
| 5828 | 6061 |
| 5829 | 6062 |
| 5830 | 6063 |
| 5831 echo "checking for Mule input methods" 1>&6 | 6064 echo "checking for Mule input methods" 1>&6 |
| 5832 echo "configure:5833: checking for Mule input methods" >&5 | 6065 echo "configure:6066: checking for Mule input methods" >&5 |
| 5833 case "$with_xim" in "" | "yes" ) | 6066 test -z "$with_xim" && case "$opsys" in sol2* ) ;; *) with_xim=no ;; esac |
| 6067 case "$with_xim" in "" | "yes" ) | |
| 5834 echo "checking for XIM" 1>&6 | 6068 echo "checking for XIM" 1>&6 |
| 5835 echo "configure:5836: checking for XIM" >&5 | 6069 echo "configure:6070: checking for XIM" >&5 |
| 5836 | 6070 |
| 5837 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 | 6071 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 |
| 5838 echo "configure:5839: checking for XmImMbLookupString in -lXm" >&5 | 6072 echo "configure:6073: checking for XmImMbLookupString in -lXm" >&5 |
| 5839 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` | 6073 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` |
| 5840 | 6074 |
| 5841 xe_check_libs=" -lXm " | 6075 xe_check_libs=" -lXm " |
| 5842 cat > conftest.$ac_ext <<EOF | 6076 cat > conftest.$ac_ext <<EOF |
| 5843 #line 5844 "configure" | 6077 #line 6078 "configure" |
| 5844 #include "confdefs.h" | 6078 #include "confdefs.h" |
| 5845 /* Override any gcc2 internal prototype to avoid an error. */ | 6079 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5846 /* We use char because int might match the return type of a gcc2 | 6080 /* We use char because int might match the return type of a gcc2 |
| 5847 builtin and then its argument prototype would still apply. */ | 6081 builtin and then its argument prototype would still apply. */ |
| 5848 char XmImMbLookupString(); | 6082 char XmImMbLookupString(); |
| 5849 | 6083 |
| 5850 int main() { | 6084 int main() { |
| 5851 XmImMbLookupString() | 6085 XmImMbLookupString() |
| 5852 ; return 0; } | 6086 ; return 0; } |
| 5853 EOF | 6087 EOF |
| 5854 if { (eval echo configure:5855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5855 rm -rf conftest* | 6089 rm -rf conftest* |
| 5856 eval "ac_cv_lib_$ac_lib_var=yes" | 6090 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5857 else | 6091 else |
| 5858 echo "configure: failed program was:" >&5 | 6092 echo "configure: failed program was:" >&5 |
| 5859 cat conftest.$ac_ext >&5 | 6093 cat conftest.$ac_ext >&5 |
| 5861 eval "ac_cv_lib_$ac_lib_var=no" | 6095 eval "ac_cv_lib_$ac_lib_var=no" |
| 5862 fi | 6096 fi |
| 5863 rm -f conftest* | 6097 rm -f conftest* |
| 5864 xe_check_libs="" | 6098 xe_check_libs="" |
| 5865 | 6099 |
| 5866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5867 echo "$ac_t""yes" 1>&6 | 6101 echo "$ac_t""yes" 1>&6 |
| 5868 with_xim=motif | 6102 with_xim=motif |
| 5869 else | 6103 else |
| 5870 echo "$ac_t""no" 1>&6 | 6104 echo "$ac_t""no" 1>&6 |
| 5871 with_xim=xlib | 6105 with_xim=xlib |
| 5889 cat >> confdefs.h <<\EOF | 6123 cat >> confdefs.h <<\EOF |
| 5890 #define XIM_XLIB 1 | 6124 #define XIM_XLIB 1 |
| 5891 EOF | 6125 EOF |
| 5892 } | 6126 } |
| 5893 | 6127 |
| 5894 extra_objs="$extra_objs input-method-xlib.o" | 6128 extra_objs="$extra_objs input-method-xlib.o" && if test "$extra_verbose" = "yes"; then |
| 5895 fi | 6129 echo " xemacs will be linked with \"input-method-xlib.o\"" |
| 6130 fi | |
| 6131 fi | |
| 5896 if test "$with_xim" = "motif"; then | 6132 if test "$with_xim" = "motif"; then |
| 5897 { test "$extra_verbose" = "yes" && cat << \EOF | 6133 { test "$extra_verbose" = "yes" && cat << \EOF |
| 5898 Defining XIM_MOTIF | 6134 Defining XIM_MOTIF |
| 5899 EOF | 6135 EOF |
| 5900 cat >> confdefs.h <<\EOF | 6136 cat >> confdefs.h <<\EOF |
| 5901 #define XIM_MOTIF 1 | 6137 #define XIM_MOTIF 1 |
| 5902 EOF | 6138 EOF |
| 5903 } | 6139 } |
| 5904 | 6140 |
| 5905 need_motif=yes | 6141 need_motif=yes |
| 5906 extra_objs="$extra_objs input-method-motif.o" | 6142 extra_objs="$extra_objs input-method-motif.o" && if test "$extra_verbose" = "yes"; then |
| 5907 fi | 6143 echo " xemacs will be linked with \"input-method-motif.o\"" |
| 6144 fi | |
| 5908 fi | 6145 fi |
| 5909 | 6146 fi |
| 5910 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support | 6147 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support |
| 5911 test -z "$with_wnn" && { ac_safe=`echo "wnn/wnnerror.h" | sed 'y%./+-%__p_%'` | 6148 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` |
| 5912 echo $ac_n "checking for wnn/wnnerror.h""... $ac_c" 1>&6 | 6149 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 |
| 5913 echo "configure:5914: checking for wnn/wnnerror.h" >&5 | 6150 echo "configure:6151: checking for wnn/jllib.h" >&5 |
| 5914 | 6151 |
| 5915 cat > conftest.$ac_ext <<EOF | 6152 cat > conftest.$ac_ext <<EOF |
| 5916 #line 5917 "configure" | 6153 #line 6154 "configure" |
| 5917 #include "confdefs.h" | 6154 #include "confdefs.h" |
| 5918 #include <wnn/wnnerror.h> | 6155 #include <wnn/jllib.h> |
| 5919 EOF | 6156 EOF |
| 5920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5921 { (eval echo configure:5922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6158 { (eval echo configure:6159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5922 ac_err=`grep -v '^ *+' conftest.out` | 6159 ac_err=`grep -v '^ *+' conftest.out` |
| 5923 if test -z "$ac_err"; then | 6160 if test -z "$ac_err"; then |
| 5924 rm -rf conftest* | 6161 rm -rf conftest* |
| 5925 eval "ac_cv_header_$ac_safe=yes" | 6162 eval "ac_cv_header_$ac_safe=yes" |
| 5926 else | 6163 else |
| 5939 with_wnn=no | 6176 with_wnn=no |
| 5940 fi | 6177 fi |
| 5941 } | 6178 } |
| 5942 test -z "$with_wnn" && { | 6179 test -z "$with_wnn" && { |
| 5943 echo $ac_n "checking for jl_dic_list in -lwnn""... $ac_c" 1>&6 | 6180 echo $ac_n "checking for jl_dic_list in -lwnn""... $ac_c" 1>&6 |
| 5944 echo "configure:5945: checking for jl_dic_list in -lwnn" >&5 | 6181 echo "configure:6182: checking for jl_dic_list in -lwnn" >&5 |
| 5945 ac_lib_var=`echo wnn'_'jl_dic_list | sed 'y%./+-%__p_%'` | 6182 ac_lib_var=`echo wnn'_'jl_dic_list | sed 'y%./+-%__p_%'` |
| 5946 | 6183 |
| 5947 xe_check_libs=" -lwnn " | 6184 xe_check_libs=" -lwnn " |
| 5948 cat > conftest.$ac_ext <<EOF | 6185 cat > conftest.$ac_ext <<EOF |
| 5949 #line 5950 "configure" | 6186 #line 6187 "configure" |
| 5950 #include "confdefs.h" | 6187 #include "confdefs.h" |
| 5951 /* Override any gcc2 internal prototype to avoid an error. */ | 6188 /* Override any gcc2 internal prototype to avoid an error. */ |
| 5952 /* We use char because int might match the return type of a gcc2 | 6189 /* We use char because int might match the return type of a gcc2 |
| 5953 builtin and then its argument prototype would still apply. */ | 6190 builtin and then its argument prototype would still apply. */ |
| 5954 char jl_dic_list(); | 6191 char jl_dic_list(); |
| 5955 | 6192 |
| 5956 int main() { | 6193 int main() { |
| 5957 jl_dic_list() | 6194 jl_dic_list() |
| 5958 ; return 0; } | 6195 ; return 0; } |
| 5959 EOF | 6196 EOF |
| 5960 if { (eval echo configure:5961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 5961 rm -rf conftest* | 6198 rm -rf conftest* |
| 5962 eval "ac_cv_lib_$ac_lib_var=yes" | 6199 eval "ac_cv_lib_$ac_lib_var=yes" |
| 5963 else | 6200 else |
| 5964 echo "configure: failed program was:" >&5 | 6201 echo "configure: failed program was:" >&5 |
| 5965 cat conftest.$ac_ext >&5 | 6202 cat conftest.$ac_ext >&5 |
| 5967 eval "ac_cv_lib_$ac_lib_var=no" | 6204 eval "ac_cv_lib_$ac_lib_var=no" |
| 5968 fi | 6205 fi |
| 5969 rm -f conftest* | 6206 rm -f conftest* |
| 5970 xe_check_libs="" | 6207 xe_check_libs="" |
| 5971 | 6208 |
| 5972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 5973 echo "$ac_t""yes" 1>&6 | 6210 echo "$ac_t""yes" 1>&6 |
| 5974 : | 6211 : |
| 5975 else | 6212 else |
| 5976 echo "$ac_t""no" 1>&6 | 6213 echo "$ac_t""no" 1>&6 |
| 5977 with_wnn=no | 6214 with_wnn=no |
| 5986 cat >> confdefs.h <<\EOF | 6223 cat >> confdefs.h <<\EOF |
| 5987 #define HAVE_WNN 1 | 6224 #define HAVE_WNN 1 |
| 5988 EOF | 6225 EOF |
| 5989 } | 6226 } |
| 5990 | 6227 |
| 5991 libs_x="-lwnn $libs_x" | 6228 libs_x="-lwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lwnn\" to \$libs_x"; fi |
| 5992 extra_objs="$extra_objs mule-wnnfns.o" | 6229 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then |
| 6230 echo " xemacs will be linked with \"mule-wnnfns.o\"" | |
| 6231 fi | |
| 5993 | 6232 |
| 5994 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 | 6233 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 |
| 5995 echo "configure:5996: checking for jl_fi_dic_list in -lwnn" >&5 | 6234 echo "configure:6235: checking for jl_fi_dic_list in -lwnn" >&5 |
| 5996 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` | 6235 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` |
| 5997 | 6236 |
| 5998 xe_check_libs=" -lwnn " | 6237 xe_check_libs=" -lwnn " |
| 5999 cat > conftest.$ac_ext <<EOF | 6238 cat > conftest.$ac_ext <<EOF |
| 6000 #line 6001 "configure" | 6239 #line 6240 "configure" |
| 6001 #include "confdefs.h" | 6240 #include "confdefs.h" |
| 6002 /* Override any gcc2 internal prototype to avoid an error. */ | 6241 /* Override any gcc2 internal prototype to avoid an error. */ |
| 6003 /* We use char because int might match the return type of a gcc2 | 6242 /* We use char because int might match the return type of a gcc2 |
| 6004 builtin and then its argument prototype would still apply. */ | 6243 builtin and then its argument prototype would still apply. */ |
| 6005 char jl_fi_dic_list(); | 6244 char jl_fi_dic_list(); |
| 6006 | 6245 |
| 6007 int main() { | 6246 int main() { |
| 6008 jl_fi_dic_list() | 6247 jl_fi_dic_list() |
| 6009 ; return 0; } | 6248 ; return 0; } |
| 6010 EOF | 6249 EOF |
| 6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6250 if { (eval echo configure:6251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6012 rm -rf conftest* | 6251 rm -rf conftest* |
| 6013 eval "ac_cv_lib_$ac_lib_var=yes" | 6252 eval "ac_cv_lib_$ac_lib_var=yes" |
| 6014 else | 6253 else |
| 6015 echo "configure: failed program was:" >&5 | 6254 echo "configure: failed program was:" >&5 |
| 6016 cat conftest.$ac_ext >&5 | 6255 cat conftest.$ac_ext >&5 |
| 6018 eval "ac_cv_lib_$ac_lib_var=no" | 6257 eval "ac_cv_lib_$ac_lib_var=no" |
| 6019 fi | 6258 fi |
| 6020 rm -f conftest* | 6259 rm -f conftest* |
| 6021 xe_check_libs="" | 6260 xe_check_libs="" |
| 6022 | 6261 |
| 6023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 6024 echo "$ac_t""yes" 1>&6 | 6263 echo "$ac_t""yes" 1>&6 |
| 6025 with_wnn6=yes | 6264 with_wnn6=yes |
| 6026 else | 6265 else |
| 6027 echo "$ac_t""no" 1>&6 | 6266 echo "$ac_t""no" 1>&6 |
| 6028 fi | 6267 fi |
| 6029 | 6268 |
| 6030 | 6269 |
| 6031 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF | 6270 test "$with_wnn6" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF |
| 6032 Defining HAVE_WNN6 | 6271 Defining WNN6 |
| 6033 EOF | 6272 EOF |
| 6034 cat >> confdefs.h <<\EOF | 6273 cat >> confdefs.h <<\EOF |
| 6035 #define HAVE_WNN6 1 | 6274 #define WNN6 1 |
| 6036 EOF | 6275 EOF |
| 6037 } | 6276 } |
| 6038 | 6277 |
| 6039 fi | 6278 fi |
| 6040 | 6279 |
| 6041 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` | 6280 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` |
| 6042 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 | 6281 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 |
| 6043 echo "configure:6044: checking for canna/RK.h" >&5 | 6282 echo "configure:6283: checking for canna/RK.h" >&5 |
| 6044 | 6283 |
| 6045 cat > conftest.$ac_ext <<EOF | 6284 cat > conftest.$ac_ext <<EOF |
| 6046 #line 6047 "configure" | 6285 #line 6286 "configure" |
| 6047 #include "confdefs.h" | 6286 #include "confdefs.h" |
| 6048 #include <canna/RK.h> | 6287 #include <canna/RK.h> |
| 6049 EOF | 6288 EOF |
| 6050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 6051 { (eval echo configure:6052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6290 { (eval echo configure:6291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 6052 ac_err=`grep -v '^ *+' conftest.out` | 6291 ac_err=`grep -v '^ *+' conftest.out` |
| 6053 if test -z "$ac_err"; then | 6292 if test -z "$ac_err"; then |
| 6054 rm -rf conftest* | 6293 rm -rf conftest* |
| 6055 eval "ac_cv_header_$ac_safe=yes" | 6294 eval "ac_cv_header_$ac_safe=yes" |
| 6056 else | 6295 else |
| 6069 with_canna=no | 6308 with_canna=no |
| 6070 fi | 6309 fi |
| 6071 } | 6310 } |
| 6072 test -z "$with_canna" && { | 6311 test -z "$with_canna" && { |
| 6073 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 | 6312 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 |
| 6074 echo "configure:6075: checking for RkBgnBun in -lRKC" >&5 | 6313 echo "configure:6314: checking for RkBgnBun in -lRKC" >&5 |
| 6075 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` | 6314 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` |
| 6076 | 6315 |
| 6077 xe_check_libs=" -lRKC " | 6316 xe_check_libs=" -lRKC " |
| 6078 cat > conftest.$ac_ext <<EOF | 6317 cat > conftest.$ac_ext <<EOF |
| 6079 #line 6080 "configure" | 6318 #line 6319 "configure" |
| 6080 #include "confdefs.h" | 6319 #include "confdefs.h" |
| 6081 /* Override any gcc2 internal prototype to avoid an error. */ | 6320 /* Override any gcc2 internal prototype to avoid an error. */ |
| 6082 /* We use char because int might match the return type of a gcc2 | 6321 /* We use char because int might match the return type of a gcc2 |
| 6083 builtin and then its argument prototype would still apply. */ | 6322 builtin and then its argument prototype would still apply. */ |
| 6084 char RkBgnBun(); | 6323 char RkBgnBun(); |
| 6085 | 6324 |
| 6086 int main() { | 6325 int main() { |
| 6087 RkBgnBun() | 6326 RkBgnBun() |
| 6088 ; return 0; } | 6327 ; return 0; } |
| 6089 EOF | 6328 EOF |
| 6090 if { (eval echo configure:6091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6091 rm -rf conftest* | 6330 rm -rf conftest* |
| 6092 eval "ac_cv_lib_$ac_lib_var=yes" | 6331 eval "ac_cv_lib_$ac_lib_var=yes" |
| 6093 else | 6332 else |
| 6094 echo "configure: failed program was:" >&5 | 6333 echo "configure: failed program was:" >&5 |
| 6095 cat conftest.$ac_ext >&5 | 6334 cat conftest.$ac_ext >&5 |
| 6097 eval "ac_cv_lib_$ac_lib_var=no" | 6336 eval "ac_cv_lib_$ac_lib_var=no" |
| 6098 fi | 6337 fi |
| 6099 rm -f conftest* | 6338 rm -f conftest* |
| 6100 xe_check_libs="" | 6339 xe_check_libs="" |
| 6101 | 6340 |
| 6102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 6103 echo "$ac_t""yes" 1>&6 | 6342 echo "$ac_t""yes" 1>&6 |
| 6104 : | 6343 : |
| 6105 else | 6344 else |
| 6106 echo "$ac_t""no" 1>&6 | 6345 echo "$ac_t""no" 1>&6 |
| 6107 with_canna=no | 6346 with_canna=no |
| 6108 fi | 6347 fi |
| 6109 | 6348 |
| 6110 } | 6349 } |
| 6111 test -z "$with_canna" && { | 6350 test -z "$with_canna" && { |
| 6112 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 | 6351 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 |
| 6113 echo "configure:6114: checking for jrKanjiControl in -lcanna" >&5 | 6352 echo "configure:6353: checking for jrKanjiControl in -lcanna" >&5 |
| 6114 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` | 6353 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` |
| 6115 | 6354 |
| 6116 xe_check_libs=" -lcanna " | 6355 xe_check_libs=" -lcanna " |
| 6117 cat > conftest.$ac_ext <<EOF | 6356 cat > conftest.$ac_ext <<EOF |
| 6118 #line 6119 "configure" | 6357 #line 6358 "configure" |
| 6119 #include "confdefs.h" | 6358 #include "confdefs.h" |
| 6120 /* Override any gcc2 internal prototype to avoid an error. */ | 6359 /* Override any gcc2 internal prototype to avoid an error. */ |
| 6121 /* We use char because int might match the return type of a gcc2 | 6360 /* We use char because int might match the return type of a gcc2 |
| 6122 builtin and then its argument prototype would still apply. */ | 6361 builtin and then its argument prototype would still apply. */ |
| 6123 char jrKanjiControl(); | 6362 char jrKanjiControl(); |
| 6124 | 6363 |
| 6125 int main() { | 6364 int main() { |
| 6126 jrKanjiControl() | 6365 jrKanjiControl() |
| 6127 ; return 0; } | 6366 ; return 0; } |
| 6128 EOF | 6367 EOF |
| 6129 if { (eval echo configure:6130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6368 if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6130 rm -rf conftest* | 6369 rm -rf conftest* |
| 6131 eval "ac_cv_lib_$ac_lib_var=yes" | 6370 eval "ac_cv_lib_$ac_lib_var=yes" |
| 6132 else | 6371 else |
| 6133 echo "configure: failed program was:" >&5 | 6372 echo "configure: failed program was:" >&5 |
| 6134 cat conftest.$ac_ext >&5 | 6373 cat conftest.$ac_ext >&5 |
| 6136 eval "ac_cv_lib_$ac_lib_var=no" | 6375 eval "ac_cv_lib_$ac_lib_var=no" |
| 6137 fi | 6376 fi |
| 6138 rm -f conftest* | 6377 rm -f conftest* |
| 6139 xe_check_libs="" | 6378 xe_check_libs="" |
| 6140 | 6379 |
| 6141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 6380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 6142 echo "$ac_t""yes" 1>&6 | 6381 echo "$ac_t""yes" 1>&6 |
| 6143 : | 6382 : |
| 6144 else | 6383 else |
| 6145 echo "$ac_t""no" 1>&6 | 6384 echo "$ac_t""no" 1>&6 |
| 6146 with_canna=no | 6385 with_canna=no |
| 6155 cat >> confdefs.h <<\EOF | 6394 cat >> confdefs.h <<\EOF |
| 6156 #define HAVE_CANNA 1 | 6395 #define HAVE_CANNA 1 |
| 6157 EOF | 6396 EOF |
| 6158 } | 6397 } |
| 6159 | 6398 |
| 6160 libs_x="-lcanna -lRKC $libs_x" | 6399 libs_x="-lcanna -lRKC $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcanna -lRKC\" to \$libs_x"; fi |
| 6161 extra_objs="$extra_objs mule-canna.o" | 6400 extra_objs="$extra_objs mule-canna.o" && if test "$extra_verbose" = "yes"; then |
| 6162 fi | 6401 echo " xemacs will be linked with \"mule-canna.o\"" |
| 6163 else # "$with_mule" = "no" | 6402 fi |
| 6164 for feature in xim canna wnn; do | 6403 fi |
| 6404 else for feature in xim canna wnn; do | |
| 6165 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | 6405 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
| 6166 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2 | 6406 echo "configure: warning: "--with-${feature} ignored: Not valid without Mule support"" 1>&2 |
| 6167 fi | 6407 fi |
| 6168 eval "with_${feature}=no" | 6408 eval "with_${feature}=no" |
| 6169 done | 6409 done |
| 6170 fi | 6410 fi |
| 6171 | 6411 |
| 6172 | 6412 if test "$need_motif" = "yes" ; then |
| 6173 test "$need_motif" = "yes" && libs_x="-lXm $libs_x" | 6413 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi |
| 6174 | 6414 |
| 6175 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid | 6415 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then |
| 6416 ld_switch_site="`echo $ld_switch_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 6417 ld_switch_x_site="`echo $ld_switch_x_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 6418 | |
| 6419 if test -n "$LD_RUN_PATH"; then | |
| 6420 runpath="$LD_RUN_PATH" | |
| 6421 else | |
| 6422 runpath="" | |
| 6423 for arg in $ld_switch_site $ld_switch_x_site; do | |
| 6424 case "$arg" in -L* ) | |
| 6425 dir=`echo "$arg" | sed 's/^-L//'` | |
| 6426 if test -n "`ls ${dir}/*.s[ol] 2>/dev/null`"; then | |
| 6427 test -n "$runpath" && runpath="${runpath}:" | |
| 6428 runpath="${runpath}${dir}" | |
| 6429 fi | |
| 6430 ;; | |
| 6431 esac | |
| 6432 done | |
| 6433 case "$canonical" in *-solaris2.[1-4]* ) | |
| 6434 test "$need_motif" = "yes" && runpath="${runpath}:/opt/SUNWdt/lib" ;; | |
| 6435 esac | |
| 6436 fi | |
| 6437 | |
| 6438 if test -n "$runpath"; then | |
| 6439 ld_switch_run="${dash_r}${runpath}" | |
| 6440 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" | |
| 6441 fi | |
| 6442 fi | |
| 6443 | |
| 6444 fi | |
| 6445 | |
| 6446 for ac_func in acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid | |
| 6176 do | 6447 do |
| 6177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6178 echo "configure:6179: checking for $ac_func" >&5 | 6449 echo "configure:6450: checking for $ac_func" >&5 |
| 6179 | 6450 |
| 6180 cat > conftest.$ac_ext <<EOF | 6451 cat > conftest.$ac_ext <<EOF |
| 6181 #line 6182 "configure" | 6452 #line 6453 "configure" |
| 6182 #include "confdefs.h" | 6453 #include "confdefs.h" |
| 6183 /* System header to define __stub macros and hopefully few prototypes, | 6454 /* System header to define __stub macros and hopefully few prototypes, |
| 6184 which can conflict with char $ac_func(); below. */ | 6455 which can conflict with char $ac_func(); below. */ |
| 6185 #include <assert.h> | 6456 #include <assert.h> |
| 6186 /* Override any gcc2 internal prototype to avoid an error. */ | 6457 /* Override any gcc2 internal prototype to avoid an error. */ |
| 6199 $ac_func(); | 6470 $ac_func(); |
| 6200 #endif | 6471 #endif |
| 6201 | 6472 |
| 6202 ; return 0; } | 6473 ; return 0; } |
| 6203 EOF | 6474 EOF |
| 6204 if { (eval echo configure:6205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6475 if { (eval echo configure:6476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6205 rm -rf conftest* | 6476 rm -rf conftest* |
| 6206 eval "ac_cv_func_$ac_func=yes" | 6477 eval "ac_cv_func_$ac_func=yes" |
| 6207 else | 6478 else |
| 6208 echo "configure: failed program was:" >&5 | 6479 echo "configure: failed program was:" >&5 |
| 6209 cat conftest.$ac_ext >&5 | 6480 cat conftest.$ac_ext >&5 |
| 6227 echo "$ac_t""no" 1>&6 | 6498 echo "$ac_t""no" 1>&6 |
| 6228 fi | 6499 fi |
| 6229 done | 6500 done |
| 6230 | 6501 |
| 6231 | 6502 |
| 6232 test "$ac_cv_func_realpath" = "yes" && extra_objs="$extra_objs realpath.o" | 6503 |
| 6504 case "$opsys" in | |
| 6505 linux* | decosf4-0* | aix4* ) extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then | |
| 6506 echo " xemacs will be linked with \"realpath.o\"" | |
| 6507 fi ;; | |
| 6508 * ) | |
| 6509 for ac_func in realpath | |
| 6510 do | |
| 6511 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
| 6512 echo "configure:6513: checking for $ac_func" >&5 | |
| 6513 | |
| 6514 cat > conftest.$ac_ext <<EOF | |
| 6515 #line 6516 "configure" | |
| 6516 #include "confdefs.h" | |
| 6517 /* System header to define __stub macros and hopefully few prototypes, | |
| 6518 which can conflict with char $ac_func(); below. */ | |
| 6519 #include <assert.h> | |
| 6520 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 6521 /* We use char because int might match the return type of a gcc2 | |
| 6522 builtin and then its argument prototype would still apply. */ | |
| 6523 char $ac_func(); | |
| 6524 | |
| 6525 int main() { | |
| 6526 | |
| 6527 /* The GNU C library defines this for functions which it implements | |
| 6528 to always fail with ENOSYS. Some functions are actually named | |
| 6529 something starting with __ and the normal name is an alias. */ | |
| 6530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 6531 choke me | |
| 6532 #else | |
| 6533 $ac_func(); | |
| 6534 #endif | |
| 6535 | |
| 6536 ; return 0; } | |
| 6537 EOF | |
| 6538 if { (eval echo configure:6539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 6539 rm -rf conftest* | |
| 6540 eval "ac_cv_func_$ac_func=yes" | |
| 6541 else | |
| 6542 echo "configure: failed program was:" >&5 | |
| 6543 cat conftest.$ac_ext >&5 | |
| 6544 rm -rf conftest* | |
| 6545 eval "ac_cv_func_$ac_func=no" | |
| 6546 fi | |
| 6547 rm -f conftest* | |
| 6548 | |
| 6549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
| 6550 echo "$ac_t""yes" 1>&6 | |
| 6551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
| 6552 { test "$extra_verbose" = "yes" && cat << EOF | |
| 6553 Defining $ac_tr_func | |
| 6554 EOF | |
| 6555 cat >> confdefs.h <<EOF | |
| 6556 #define $ac_tr_func 1 | |
| 6557 EOF | |
| 6558 } | |
| 6559 | |
| 6560 else | |
| 6561 echo "$ac_t""no" 1>&6 | |
| 6562 fi | |
| 6563 done | |
| 6564 | |
| 6565 test "$ac_cv_func_realpath" != "yes" && extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then | |
| 6566 echo " xemacs will be linked with \"realpath.o\"" | |
| 6567 fi ;; | |
| 6568 esac | |
| 6569 | |
| 6570 test "$with_mocklisp" = "yes" && extra_objs="$extra_objs mocklisp.o" && if test "$extra_verbose" = "yes"; then | |
| 6571 echo " xemacs will be linked with \"mocklisp.o\"" | |
| 6572 fi | |
| 6233 | 6573 |
| 6234 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 6574 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
| 6235 echo "configure:6236: checking whether netdb declares h_errno" >&5 | 6575 echo "configure:6576: checking whether netdb declares h_errno" >&5 |
| 6236 cat > conftest.$ac_ext <<EOF | 6576 cat > conftest.$ac_ext <<EOF |
| 6237 #line 6238 "configure" | 6577 #line 6578 "configure" |
| 6238 #include "confdefs.h" | 6578 #include "confdefs.h" |
| 6239 #include <netdb.h> | 6579 #include <netdb.h> |
| 6240 int main() { | 6580 int main() { |
| 6241 return h_errno; | 6581 return h_errno; |
| 6242 ; return 0; } | 6582 ; return 0; } |
| 6243 EOF | 6583 EOF |
| 6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6584 if { (eval echo configure:6585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6245 rm -rf conftest* | 6585 rm -rf conftest* |
| 6246 echo "$ac_t""yes" 1>&6 | 6586 echo "$ac_t""yes" 1>&6 |
| 6247 { test "$extra_verbose" = "yes" && cat << \EOF | 6587 { test "$extra_verbose" = "yes" && cat << \EOF |
| 6248 Defining HAVE_H_ERRNO | 6588 Defining HAVE_H_ERRNO |
| 6249 EOF | 6589 EOF |
| 6259 echo "$ac_t""no" 1>&6 | 6599 echo "$ac_t""no" 1>&6 |
| 6260 fi | 6600 fi |
| 6261 rm -f conftest* | 6601 rm -f conftest* |
| 6262 | 6602 |
| 6263 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 | 6603 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 |
| 6264 echo "configure:6265: checking for sigsetjmp" >&5 | 6604 echo "configure:6605: checking for sigsetjmp" >&5 |
| 6265 cat > conftest.$ac_ext <<EOF | 6605 cat > conftest.$ac_ext <<EOF |
| 6266 #line 6267 "configure" | 6606 #line 6607 "configure" |
| 6267 #include "confdefs.h" | 6607 #include "confdefs.h" |
| 6268 #include <setjmp.h> | 6608 #include <setjmp.h> |
| 6269 int main() { | 6609 int main() { |
| 6270 sigjmp_buf bar; sigsetjmp (bar, 0); | 6610 sigjmp_buf bar; sigsetjmp (bar, 0); |
| 6271 ; return 0; } | 6611 ; return 0; } |
| 6272 EOF | 6612 EOF |
| 6273 if { (eval echo configure:6274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6613 if { (eval echo configure:6614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6274 rm -rf conftest* | 6614 rm -rf conftest* |
| 6275 echo "$ac_t""yes" 1>&6 | 6615 echo "$ac_t""yes" 1>&6 |
| 6276 { test "$extra_verbose" = "yes" && cat << \EOF | 6616 { test "$extra_verbose" = "yes" && cat << \EOF |
| 6277 Defining HAVE_SIGSETJMP | 6617 Defining HAVE_SIGSETJMP |
| 6278 EOF | 6618 EOF |
| 6288 echo "$ac_t""no" 1>&6 | 6628 echo "$ac_t""no" 1>&6 |
| 6289 fi | 6629 fi |
| 6290 rm -f conftest* | 6630 rm -f conftest* |
| 6291 | 6631 |
| 6292 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 6632 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
| 6293 echo "configure:6294: checking whether localtime caches TZ" >&5 | 6633 echo "configure:6634: checking whether localtime caches TZ" >&5 |
| 6294 | 6634 |
| 6295 if test "$ac_cv_func_tzset" = "yes"; then | 6635 if test "$ac_cv_func_tzset" = "yes"; then |
| 6296 cat > conftest.$ac_ext <<EOF | 6636 cat > conftest.$ac_ext <<EOF |
| 6297 #line 6298 "configure" | 6637 #line 6638 "configure" |
| 6298 #include "confdefs.h" | 6638 #include "confdefs.h" |
| 6299 #include <time.h> | 6639 #include <time.h> |
| 6300 #if STDC_HEADERS | 6640 #if STDC_HEADERS |
| 6301 # include <stdlib.h> | 6641 # include <stdlib.h> |
| 6302 #endif | 6642 #endif |
| 6327 if (localtime (&now)->tm_hour != hour_unset) | 6667 if (localtime (&now)->tm_hour != hour_unset) |
| 6328 exit (1); | 6668 exit (1); |
| 6329 exit (0); | 6669 exit (0); |
| 6330 } | 6670 } |
| 6331 EOF | 6671 EOF |
| 6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | 6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
| 6333 then | 6673 then |
| 6334 emacs_cv_localtime_cache=no | 6674 emacs_cv_localtime_cache=no |
| 6335 else | 6675 else |
| 6336 echo "configure: failed program was:" >&5 | 6676 echo "configure: failed program was:" >&5 |
| 6337 cat conftest.$ac_ext >&5 | 6677 cat conftest.$ac_ext >&5 |
| 6356 | 6696 |
| 6357 fi | 6697 fi |
| 6358 | 6698 |
| 6359 if test "$HAVE_TIMEVAL" = "yes"; then | 6699 if test "$HAVE_TIMEVAL" = "yes"; then |
| 6360 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 | 6700 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 |
| 6361 echo "configure:6362: checking whether gettimeofday cannot accept two arguments" >&5 | 6701 echo "configure:6702: checking whether gettimeofday cannot accept two arguments" >&5 |
| 6362 cat > conftest.$ac_ext <<EOF | 6702 cat > conftest.$ac_ext <<EOF |
| 6363 #line 6364 "configure" | 6703 #line 6704 "configure" |
| 6364 #include "confdefs.h" | 6704 #include "confdefs.h" |
| 6365 | 6705 |
| 6366 #ifdef TIME_WITH_SYS_TIME | 6706 #ifdef TIME_WITH_SYS_TIME |
| 6367 #include <sys/time.h> | 6707 #include <sys/time.h> |
| 6368 #include <time.h> | 6708 #include <time.h> |
| 6380 struct timezone dummy; | 6720 struct timezone dummy; |
| 6381 gettimeofday (&time, &dummy); | 6721 gettimeofday (&time, &dummy); |
| 6382 | 6722 |
| 6383 ; return 0; } | 6723 ; return 0; } |
| 6384 EOF | 6724 EOF |
| 6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6386 rm -rf conftest* | 6726 rm -rf conftest* |
| 6387 echo "$ac_t""no" 1>&6 | 6727 echo "$ac_t""no" 1>&6 |
| 6388 else | 6728 else |
| 6389 echo "configure: failed program was:" >&5 | 6729 echo "configure: failed program was:" >&5 |
| 6390 cat conftest.$ac_ext >&5 | 6730 cat conftest.$ac_ext >&5 |
| 6402 rm -f conftest* | 6742 rm -f conftest* |
| 6403 fi | 6743 fi |
| 6404 | 6744 |
| 6405 | 6745 |
| 6406 echo $ac_n "checking for inline""... $ac_c" 1>&6 | 6746 echo $ac_n "checking for inline""... $ac_c" 1>&6 |
| 6407 echo "configure:6408: checking for inline" >&5 | 6747 echo "configure:6748: checking for inline" >&5 |
| 6408 | 6748 |
| 6409 ac_cv_c_inline=no | 6749 ac_cv_c_inline=no |
| 6410 for ac_kw in inline __inline__ __inline; do | 6750 for ac_kw in inline __inline__ __inline; do |
| 6411 cat > conftest.$ac_ext <<EOF | 6751 cat > conftest.$ac_ext <<EOF |
| 6412 #line 6413 "configure" | 6752 #line 6753 "configure" |
| 6413 #include "confdefs.h" | 6753 #include "confdefs.h" |
| 6414 | 6754 |
| 6415 int main() { | 6755 int main() { |
| 6416 } $ac_kw foo() { | 6756 } $ac_kw foo() { |
| 6417 ; return 0; } | 6757 ; return 0; } |
| 6418 EOF | 6758 EOF |
| 6419 if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6759 if { (eval echo configure:6760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6420 rm -rf conftest* | 6760 rm -rf conftest* |
| 6421 ac_cv_c_inline=$ac_kw; break | 6761 ac_cv_c_inline=$ac_kw; break |
| 6422 else | 6762 else |
| 6423 echo "configure: failed program was:" >&5 | 6763 echo "configure: failed program was:" >&5 |
| 6424 cat conftest.$ac_ext >&5 | 6764 cat conftest.$ac_ext >&5 |
| 6459 | 6799 |
| 6460 | 6800 |
| 6461 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 6801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6462 # for constant arguments. Useless! | 6802 # for constant arguments. Useless! |
| 6463 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 6803 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
| 6464 echo "configure:6465: checking for working alloca.h" >&5 | 6804 echo "configure:6805: checking for working alloca.h" >&5 |
| 6465 | 6805 |
| 6466 cat > conftest.$ac_ext <<EOF | 6806 cat > conftest.$ac_ext <<EOF |
| 6467 #line 6468 "configure" | 6807 #line 6808 "configure" |
| 6468 #include "confdefs.h" | 6808 #include "confdefs.h" |
| 6469 #include <alloca.h> | 6809 #include <alloca.h> |
| 6470 int main() { | 6810 int main() { |
| 6471 char *p = alloca(2 * sizeof(int)); | 6811 char *p = alloca(2 * sizeof(int)); |
| 6472 ; return 0; } | 6812 ; return 0; } |
| 6473 EOF | 6813 EOF |
| 6474 if { (eval echo configure:6475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6475 rm -rf conftest* | 6815 rm -rf conftest* |
| 6476 ac_cv_header_alloca_h=yes | 6816 ac_cv_header_alloca_h=yes |
| 6477 else | 6817 else |
| 6478 echo "configure: failed program was:" >&5 | 6818 echo "configure: failed program was:" >&5 |
| 6479 cat conftest.$ac_ext >&5 | 6819 cat conftest.$ac_ext >&5 |
| 6493 } | 6833 } |
| 6494 | 6834 |
| 6495 fi | 6835 fi |
| 6496 | 6836 |
| 6497 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 6837 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
| 6498 echo "configure:6499: checking for alloca" >&5 | 6838 echo "configure:6839: checking for alloca" >&5 |
| 6499 | 6839 |
| 6500 cat > conftest.$ac_ext <<EOF | 6840 cat > conftest.$ac_ext <<EOF |
| 6501 #line 6502 "configure" | 6841 #line 6842 "configure" |
| 6502 #include "confdefs.h" | 6842 #include "confdefs.h" |
| 6503 | 6843 |
| 6504 #ifdef __GNUC__ | 6844 #ifdef __GNUC__ |
| 6505 # define alloca __builtin_alloca | 6845 # define alloca __builtin_alloca |
| 6506 #else | 6846 #else |
| 6519 | 6859 |
| 6520 int main() { | 6860 int main() { |
| 6521 char *p = (char *) alloca(1); | 6861 char *p = (char *) alloca(1); |
| 6522 ; return 0; } | 6862 ; return 0; } |
| 6523 EOF | 6863 EOF |
| 6524 if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6864 if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6525 rm -rf conftest* | 6865 rm -rf conftest* |
| 6526 ac_cv_func_alloca_works=yes | 6866 ac_cv_func_alloca_works=yes |
| 6527 else | 6867 else |
| 6528 echo "configure: failed program was:" >&5 | 6868 echo "configure: failed program was:" >&5 |
| 6529 cat conftest.$ac_ext >&5 | 6869 cat conftest.$ac_ext >&5 |
| 6558 EOF | 6898 EOF |
| 6559 } | 6899 } |
| 6560 | 6900 |
| 6561 | 6901 |
| 6562 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 6902 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
| 6563 echo "configure:6564: checking whether alloca needs Cray hooks" >&5 | 6903 echo "configure:6904: checking whether alloca needs Cray hooks" >&5 |
| 6564 | 6904 |
| 6565 cat > conftest.$ac_ext <<EOF | 6905 cat > conftest.$ac_ext <<EOF |
| 6566 #line 6567 "configure" | 6906 #line 6907 "configure" |
| 6567 #include "confdefs.h" | 6907 #include "confdefs.h" |
| 6568 #if defined(CRAY) && ! defined(CRAY2) | 6908 #if defined(CRAY) && ! defined(CRAY2) |
| 6569 webecray | 6909 webecray |
| 6570 #else | 6910 #else |
| 6571 wenotbecray | 6911 wenotbecray |
| 6585 | 6925 |
| 6586 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 6926 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
| 6587 if test $ac_cv_os_cray = yes; then | 6927 if test $ac_cv_os_cray = yes; then |
| 6588 for ac_func in _getb67 GETB67 getb67; do | 6928 for ac_func in _getb67 GETB67 getb67; do |
| 6589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6590 echo "configure:6591: checking for $ac_func" >&5 | 6930 echo "configure:6931: checking for $ac_func" >&5 |
| 6591 | 6931 |
| 6592 cat > conftest.$ac_ext <<EOF | 6932 cat > conftest.$ac_ext <<EOF |
| 6593 #line 6594 "configure" | 6933 #line 6934 "configure" |
| 6594 #include "confdefs.h" | 6934 #include "confdefs.h" |
| 6595 /* System header to define __stub macros and hopefully few prototypes, | 6935 /* System header to define __stub macros and hopefully few prototypes, |
| 6596 which can conflict with char $ac_func(); below. */ | 6936 which can conflict with char $ac_func(); below. */ |
| 6597 #include <assert.h> | 6937 #include <assert.h> |
| 6598 /* Override any gcc2 internal prototype to avoid an error. */ | 6938 /* Override any gcc2 internal prototype to avoid an error. */ |
| 6611 $ac_func(); | 6951 $ac_func(); |
| 6612 #endif | 6952 #endif |
| 6613 | 6953 |
| 6614 ; return 0; } | 6954 ; return 0; } |
| 6615 EOF | 6955 EOF |
| 6616 if { (eval echo configure:6617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 6956 if { (eval echo configure:6957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 6617 rm -rf conftest* | 6957 rm -rf conftest* |
| 6618 eval "ac_cv_func_$ac_func=yes" | 6958 eval "ac_cv_func_$ac_func=yes" |
| 6619 else | 6959 else |
| 6620 echo "configure: failed program was:" >&5 | 6960 echo "configure: failed program was:" >&5 |
| 6621 cat conftest.$ac_ext >&5 | 6961 cat conftest.$ac_ext >&5 |
| 6641 | 6981 |
| 6642 done | 6982 done |
| 6643 fi | 6983 fi |
| 6644 | 6984 |
| 6645 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 6985 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
| 6646 echo "configure:6647: checking stack direction for C alloca" >&5 | 6986 echo "configure:6987: checking stack direction for C alloca" >&5 |
| 6647 | 6987 |
| 6648 cat > conftest.$ac_ext <<EOF | 6988 cat > conftest.$ac_ext <<EOF |
| 6649 #line 6650 "configure" | 6989 #line 6990 "configure" |
| 6650 #include "confdefs.h" | 6990 #include "confdefs.h" |
| 6651 find_stack_direction () | 6991 find_stack_direction () |
| 6652 { | 6992 { |
| 6653 static char *addr = 0; | 6993 static char *addr = 0; |
| 6654 auto char dummy; | 6994 auto char dummy; |
| 6663 main () | 7003 main () |
| 6664 { | 7004 { |
| 6665 exit (find_stack_direction() < 0); | 7005 exit (find_stack_direction() < 0); |
| 6666 } | 7006 } |
| 6667 EOF | 7007 EOF |
| 6668 if { (eval echo configure:6669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | 7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
| 6669 then | 7009 then |
| 6670 ac_cv_c_stack_direction=1 | 7010 ac_cv_c_stack_direction=1 |
| 6671 else | 7011 else |
| 6672 echo "configure: failed program was:" >&5 | 7012 echo "configure: failed program was:" >&5 |
| 6673 cat conftest.$ac_ext >&5 | 7013 cat conftest.$ac_ext >&5 |
| 6685 EOF | 7025 EOF |
| 6686 } | 7026 } |
| 6687 | 7027 |
| 6688 fi | 7028 fi |
| 6689 | 7029 |
| 6690 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" | 7030 test -n "$ALLOCA" && extra_objs="$extra_objs $ALLOCA" && if test "$extra_verbose" = "yes"; then |
| 7031 echo " xemacs will be linked with \"$ALLOCA\"" | |
| 7032 fi | |
| 6691 | 7033 |
| 6692 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 7034 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
| 6693 echo "configure:6694: checking for pid_t" >&5 | 7035 echo "configure:7036: checking for pid_t" >&5 |
| 6694 | 7036 |
| 6695 cat > conftest.$ac_ext <<EOF | 7037 cat > conftest.$ac_ext <<EOF |
| 6696 #line 6697 "configure" | 7038 #line 7039 "configure" |
| 6697 #include "confdefs.h" | 7039 #include "confdefs.h" |
| 6698 #include <sys/types.h> | 7040 #include <sys/types.h> |
| 6699 #if STDC_HEADERS | 7041 #if STDC_HEADERS |
| 6700 #include <stdlib.h> | 7042 #include <stdlib.h> |
| 6701 #include <stddef.h> | 7043 #include <stddef.h> |
| 6723 | 7065 |
| 6724 fi | 7066 fi |
| 6725 | 7067 |
| 6726 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 7068 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
| 6727 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 7069 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
| 6728 echo "configure:6729: checking for vfork.h" >&5 | 7070 echo "configure:7071: checking for vfork.h" >&5 |
| 6729 | 7071 |
| 6730 cat > conftest.$ac_ext <<EOF | 7072 cat > conftest.$ac_ext <<EOF |
| 6731 #line 6732 "configure" | 7073 #line 7074 "configure" |
| 6732 #include "confdefs.h" | 7074 #include "confdefs.h" |
| 6733 #include <vfork.h> | 7075 #include <vfork.h> |
| 6734 EOF | 7076 EOF |
| 6735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 6736 { (eval echo configure:6737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7078 { (eval echo configure:7079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 6737 ac_err=`grep -v '^ *+' conftest.out` | 7079 ac_err=`grep -v '^ *+' conftest.out` |
| 6738 if test -z "$ac_err"; then | 7080 if test -z "$ac_err"; then |
| 6739 rm -rf conftest* | 7081 rm -rf conftest* |
| 6740 eval "ac_cv_header_$ac_safe=yes" | 7082 eval "ac_cv_header_$ac_safe=yes" |
| 6741 else | 7083 else |
| 6759 else | 7101 else |
| 6760 echo "$ac_t""no" 1>&6 | 7102 echo "$ac_t""no" 1>&6 |
| 6761 fi | 7103 fi |
| 6762 | 7104 |
| 6763 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 7105 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
| 6764 echo "configure:6765: checking for working vfork" >&5 | 7106 echo "configure:7107: checking for working vfork" >&5 |
| 6765 | 7107 |
| 6766 cat > conftest.$ac_ext <<EOF | 7108 cat > conftest.$ac_ext <<EOF |
| 6767 #line 6768 "configure" | 7109 #line 7110 "configure" |
| 6768 #include "confdefs.h" | 7110 #include "confdefs.h" |
| 6769 /* Thanks to Paul Eggert for this test. */ | 7111 /* Thanks to Paul Eggert for this test. */ |
| 6770 #include <stdio.h> | 7112 #include <stdio.h> |
| 6771 #include <sys/types.h> | 7113 #include <sys/types.h> |
| 6772 #include <sys/stat.h> | 7114 #include <sys/stat.h> |
| 6857 || fstat(fileno(stdout), &st) != 0 | 7199 || fstat(fileno(stdout), &st) != 0 |
| 6858 ); | 7200 ); |
| 6859 } | 7201 } |
| 6860 } | 7202 } |
| 6861 EOF | 7203 EOF |
| 6862 if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | 7204 if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
| 6863 then | 7205 then |
| 6864 ac_cv_func_vfork_works=yes | 7206 ac_cv_func_vfork_works=yes |
| 6865 else | 7207 else |
| 6866 echo "configure: failed program was:" >&5 | 7208 echo "configure: failed program was:" >&5 |
| 6867 cat conftest.$ac_ext >&5 | 7209 cat conftest.$ac_ext >&5 |
| 6882 | 7224 |
| 6883 fi | 7225 fi |
| 6884 | 7226 |
| 6885 | 7227 |
| 6886 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 | 7228 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 |
| 6887 echo "configure:6888: checking for working strcoll" >&5 | 7229 echo "configure:7230: checking for working strcoll" >&5 |
| 6888 | 7230 |
| 6889 cat > conftest.$ac_ext <<EOF | 7231 cat > conftest.$ac_ext <<EOF |
| 6890 #line 6891 "configure" | 7232 #line 7233 "configure" |
| 6891 #include "confdefs.h" | 7233 #include "confdefs.h" |
| 6892 #include <string.h> | 7234 #include <string.h> |
| 6893 main () | 7235 main () |
| 6894 { | 7236 { |
| 6895 exit (strcoll ("abc", "def") >= 0 || | 7237 exit (strcoll ("abc", "def") >= 0 || |
| 6896 strcoll ("ABC", "DEF") >= 0 || | 7238 strcoll ("ABC", "DEF") >= 0 || |
| 6897 strcoll ("123", "456") >= 0); | 7239 strcoll ("123", "456") >= 0); |
| 6898 } | 7240 } |
| 6899 EOF | 7241 EOF |
| 6900 if { (eval echo configure:6901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | 7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
| 6901 then | 7243 then |
| 6902 ac_cv_func_strcoll_works=yes | 7244 ac_cv_func_strcoll_works=yes |
| 6903 else | 7245 else |
| 6904 echo "configure: failed program was:" >&5 | 7246 echo "configure: failed program was:" >&5 |
| 6905 cat conftest.$ac_ext >&5 | 7247 cat conftest.$ac_ext >&5 |
| 6919 } | 7261 } |
| 6920 | 7262 |
| 6921 fi | 7263 fi |
| 6922 | 7264 |
| 6923 | 7265 |
| 6924 echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
| 6925 echo "configure:6926: checking size of short" >&5 | |
| 6926 | |
| 6927 cat > conftest.$ac_ext <<EOF | |
| 6928 #line 6929 "configure" | |
| 6929 #include "confdefs.h" | |
| 6930 #include <stdio.h> | |
| 6931 main() | |
| 6932 { | |
| 6933 FILE *f=fopen("conftestval", "w"); | |
| 6934 if (!f) exit(1); | |
| 6935 fprintf(f, "%d\n", sizeof(short)); | |
| 6936 exit(0); | |
| 6937 } | |
| 6938 EOF | |
| 6939 if { (eval echo configure:6940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | |
| 6940 then | |
| 6941 ac_cv_sizeof_short=`cat conftestval` | |
| 6942 else | |
| 6943 echo "configure: failed program was:" >&5 | |
| 6944 cat conftest.$ac_ext >&5 | |
| 6945 rm -fr conftest* | |
| 6946 ac_cv_sizeof_short=0 | |
| 6947 fi | |
| 6948 rm -fr conftest* | |
| 6949 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
| 6950 { test "$extra_verbose" = "yes" && cat << EOF | |
| 6951 Defining SIZEOF_SHORT = $ac_cv_sizeof_short | |
| 6952 EOF | |
| 6953 cat >> confdefs.h <<EOF | |
| 6954 #define SIZEOF_SHORT $ac_cv_sizeof_short | |
| 6955 EOF | |
| 6956 } | |
| 6957 | |
| 6958 | |
| 6959 echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
| 6960 echo "configure:6961: checking size of int" >&5 | |
| 6961 | |
| 6962 cat > conftest.$ac_ext <<EOF | |
| 6963 #line 6964 "configure" | |
| 6964 #include "confdefs.h" | |
| 6965 #include <stdio.h> | |
| 6966 main() | |
| 6967 { | |
| 6968 FILE *f=fopen("conftestval", "w"); | |
| 6969 if (!f) exit(1); | |
| 6970 fprintf(f, "%d\n", sizeof(int)); | |
| 6971 exit(0); | |
| 6972 } | |
| 6973 EOF | |
| 6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | |
| 6975 then | |
| 6976 ac_cv_sizeof_int=`cat conftestval` | |
| 6977 else | |
| 6978 echo "configure: failed program was:" >&5 | |
| 6979 cat conftest.$ac_ext >&5 | |
| 6980 rm -fr conftest* | |
| 6981 ac_cv_sizeof_int=0 | |
| 6982 fi | |
| 6983 rm -fr conftest* | |
| 6984 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
| 6985 { test "$extra_verbose" = "yes" && cat << EOF | |
| 6986 Defining SIZEOF_INT = $ac_cv_sizeof_int | |
| 6987 EOF | |
| 6988 cat >> confdefs.h <<EOF | |
| 6989 #define SIZEOF_INT $ac_cv_sizeof_int | |
| 6990 EOF | |
| 6991 } | |
| 6992 | |
| 6993 | |
| 6994 echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
| 6995 echo "configure:6996: checking size of long" >&5 | |
| 6996 | |
| 6997 cat > conftest.$ac_ext <<EOF | |
| 6998 #line 6999 "configure" | |
| 6999 #include "confdefs.h" | |
| 7000 #include <stdio.h> | |
| 7001 main() | |
| 7002 { | |
| 7003 FILE *f=fopen("conftestval", "w"); | |
| 7004 if (!f) exit(1); | |
| 7005 fprintf(f, "%d\n", sizeof(long)); | |
| 7006 exit(0); | |
| 7007 } | |
| 7008 EOF | |
| 7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | |
| 7010 then | |
| 7011 ac_cv_sizeof_long=`cat conftestval` | |
| 7012 else | |
| 7013 echo "configure: failed program was:" >&5 | |
| 7014 cat conftest.$ac_ext >&5 | |
| 7015 rm -fr conftest* | |
| 7016 ac_cv_sizeof_long=0 | |
| 7017 fi | |
| 7018 rm -fr conftest* | |
| 7019 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
| 7020 { test "$extra_verbose" = "yes" && cat << EOF | |
| 7021 Defining SIZEOF_LONG = $ac_cv_sizeof_long | |
| 7022 EOF | |
| 7023 cat >> confdefs.h <<EOF | |
| 7024 #define SIZEOF_LONG $ac_cv_sizeof_long | |
| 7025 EOF | |
| 7026 } | |
| 7027 | |
| 7028 | |
| 7029 | |
| 7030 for ac_hdr in unistd.h | 7266 for ac_hdr in unistd.h |
| 7031 do | 7267 do |
| 7032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 7033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 7034 echo "configure:7035: checking for $ac_hdr" >&5 | 7270 echo "configure:7271: checking for $ac_hdr" >&5 |
| 7035 | 7271 |
| 7036 cat > conftest.$ac_ext <<EOF | 7272 cat > conftest.$ac_ext <<EOF |
| 7037 #line 7038 "configure" | 7273 #line 7274 "configure" |
| 7038 #include "confdefs.h" | 7274 #include "confdefs.h" |
| 7039 #include <$ac_hdr> | 7275 #include <$ac_hdr> |
| 7040 EOF | 7276 EOF |
| 7041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7042 { (eval echo configure:7043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7278 { (eval echo configure:7279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7043 ac_err=`grep -v '^ *+' conftest.out` | 7279 ac_err=`grep -v '^ *+' conftest.out` |
| 7044 if test -z "$ac_err"; then | 7280 if test -z "$ac_err"; then |
| 7045 rm -rf conftest* | 7281 rm -rf conftest* |
| 7046 eval "ac_cv_header_$ac_safe=yes" | 7282 eval "ac_cv_header_$ac_safe=yes" |
| 7047 else | 7283 else |
| 7069 done | 7305 done |
| 7070 | 7306 |
| 7071 for ac_func in getpagesize | 7307 for ac_func in getpagesize |
| 7072 do | 7308 do |
| 7073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 7074 echo "configure:7075: checking for $ac_func" >&5 | 7310 echo "configure:7311: checking for $ac_func" >&5 |
| 7075 | 7311 |
| 7076 cat > conftest.$ac_ext <<EOF | 7312 cat > conftest.$ac_ext <<EOF |
| 7077 #line 7078 "configure" | 7313 #line 7314 "configure" |
| 7078 #include "confdefs.h" | 7314 #include "confdefs.h" |
| 7079 /* System header to define __stub macros and hopefully few prototypes, | 7315 /* System header to define __stub macros and hopefully few prototypes, |
| 7080 which can conflict with char $ac_func(); below. */ | 7316 which can conflict with char $ac_func(); below. */ |
| 7081 #include <assert.h> | 7317 #include <assert.h> |
| 7082 /* Override any gcc2 internal prototype to avoid an error. */ | 7318 /* Override any gcc2 internal prototype to avoid an error. */ |
| 7095 $ac_func(); | 7331 $ac_func(); |
| 7096 #endif | 7332 #endif |
| 7097 | 7333 |
| 7098 ; return 0; } | 7334 ; return 0; } |
| 7099 EOF | 7335 EOF |
| 7100 if { (eval echo configure:7101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7336 if { (eval echo configure:7337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 7101 rm -rf conftest* | 7337 rm -rf conftest* |
| 7102 eval "ac_cv_func_$ac_func=yes" | 7338 eval "ac_cv_func_$ac_func=yes" |
| 7103 else | 7339 else |
| 7104 echo "configure: failed program was:" >&5 | 7340 echo "configure: failed program was:" >&5 |
| 7105 cat conftest.$ac_ext >&5 | 7341 cat conftest.$ac_ext >&5 |
| 7123 echo "$ac_t""no" 1>&6 | 7359 echo "$ac_t""no" 1>&6 |
| 7124 fi | 7360 fi |
| 7125 done | 7361 done |
| 7126 | 7362 |
| 7127 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 7363 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
| 7128 echo "configure:7129: checking for working mmap" >&5 | 7364 echo "configure:7365: checking for working mmap" >&5 |
| 7129 | 7365 |
| 7130 cat > conftest.$ac_ext <<EOF | 7366 cat > conftest.$ac_ext <<EOF |
| 7131 #line 7132 "configure" | 7367 #line 7368 "configure" |
| 7132 #include "confdefs.h" | 7368 #include "confdefs.h" |
| 7133 | 7369 |
| 7134 /* Thanks to Mike Haertel and Jim Avera for this test. | 7370 /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7135 Here is a matrix of mmap possibilities: | 7371 Here is a matrix of mmap possibilities: |
| 7136 mmap private not fixed | 7372 mmap private not fixed |
| 7266 unlink("conftestmmap"); | 7502 unlink("conftestmmap"); |
| 7267 exit(0); | 7503 exit(0); |
| 7268 } | 7504 } |
| 7269 | 7505 |
| 7270 EOF | 7506 EOF |
| 7271 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null | 7507 if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
| 7272 then | 7508 then |
| 7273 ac_cv_func_mmap_fixed_mapped=yes | 7509 ac_cv_func_mmap_fixed_mapped=yes |
| 7274 else | 7510 else |
| 7275 echo "configure: failed program was:" >&5 | 7511 echo "configure: failed program was:" >&5 |
| 7276 cat conftest.$ac_ext >&5 | 7512 cat conftest.$ac_ext >&5 |
| 7302 EOF | 7538 EOF |
| 7303 } | 7539 } |
| 7304 | 7540 |
| 7305 | 7541 |
| 7306 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 7542 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
| 7307 echo "configure:7308: checking for socket" >&5 | 7543 echo "configure:7544: checking for socket" >&5 |
| 7308 | 7544 |
| 7309 cat > conftest.$ac_ext <<EOF | 7545 cat > conftest.$ac_ext <<EOF |
| 7310 #line 7311 "configure" | 7546 #line 7547 "configure" |
| 7311 #include "confdefs.h" | 7547 #include "confdefs.h" |
| 7312 /* System header to define __stub macros and hopefully few prototypes, | 7548 /* System header to define __stub macros and hopefully few prototypes, |
| 7313 which can conflict with char socket(); below. */ | 7549 which can conflict with char socket(); below. */ |
| 7314 #include <assert.h> | 7550 #include <assert.h> |
| 7315 /* Override any gcc2 internal prototype to avoid an error. */ | 7551 /* Override any gcc2 internal prototype to avoid an error. */ |
| 7328 socket(); | 7564 socket(); |
| 7329 #endif | 7565 #endif |
| 7330 | 7566 |
| 7331 ; return 0; } | 7567 ; return 0; } |
| 7332 EOF | 7568 EOF |
| 7333 if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7569 if { (eval echo configure:7570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 7334 rm -rf conftest* | 7570 rm -rf conftest* |
| 7335 eval "ac_cv_func_socket=yes" | 7571 eval "ac_cv_func_socket=yes" |
| 7336 else | 7572 else |
| 7337 echo "configure: failed program was:" >&5 | 7573 echo "configure: failed program was:" >&5 |
| 7338 cat conftest.$ac_ext >&5 | 7574 cat conftest.$ac_ext >&5 |
| 7343 | 7579 |
| 7344 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | 7580 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
| 7345 echo "$ac_t""yes" 1>&6 | 7581 echo "$ac_t""yes" 1>&6 |
| 7346 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 7582 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
| 7347 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 7583 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
| 7348 echo "configure:7349: checking for netinet/in.h" >&5 | 7584 echo "configure:7585: checking for netinet/in.h" >&5 |
| 7349 | 7585 |
| 7350 cat > conftest.$ac_ext <<EOF | 7586 cat > conftest.$ac_ext <<EOF |
| 7351 #line 7352 "configure" | 7587 #line 7588 "configure" |
| 7352 #include "confdefs.h" | 7588 #include "confdefs.h" |
| 7353 #include <netinet/in.h> | 7589 #include <netinet/in.h> |
| 7354 EOF | 7590 EOF |
| 7355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7356 { (eval echo configure:7357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7592 { (eval echo configure:7593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7357 ac_err=`grep -v '^ *+' conftest.out` | 7593 ac_err=`grep -v '^ *+' conftest.out` |
| 7358 if test -z "$ac_err"; then | 7594 if test -z "$ac_err"; then |
| 7359 rm -rf conftest* | 7595 rm -rf conftest* |
| 7360 eval "ac_cv_header_$ac_safe=yes" | 7596 eval "ac_cv_header_$ac_safe=yes" |
| 7361 else | 7597 else |
| 7368 rm -f conftest* | 7604 rm -f conftest* |
| 7369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 7605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 7370 echo "$ac_t""yes" 1>&6 | 7606 echo "$ac_t""yes" 1>&6 |
| 7371 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 7607 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
| 7372 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 7608 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
| 7373 echo "configure:7374: checking for arpa/inet.h" >&5 | 7609 echo "configure:7610: checking for arpa/inet.h" >&5 |
| 7374 | 7610 |
| 7375 cat > conftest.$ac_ext <<EOF | 7611 cat > conftest.$ac_ext <<EOF |
| 7376 #line 7377 "configure" | 7612 #line 7613 "configure" |
| 7377 #include "confdefs.h" | 7613 #include "confdefs.h" |
| 7378 #include <arpa/inet.h> | 7614 #include <arpa/inet.h> |
| 7379 EOF | 7615 EOF |
| 7380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7381 { (eval echo configure:7382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7617 { (eval echo configure:7618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7382 ac_err=`grep -v '^ *+' conftest.out` | 7618 ac_err=`grep -v '^ *+' conftest.out` |
| 7383 if test -z "$ac_err"; then | 7619 if test -z "$ac_err"; then |
| 7384 rm -rf conftest* | 7620 rm -rf conftest* |
| 7385 eval "ac_cv_header_$ac_safe=yes" | 7621 eval "ac_cv_header_$ac_safe=yes" |
| 7386 else | 7622 else |
| 7401 #define HAVE_SOCKETS 1 | 7637 #define HAVE_SOCKETS 1 |
| 7402 EOF | 7638 EOF |
| 7403 } | 7639 } |
| 7404 | 7640 |
| 7405 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 | 7641 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 |
| 7406 echo "configure:7407: checking "for sun_len member in struct sockaddr_un"" >&5 | 7642 echo "configure:7643: checking "for sun_len member in struct sockaddr_un"" >&5 |
| 7407 cat > conftest.$ac_ext <<EOF | 7643 cat > conftest.$ac_ext <<EOF |
| 7408 #line 7409 "configure" | 7644 #line 7645 "configure" |
| 7409 #include "confdefs.h" | 7645 #include "confdefs.h" |
| 7410 | 7646 |
| 7411 #include <sys/types.h> | 7647 #include <sys/types.h> |
| 7412 #include <sys/socket.h> | 7648 #include <sys/socket.h> |
| 7413 #include <sys/un.h> | 7649 #include <sys/un.h> |
| 7414 | 7650 |
| 7415 int main() { | 7651 int main() { |
| 7416 static struct sockaddr_un x; x.sun_len = 1; | 7652 static struct sockaddr_un x; x.sun_len = 1; |
| 7417 ; return 0; } | 7653 ; return 0; } |
| 7418 EOF | 7654 EOF |
| 7419 if { (eval echo configure:7420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7655 if { (eval echo configure:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 7420 rm -rf conftest* | 7656 rm -rf conftest* |
| 7421 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | 7657 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF |
| 7422 Defining HAVE_SOCKADDR_SUN_LEN | 7658 Defining HAVE_SOCKADDR_SUN_LEN |
| 7423 EOF | 7659 EOF |
| 7424 cat >> confdefs.h <<\EOF | 7660 cat >> confdefs.h <<\EOF |
| 7445 echo "$ac_t""no" 1>&6 | 7681 echo "$ac_t""no" 1>&6 |
| 7446 fi | 7682 fi |
| 7447 | 7683 |
| 7448 | 7684 |
| 7449 echo $ac_n "checking for msgget""... $ac_c" 1>&6 | 7685 echo $ac_n "checking for msgget""... $ac_c" 1>&6 |
| 7450 echo "configure:7451: checking for msgget" >&5 | 7686 echo "configure:7687: checking for msgget" >&5 |
| 7451 | 7687 |
| 7452 cat > conftest.$ac_ext <<EOF | 7688 cat > conftest.$ac_ext <<EOF |
| 7453 #line 7454 "configure" | 7689 #line 7690 "configure" |
| 7454 #include "confdefs.h" | 7690 #include "confdefs.h" |
| 7455 /* System header to define __stub macros and hopefully few prototypes, | 7691 /* System header to define __stub macros and hopefully few prototypes, |
| 7456 which can conflict with char msgget(); below. */ | 7692 which can conflict with char msgget(); below. */ |
| 7457 #include <assert.h> | 7693 #include <assert.h> |
| 7458 /* Override any gcc2 internal prototype to avoid an error. */ | 7694 /* Override any gcc2 internal prototype to avoid an error. */ |
| 7471 msgget(); | 7707 msgget(); |
| 7472 #endif | 7708 #endif |
| 7473 | 7709 |
| 7474 ; return 0; } | 7710 ; return 0; } |
| 7475 EOF | 7711 EOF |
| 7476 if { (eval echo configure:7477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7712 if { (eval echo configure:7713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 7477 rm -rf conftest* | 7713 rm -rf conftest* |
| 7478 eval "ac_cv_func_msgget=yes" | 7714 eval "ac_cv_func_msgget=yes" |
| 7479 else | 7715 else |
| 7480 echo "configure: failed program was:" >&5 | 7716 echo "configure: failed program was:" >&5 |
| 7481 cat conftest.$ac_ext >&5 | 7717 cat conftest.$ac_ext >&5 |
| 7486 | 7722 |
| 7487 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then | 7723 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then |
| 7488 echo "$ac_t""yes" 1>&6 | 7724 echo "$ac_t""yes" 1>&6 |
| 7489 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` | 7725 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` |
| 7490 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 | 7726 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 |
| 7491 echo "configure:7492: checking for sys/ipc.h" >&5 | 7727 echo "configure:7728: checking for sys/ipc.h" >&5 |
| 7492 | 7728 |
| 7493 cat > conftest.$ac_ext <<EOF | 7729 cat > conftest.$ac_ext <<EOF |
| 7494 #line 7495 "configure" | 7730 #line 7731 "configure" |
| 7495 #include "confdefs.h" | 7731 #include "confdefs.h" |
| 7496 #include <sys/ipc.h> | 7732 #include <sys/ipc.h> |
| 7497 EOF | 7733 EOF |
| 7498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7499 { (eval echo configure:7500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7735 { (eval echo configure:7736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7500 ac_err=`grep -v '^ *+' conftest.out` | 7736 ac_err=`grep -v '^ *+' conftest.out` |
| 7501 if test -z "$ac_err"; then | 7737 if test -z "$ac_err"; then |
| 7502 rm -rf conftest* | 7738 rm -rf conftest* |
| 7503 eval "ac_cv_header_$ac_safe=yes" | 7739 eval "ac_cv_header_$ac_safe=yes" |
| 7504 else | 7740 else |
| 7511 rm -f conftest* | 7747 rm -f conftest* |
| 7512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 7748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 7513 echo "$ac_t""yes" 1>&6 | 7749 echo "$ac_t""yes" 1>&6 |
| 7514 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` | 7750 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` |
| 7515 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 | 7751 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 |
| 7516 echo "configure:7517: checking for sys/msg.h" >&5 | 7752 echo "configure:7753: checking for sys/msg.h" >&5 |
| 7517 | 7753 |
| 7518 cat > conftest.$ac_ext <<EOF | 7754 cat > conftest.$ac_ext <<EOF |
| 7519 #line 7520 "configure" | 7755 #line 7756 "configure" |
| 7520 #include "confdefs.h" | 7756 #include "confdefs.h" |
| 7521 #include <sys/msg.h> | 7757 #include <sys/msg.h> |
| 7522 EOF | 7758 EOF |
| 7523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7524 { (eval echo configure:7525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7760 { (eval echo configure:7761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7525 ac_err=`grep -v '^ *+' conftest.out` | 7761 ac_err=`grep -v '^ *+' conftest.out` |
| 7526 if test -z "$ac_err"; then | 7762 if test -z "$ac_err"; then |
| 7527 rm -rf conftest* | 7763 rm -rf conftest* |
| 7528 eval "ac_cv_header_$ac_safe=yes" | 7764 eval "ac_cv_header_$ac_safe=yes" |
| 7529 else | 7765 else |
| 7557 fi | 7793 fi |
| 7558 | 7794 |
| 7559 | 7795 |
| 7560 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` | 7796 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` |
| 7561 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 | 7797 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 |
| 7562 echo "configure:7563: checking for dirent.h" >&5 | 7798 echo "configure:7799: checking for dirent.h" >&5 |
| 7563 | 7799 |
| 7564 cat > conftest.$ac_ext <<EOF | 7800 cat > conftest.$ac_ext <<EOF |
| 7565 #line 7566 "configure" | 7801 #line 7802 "configure" |
| 7566 #include "confdefs.h" | 7802 #include "confdefs.h" |
| 7567 #include <dirent.h> | 7803 #include <dirent.h> |
| 7568 EOF | 7804 EOF |
| 7569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7570 { (eval echo configure:7571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7806 { (eval echo configure:7807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7571 ac_err=`grep -v '^ *+' conftest.out` | 7807 ac_err=`grep -v '^ *+' conftest.out` |
| 7572 if test -z "$ac_err"; then | 7808 if test -z "$ac_err"; then |
| 7573 rm -rf conftest* | 7809 rm -rf conftest* |
| 7574 eval "ac_cv_header_$ac_safe=yes" | 7810 eval "ac_cv_header_$ac_safe=yes" |
| 7575 else | 7811 else |
| 7592 | 7828 |
| 7593 else | 7829 else |
| 7594 echo "$ac_t""no" 1>&6 | 7830 echo "$ac_t""no" 1>&6 |
| 7595 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` | 7831 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` |
| 7596 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 | 7832 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 |
| 7597 echo "configure:7598: checking for sys/dir.h" >&5 | 7833 echo "configure:7834: checking for sys/dir.h" >&5 |
| 7598 | 7834 |
| 7599 cat > conftest.$ac_ext <<EOF | 7835 cat > conftest.$ac_ext <<EOF |
| 7600 #line 7601 "configure" | 7836 #line 7837 "configure" |
| 7601 #include "confdefs.h" | 7837 #include "confdefs.h" |
| 7602 #include <sys/dir.h> | 7838 #include <sys/dir.h> |
| 7603 EOF | 7839 EOF |
| 7604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7605 { (eval echo configure:7606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7841 { (eval echo configure:7842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7606 ac_err=`grep -v '^ *+' conftest.out` | 7842 ac_err=`grep -v '^ *+' conftest.out` |
| 7607 if test -z "$ac_err"; then | 7843 if test -z "$ac_err"; then |
| 7608 rm -rf conftest* | 7844 rm -rf conftest* |
| 7609 eval "ac_cv_header_$ac_safe=yes" | 7845 eval "ac_cv_header_$ac_safe=yes" |
| 7610 else | 7846 else |
| 7633 fi | 7869 fi |
| 7634 | 7870 |
| 7635 | 7871 |
| 7636 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 7872 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
| 7637 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 7873 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
| 7638 echo "configure:7639: checking for nlist.h" >&5 | 7874 echo "configure:7875: checking for nlist.h" >&5 |
| 7639 | 7875 |
| 7640 cat > conftest.$ac_ext <<EOF | 7876 cat > conftest.$ac_ext <<EOF |
| 7641 #line 7642 "configure" | 7877 #line 7878 "configure" |
| 7642 #include "confdefs.h" | 7878 #include "confdefs.h" |
| 7643 #include <nlist.h> | 7879 #include <nlist.h> |
| 7644 EOF | 7880 EOF |
| 7645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7646 { (eval echo configure:7647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7882 { (eval echo configure:7883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7647 ac_err=`grep -v '^ *+' conftest.out` | 7883 ac_err=`grep -v '^ *+' conftest.out` |
| 7648 if test -z "$ac_err"; then | 7884 if test -z "$ac_err"; then |
| 7649 rm -rf conftest* | 7885 rm -rf conftest* |
| 7650 eval "ac_cv_header_$ac_safe=yes" | 7886 eval "ac_cv_header_$ac_safe=yes" |
| 7651 else | 7887 else |
| 7689 if test -z "$version"; then | 7925 if test -z "$version"; then |
| 7690 echo "$progname: can't find current emacs version in \"$file\"." >&2 | 7926 echo "$progname: can't find current emacs version in \"$file\"." >&2 |
| 7691 exit 1 | 7927 exit 1 |
| 7692 fi | 7928 fi |
| 7693 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"` | 7929 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([0-9][0-9]*\)).*$/\1/p' "$file"` |
| 7694 test -n "$beta" && version="${version}-b${beta}" | 7930 test -n "$beta" && version="${version}-b${beta}" |
| 7931 { test "$extra_verbose" = "yes" && cat << EOF | |
| 7932 Defining EMACS_VERSION = $version | |
| 7933 EOF | |
| 7934 cat >> confdefs.h <<EOF | |
| 7935 #define EMACS_VERSION $version | |
| 7936 EOF | |
| 7937 } | |
| 7938 | |
| 7939 main_1_id="`echo main_1_xemacs_${version}_${canonical} | sed 'y/.-/__/'`" | |
| 7940 { test "$extra_verbose" = "yes" && cat << EOF | |
| 7941 Defining main_1 = $main_1_id | |
| 7942 EOF | |
| 7943 cat >> confdefs.h <<EOF | |
| 7944 #define main_1 $main_1_id | |
| 7945 EOF | |
| 7946 } | |
| 7947 | |
| 7695 | 7948 |
| 7696 | 7949 |
| 7697 | 7950 |
| 7698 echo "checking "for sound support"" 1>&6 | 7951 echo "checking "for sound support"" 1>&6 |
| 7699 echo "configure:7700: checking "for sound support"" >&5 | 7952 echo "configure:7953: checking "for sound support"" >&5 |
| 7700 case "$with_sound" in | 7953 case "$with_sound" in |
| 7701 native | both ) with_native_sound=yes;; | 7954 native | both ) with_native_sound=yes;; |
| 7702 nas | no ) with_native_sound=no;; | 7955 nas | no ) with_native_sound=no;; |
| 7703 esac | 7956 esac |
| 7704 if test "$with_native_sound" != "no"; then | 7957 if test "$with_native_sound" != "no"; then |
| 7705 if test -d "/usr/demo/SOUND"; then | 7958 if test -d "/usr/demo/SOUND"; then |
| 7706 sound_found="yes" extra_objs="$extra_objs sunplay.o" | 7959 sound_found="yes" |
| 7960 extra_objs="$extra_objs sunplay.o" && if test "$extra_verbose" = "yes"; then | |
| 7961 echo " xemacs will be linked with \"sunplay.o\"" | |
| 7962 fi | |
| 7707 if test -d "/usr/demo/SOUND/include" | 7963 if test -d "/usr/demo/SOUND/include" |
| 7708 then sound_cflags="-I/usr/demo/SOUND/include" | 7964 then sound_cflags="-I/usr/demo/SOUND/include" |
| 7709 else sound_cflags="-I/usr/demo/SOUND" | 7965 else sound_cflags="-I/usr/demo/SOUND" |
| 7710 fi | 7966 fi |
| 7711 if test -z "$native_sound_lib" ; then | 7967 if test -z "$native_sound_lib" ; then |
| 7717 else | 7973 else |
| 7718 case "$canonical" in \ | 7974 case "$canonical" in \ |
| 7719 *-sgi-* ) | 7975 *-sgi-* ) |
| 7720 | 7976 |
| 7721 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 | 7977 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 |
| 7722 echo "configure:7723: checking for ALopenport in -laudio" >&5 | 7978 echo "configure:7979: checking for ALopenport in -laudio" >&5 |
| 7723 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` | 7979 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` |
| 7724 | 7980 |
| 7725 xe_check_libs=" -laudio " | 7981 xe_check_libs=" -laudio " |
| 7726 cat > conftest.$ac_ext <<EOF | 7982 cat > conftest.$ac_ext <<EOF |
| 7727 #line 7728 "configure" | 7983 #line 7984 "configure" |
| 7728 #include "confdefs.h" | 7984 #include "confdefs.h" |
| 7729 /* Override any gcc2 internal prototype to avoid an error. */ | 7985 /* Override any gcc2 internal prototype to avoid an error. */ |
| 7730 /* We use char because int might match the return type of a gcc2 | 7986 /* We use char because int might match the return type of a gcc2 |
| 7731 builtin and then its argument prototype would still apply. */ | 7987 builtin and then its argument prototype would still apply. */ |
| 7732 char ALopenport(); | 7988 char ALopenport(); |
| 7733 | 7989 |
| 7734 int main() { | 7990 int main() { |
| 7735 ALopenport() | 7991 ALopenport() |
| 7736 ; return 0; } | 7992 ; return 0; } |
| 7737 EOF | 7993 EOF |
| 7738 if { (eval echo configure:7739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 7994 if { (eval echo configure:7995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 7739 rm -rf conftest* | 7995 rm -rf conftest* |
| 7740 eval "ac_cv_lib_$ac_lib_var=yes" | 7996 eval "ac_cv_lib_$ac_lib_var=yes" |
| 7741 else | 7997 else |
| 7742 echo "configure: failed program was:" >&5 | 7998 echo "configure: failed program was:" >&5 |
| 7743 cat conftest.$ac_ext >&5 | 7999 cat conftest.$ac_ext >&5 |
| 7745 eval "ac_cv_lib_$ac_lib_var=no" | 8001 eval "ac_cv_lib_$ac_lib_var=no" |
| 7746 fi | 8002 fi |
| 7747 rm -f conftest* | 8003 rm -f conftest* |
| 7748 xe_check_libs="" | 8004 xe_check_libs="" |
| 7749 | 8005 |
| 7750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 7751 echo "$ac_t""yes" 1>&6 | 8007 echo "$ac_t""yes" 1>&6 |
| 7752 native_sound_lib="-laudio" | 8008 native_sound_lib="-laudio" |
| 7753 else | 8009 else |
| 7754 echo "$ac_t""no" 1>&6 | 8010 echo "$ac_t""no" 1>&6 |
| 7755 fi | 8011 fi |
| 7756 | 8012 |
| 7757 | 8013 |
| 7758 if test "$native_sound_lib" = "-laudio"; then | 8014 if test "$native_sound_lib" = "-laudio"; then |
| 7759 sound_found="yes" extra_objs="$extra_objs sgiplay.o" sound_cflags="" | 8015 sound_found="yes" sound_cflags="" |
| 8016 extra_objs="$extra_objs sgiplay.o" && if test "$extra_verbose" = "yes"; then | |
| 8017 echo " xemacs will be linked with \"sgiplay.o\"" | |
| 8018 fi | |
| 7760 fi ;; | 8019 fi ;; |
| 7761 hppa*-hp-hpux* ) | 8020 hppa*-hp-hpux* ) |
| 7762 | 8021 |
| 7763 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 | 8022 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 |
| 7764 echo "configure:7765: checking for AOpenAudio in -lAlib" >&5 | 8023 echo "configure:8024: checking for AOpenAudio in -lAlib" >&5 |
| 7765 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` | 8024 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` |
| 7766 | 8025 |
| 7767 xe_check_libs=" -lAlib " | 8026 xe_check_libs=" -lAlib " |
| 7768 cat > conftest.$ac_ext <<EOF | 8027 cat > conftest.$ac_ext <<EOF |
| 7769 #line 7770 "configure" | 8028 #line 8029 "configure" |
| 7770 #include "confdefs.h" | 8029 #include "confdefs.h" |
| 7771 /* Override any gcc2 internal prototype to avoid an error. */ | 8030 /* Override any gcc2 internal prototype to avoid an error. */ |
| 7772 /* We use char because int might match the return type of a gcc2 | 8031 /* We use char because int might match the return type of a gcc2 |
| 7773 builtin and then its argument prototype would still apply. */ | 8032 builtin and then its argument prototype would still apply. */ |
| 7774 char AOpenAudio(); | 8033 char AOpenAudio(); |
| 7775 | 8034 |
| 7776 int main() { | 8035 int main() { |
| 7777 AOpenAudio() | 8036 AOpenAudio() |
| 7778 ; return 0; } | 8037 ; return 0; } |
| 7779 EOF | 8038 EOF |
| 7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8039 if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 7781 rm -rf conftest* | 8040 rm -rf conftest* |
| 7782 eval "ac_cv_lib_$ac_lib_var=yes" | 8041 eval "ac_cv_lib_$ac_lib_var=yes" |
| 7783 else | 8042 else |
| 7784 echo "configure: failed program was:" >&5 | 8043 echo "configure: failed program was:" >&5 |
| 7785 cat conftest.$ac_ext >&5 | 8044 cat conftest.$ac_ext >&5 |
| 7787 eval "ac_cv_lib_$ac_lib_var=no" | 8046 eval "ac_cv_lib_$ac_lib_var=no" |
| 7788 fi | 8047 fi |
| 7789 rm -f conftest* | 8048 rm -f conftest* |
| 7790 xe_check_libs="" | 8049 xe_check_libs="" |
| 7791 | 8050 |
| 7792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 7793 echo "$ac_t""yes" 1>&6 | 8052 echo "$ac_t""yes" 1>&6 |
| 7794 native_sound_lib="-lAlib" | 8053 native_sound_lib="-lAlib" |
| 7795 else | 8054 else |
| 7796 echo "$ac_t""no" 1>&6 | 8055 echo "$ac_t""no" 1>&6 |
| 7797 fi | 8056 fi |
| 7798 | 8057 |
| 7799 | 8058 |
| 7800 if test "$native_sound_lib" = "-lAlib"; then | 8059 if test "$native_sound_lib" = "-lAlib"; then |
| 7801 sound_found="yes" extra_objs="$extra_objs hpplay.o" | 8060 sound_found="yes" |
| 8061 extra_objs="$extra_objs hpplay.o" && if test "$extra_verbose" = "yes"; then | |
| 8062 echo " xemacs will be linked with \"hpplay.o\"" | |
| 8063 fi | |
| 7802 if test "$with_gcc" = "yes" # Kludge city | 8064 if test "$with_gcc" = "yes" # Kludge city |
| 7803 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples" | 8065 then sound_cflags="-Dconst= -Dvolatile= -I/usr/audio/examples" |
| 7804 else sound_cflags="+e -I/usr/audio/examples" | 8066 else sound_cflags="+e -I/usr/audio/examples" |
| 7805 fi | 8067 fi |
| 7806 fi ;; | 8068 fi ;; |
| 7809 | 8071 |
| 7810 if test -z "$sound_found"; then | 8072 if test -z "$sound_found"; then |
| 7811 for dir in "machine" "sys" "linux"; do | 8073 for dir in "machine" "sys" "linux"; do |
| 7812 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` | 8074 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` |
| 7813 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 | 8075 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 |
| 7814 echo "configure:7815: checking for ${dir}/soundcard.h" >&5 | 8076 echo "configure:8077: checking for ${dir}/soundcard.h" >&5 |
| 7815 | 8077 |
| 7816 cat > conftest.$ac_ext <<EOF | 8078 cat > conftest.$ac_ext <<EOF |
| 7817 #line 7818 "configure" | 8079 #line 8080 "configure" |
| 7818 #include "confdefs.h" | 8080 #include "confdefs.h" |
| 7819 #include <${dir}/soundcard.h> | 8081 #include <${dir}/soundcard.h> |
| 7820 EOF | 8082 EOF |
| 7821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7822 { (eval echo configure:7823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8084 { (eval echo configure:8085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7823 ac_err=`grep -v '^ *+' conftest.out` | 8085 ac_err=`grep -v '^ *+' conftest.out` |
| 7824 if test -z "$ac_err"; then | 8086 if test -z "$ac_err"; then |
| 7825 rm -rf conftest* | 8087 rm -rf conftest* |
| 7826 eval "ac_cv_header_$ac_safe=yes" | 8088 eval "ac_cv_header_$ac_safe=yes" |
| 7827 else | 8089 else |
| 7833 fi | 8095 fi |
| 7834 rm -f conftest* | 8096 rm -f conftest* |
| 7835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 8097 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 7836 echo "$ac_t""yes" 1>&6 | 8098 echo "$ac_t""yes" 1>&6 |
| 7837 sound_found=yes | 8099 sound_found=yes |
| 7838 extra_objs="$extra_objs linuxplay.o" | 8100 extra_objs="$extra_objs linuxplay.o" && if test "$extra_verbose" = "yes"; then |
| 8101 echo " xemacs will be linked with \"linuxplay.o\"" | |
| 8102 fi | |
| 7839 { test "$extra_verbose" = "yes" && cat << EOF | 8103 { test "$extra_verbose" = "yes" && cat << EOF |
| 7840 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h" | 8104 Defining SOUNDCARD_H_PATH = "${dir}/soundcard.h" |
| 7841 EOF | 8105 EOF |
| 7842 cat >> confdefs.h <<EOF | 8106 cat >> confdefs.h <<EOF |
| 7843 #define SOUNDCARD_H_PATH "${dir}/soundcard.h" | 8107 #define SOUNDCARD_H_PATH "${dir}/soundcard.h" |
| 7868 cat >> confdefs.h <<\EOF | 8132 cat >> confdefs.h <<\EOF |
| 7869 #define HAVE_NATIVE_SOUND 1 | 8133 #define HAVE_NATIVE_SOUND 1 |
| 7870 EOF | 8134 EOF |
| 7871 } | 8135 } |
| 7872 | 8136 |
| 7873 test -n "$native_sound_lib" && LIBS="$LIBS $native_sound_lib" | 8137 test -n "$native_sound_lib" && LIBS="$native_sound_lib $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$native_sound_lib\" to \$LIBS"; fi |
| 7874 fi | 8138 fi |
| 7875 | 8139 |
| 7876 case "$with_sound" in both | nas ) | 8140 case "$with_sound" in both | nas ) |
| 7877 { test "$extra_verbose" = "yes" && cat << \EOF | 8141 { test "$extra_verbose" = "yes" && cat << \EOF |
| 7878 Defining HAVE_NAS_SOUND | 8142 Defining HAVE_NAS_SOUND |
| 7880 cat >> confdefs.h <<\EOF | 8144 cat >> confdefs.h <<\EOF |
| 7881 #define HAVE_NAS_SOUND 1 | 8145 #define HAVE_NAS_SOUND 1 |
| 7882 EOF | 8146 EOF |
| 7883 } | 8147 } |
| 7884 | 8148 |
| 7885 extra_objs="$extra_objs nas.o" | 8149 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then |
| 7886 LIBS="$LIBS -laudio" | 8150 echo " xemacs will be linked with \"nas.o\"" |
| 8151 fi | |
| 8152 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi | |
| 7887 cat > conftest.$ac_ext <<EOF | 8153 cat > conftest.$ac_ext <<EOF |
| 7888 #line 7889 "configure" | 8154 #line 8155 "configure" |
| 7889 #include "confdefs.h" | 8155 #include "confdefs.h" |
| 7890 #include <audio/Xtutil.h> | 8156 #include <audio/Xtutil.h> |
| 7891 EOF | 8157 EOF |
| 7892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 8158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7893 egrep "AuXtErrorJump" >/dev/null 2>&1; then | 8159 egrep "AuXtErrorJump" >/dev/null 2>&1; then |
| 7906 rm -f conftest* | 8172 rm -f conftest* |
| 7907 | 8173 |
| 7908 esac | 8174 esac |
| 7909 | 8175 |
| 7910 | 8176 |
| 7911 | |
| 7912 | |
| 7913 echo "checking "how to do terminal I/O"" 1>&6 | |
| 7914 echo "configure:7915: checking "how to do terminal I/O"" >&5 | |
| 7915 | |
| 7916 test -z "$with_tty" && with_tty=yes | 8177 test -z "$with_tty" && with_tty=yes |
| 7917 | 8178 |
| 7918 if test "$with_tty" = "yes" ; then | 8179 if test "$with_tty" = "yes" ; then |
| 8180 echo "checking for TTY-related features" 1>&6 | |
| 8181 echo "configure:8182: checking for TTY-related features" >&5 | |
| 7919 { test "$extra_verbose" = "yes" && cat << \EOF | 8182 { test "$extra_verbose" = "yes" && cat << \EOF |
| 7920 Defining HAVE_TTY | 8183 Defining HAVE_TTY |
| 7921 EOF | 8184 EOF |
| 7922 cat >> confdefs.h <<\EOF | 8185 cat >> confdefs.h <<\EOF |
| 7923 #define HAVE_TTY 1 | 8186 #define HAVE_TTY 1 |
| 7924 EOF | 8187 EOF |
| 7925 } | 8188 } |
| 7926 | 8189 |
| 8190 extra_objs="$extra_objs console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o" && if test "$extra_verbose" = "yes"; then | |
| 8191 echo " xemacs will be linked with \"console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o\"" | |
| 8192 fi | |
| 7927 | 8193 |
| 7928 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` | 8194 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` |
| 7929 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 | 8195 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 |
| 7930 echo "configure:7931: checking for termios.h" >&5 | 8196 echo "configure:8197: checking for termios.h" >&5 |
| 7931 | 8197 |
| 7932 cat > conftest.$ac_ext <<EOF | 8198 cat > conftest.$ac_ext <<EOF |
| 7933 #line 7934 "configure" | 8199 #line 8200 "configure" |
| 7934 #include "confdefs.h" | 8200 #include "confdefs.h" |
| 7935 #include <termios.h> | 8201 #include <termios.h> |
| 7936 EOF | 8202 EOF |
| 7937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7938 { (eval echo configure:7939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8204 { (eval echo configure:8205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7939 ac_err=`grep -v '^ *+' conftest.out` | 8205 ac_err=`grep -v '^ *+' conftest.out` |
| 7940 if test -z "$ac_err"; then | 8206 if test -z "$ac_err"; then |
| 7941 rm -rf conftest* | 8207 rm -rf conftest* |
| 7942 eval "ac_cv_header_$ac_safe=yes" | 8208 eval "ac_cv_header_$ac_safe=yes" |
| 7943 else | 8209 else |
| 7960 | 8226 |
| 7961 else | 8227 else |
| 7962 echo "$ac_t""no" 1>&6 | 8228 echo "$ac_t""no" 1>&6 |
| 7963 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` | 8229 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` |
| 7964 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 | 8230 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 |
| 7965 echo "configure:7966: checking for termio.h" >&5 | 8231 echo "configure:8232: checking for termio.h" >&5 |
| 7966 | 8232 |
| 7967 cat > conftest.$ac_ext <<EOF | 8233 cat > conftest.$ac_ext <<EOF |
| 7968 #line 7969 "configure" | 8234 #line 8235 "configure" |
| 7969 #include "confdefs.h" | 8235 #include "confdefs.h" |
| 7970 #include <termio.h> | 8236 #include <termio.h> |
| 7971 EOF | 8237 EOF |
| 7972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7973 { (eval echo configure:7974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8239 { (eval echo configure:8240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7974 ac_err=`grep -v '^ *+' conftest.out` | 8240 ac_err=`grep -v '^ *+' conftest.out` |
| 7975 if test -z "$ac_err"; then | 8241 if test -z "$ac_err"; then |
| 7976 rm -rf conftest* | 8242 rm -rf conftest* |
| 7977 eval "ac_cv_header_$ac_safe=yes" | 8243 eval "ac_cv_header_$ac_safe=yes" |
| 7978 else | 8244 else |
| 8003 #### Attn: Bill Perry: Remove next line when GPM support is added | 8269 #### Attn: Bill Perry: Remove next line when GPM support is added |
| 8004 test -z "$with_gpm" && with_gpm=no | 8270 test -z "$with_gpm" && with_gpm=no |
| 8005 | 8271 |
| 8006 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` | 8272 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` |
| 8007 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 | 8273 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 |
| 8008 echo "configure:8009: checking for gpm.h" >&5 | 8274 echo "configure:8275: checking for gpm.h" >&5 |
| 8009 | 8275 |
| 8010 cat > conftest.$ac_ext <<EOF | 8276 cat > conftest.$ac_ext <<EOF |
| 8011 #line 8012 "configure" | 8277 #line 8278 "configure" |
| 8012 #include "confdefs.h" | 8278 #include "confdefs.h" |
| 8013 #include <gpm.h> | 8279 #include <gpm.h> |
| 8014 EOF | 8280 EOF |
| 8015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 8016 { (eval echo configure:8017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8282 { (eval echo configure:8283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 8017 ac_err=`grep -v '^ *+' conftest.out` | 8283 ac_err=`grep -v '^ *+' conftest.out` |
| 8018 if test -z "$ac_err"; then | 8284 if test -z "$ac_err"; then |
| 8019 rm -rf conftest* | 8285 rm -rf conftest* |
| 8020 eval "ac_cv_header_$ac_safe=yes" | 8286 eval "ac_cv_header_$ac_safe=yes" |
| 8021 else | 8287 else |
| 8034 with_gpm=no | 8300 with_gpm=no |
| 8035 fi | 8301 fi |
| 8036 } | 8302 } |
| 8037 test -z "$with_gpm" && { | 8303 test -z "$with_gpm" && { |
| 8038 echo $ac_n "checking for connect_to_gpm in -lgpm""... $ac_c" 1>&6 | 8304 echo $ac_n "checking for connect_to_gpm in -lgpm""... $ac_c" 1>&6 |
| 8039 echo "configure:8040: checking for connect_to_gpm in -lgpm" >&5 | 8305 echo "configure:8306: checking for connect_to_gpm in -lgpm" >&5 |
| 8040 ac_lib_var=`echo gpm'_'connect_to_gpm | sed 'y%./+-%__p_%'` | 8306 ac_lib_var=`echo gpm'_'connect_to_gpm | sed 'y%./+-%__p_%'` |
| 8041 | 8307 |
| 8042 xe_check_libs=" -lgpm " | 8308 xe_check_libs=" -lgpm " |
| 8043 cat > conftest.$ac_ext <<EOF | 8309 cat > conftest.$ac_ext <<EOF |
| 8044 #line 8045 "configure" | 8310 #line 8311 "configure" |
| 8045 #include "confdefs.h" | 8311 #include "confdefs.h" |
| 8046 /* Override any gcc2 internal prototype to avoid an error. */ | 8312 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8047 /* We use char because int might match the return type of a gcc2 | 8313 /* We use char because int might match the return type of a gcc2 |
| 8048 builtin and then its argument prototype would still apply. */ | 8314 builtin and then its argument prototype would still apply. */ |
| 8049 char connect_to_gpm(); | 8315 char connect_to_gpm(); |
| 8050 | 8316 |
| 8051 int main() { | 8317 int main() { |
| 8052 connect_to_gpm() | 8318 connect_to_gpm() |
| 8053 ; return 0; } | 8319 ; return 0; } |
| 8054 EOF | 8320 EOF |
| 8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8056 rm -rf conftest* | 8322 rm -rf conftest* |
| 8057 eval "ac_cv_lib_$ac_lib_var=yes" | 8323 eval "ac_cv_lib_$ac_lib_var=yes" |
| 8058 else | 8324 else |
| 8059 echo "configure: failed program was:" >&5 | 8325 echo "configure: failed program was:" >&5 |
| 8060 cat conftest.$ac_ext >&5 | 8326 cat conftest.$ac_ext >&5 |
| 8062 eval "ac_cv_lib_$ac_lib_var=no" | 8328 eval "ac_cv_lib_$ac_lib_var=no" |
| 8063 fi | 8329 fi |
| 8064 rm -f conftest* | 8330 rm -f conftest* |
| 8065 xe_check_libs="" | 8331 xe_check_libs="" |
| 8066 | 8332 |
| 8067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 8068 echo "$ac_t""yes" 1>&6 | 8334 echo "$ac_t""yes" 1>&6 |
| 8069 with_gpm=yes | 8335 with_gpm=yes |
| 8070 else | 8336 else |
| 8071 echo "$ac_t""no" 1>&6 | 8337 echo "$ac_t""no" 1>&6 |
| 8072 with_gpm=no | 8338 with_gpm=no |
| 8080 cat >> confdefs.h <<\EOF | 8346 cat >> confdefs.h <<\EOF |
| 8081 #define HAVE_GPM 1 | 8347 #define HAVE_GPM 1 |
| 8082 EOF | 8348 EOF |
| 8083 } | 8349 } |
| 8084 | 8350 |
| 8085 extra_objs="$extra_objs gpmevent.o" | 8351 extra_objs="$extra_objs gpmevent.o" && if test "$extra_verbose" = "yes"; then |
| 8086 LIBS="$LIBS -lgpm" | 8352 echo " xemacs will be linked with \"gpmevent.o\"" |
| 8353 fi | |
| 8354 LIBS="-lgpm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgpm\" to \$LIBS"; fi | |
| 8087 fi | 8355 fi |
| 8088 | 8356 |
| 8089 if test -z "$with_ncurses"; then | 8357 if test -z "$with_ncurses"; then |
| 8090 | 8358 |
| 8091 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 8359 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 |
| 8092 echo "configure:8093: checking for tparm in -lncurses" >&5 | 8360 echo "configure:8361: checking for tgetent in -lncurses" >&5 |
| 8093 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 8361 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
| 8094 | 8362 |
| 8095 xe_check_libs=" -lncurses " | 8363 xe_check_libs=" -lncurses " |
| 8096 cat > conftest.$ac_ext <<EOF | 8364 cat > conftest.$ac_ext <<EOF |
| 8097 #line 8098 "configure" | 8365 #line 8366 "configure" |
| 8098 #include "confdefs.h" | 8366 #include "confdefs.h" |
| 8099 /* Override any gcc2 internal prototype to avoid an error. */ | 8367 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8100 /* We use char because int might match the return type of a gcc2 | 8368 /* We use char because int might match the return type of a gcc2 |
| 8101 builtin and then its argument prototype would still apply. */ | 8369 builtin and then its argument prototype would still apply. */ |
| 8102 char tparm(); | 8370 char tgetent(); |
| 8103 | 8371 |
| 8104 int main() { | 8372 int main() { |
| 8105 tparm() | 8373 tgetent() |
| 8106 ; return 0; } | 8374 ; return 0; } |
| 8107 EOF | 8375 EOF |
| 8108 if { (eval echo configure:8109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8109 rm -rf conftest* | 8377 rm -rf conftest* |
| 8110 eval "ac_cv_lib_$ac_lib_var=yes" | 8378 eval "ac_cv_lib_$ac_lib_var=yes" |
| 8111 else | 8379 else |
| 8112 echo "configure: failed program was:" >&5 | 8380 echo "configure: failed program was:" >&5 |
| 8113 cat conftest.$ac_ext >&5 | 8381 cat conftest.$ac_ext >&5 |
| 8115 eval "ac_cv_lib_$ac_lib_var=no" | 8383 eval "ac_cv_lib_$ac_lib_var=no" |
| 8116 fi | 8384 fi |
| 8117 rm -f conftest* | 8385 rm -f conftest* |
| 8118 xe_check_libs="" | 8386 xe_check_libs="" |
| 8119 | 8387 |
| 8120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 8121 echo "$ac_t""yes" 1>&6 | 8389 echo "$ac_t""yes" 1>&6 |
| 8122 with_ncurses=yes | 8390 with_ncurses=yes |
| 8123 else | 8391 else |
| 8124 echo "$ac_t""no" 1>&6 | 8392 echo "$ac_t""no" 1>&6 |
| 8125 with_ncurses=no | 8393 with_ncurses=no |
| 8136 EOF | 8404 EOF |
| 8137 } | 8405 } |
| 8138 | 8406 |
| 8139 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 8407 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
| 8140 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 8408 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
| 8141 echo "configure:8142: checking for ncurses/curses.h" >&5 | 8409 echo "configure:8410: checking for ncurses/curses.h" >&5 |
| 8142 | 8410 |
| 8143 cat > conftest.$ac_ext <<EOF | 8411 cat > conftest.$ac_ext <<EOF |
| 8144 #line 8145 "configure" | 8412 #line 8413 "configure" |
| 8145 #include "confdefs.h" | 8413 #include "confdefs.h" |
| 8146 #include <ncurses/curses.h> | 8414 #include <ncurses/curses.h> |
| 8147 EOF | 8415 EOF |
| 8148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 8149 { (eval echo configure:8150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8417 { (eval echo configure:8418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 8150 ac_err=`grep -v '^ *+' conftest.out` | 8418 ac_err=`grep -v '^ *+' conftest.out` |
| 8151 if test -z "$ac_err"; then | 8419 if test -z "$ac_err"; then |
| 8152 rm -rf conftest* | 8420 rm -rf conftest* |
| 8153 eval "ac_cv_header_$ac_safe=yes" | 8421 eval "ac_cv_header_$ac_safe=yes" |
| 8154 else | 8422 else |
| 8166 echo "$ac_t""no" 1>&6 | 8434 echo "$ac_t""no" 1>&6 |
| 8167 fi | 8435 fi |
| 8168 | 8436 |
| 8169 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` | 8437 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` |
| 8170 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 | 8438 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 |
| 8171 echo "configure:8172: checking for ncurses/term.h" >&5 | 8439 echo "configure:8440: checking for ncurses/term.h" >&5 |
| 8172 | 8440 |
| 8173 cat > conftest.$ac_ext <<EOF | 8441 cat > conftest.$ac_ext <<EOF |
| 8174 #line 8175 "configure" | 8442 #line 8443 "configure" |
| 8175 #include "confdefs.h" | 8443 #include "confdefs.h" |
| 8176 #include <ncurses/term.h> | 8444 #include <ncurses/term.h> |
| 8177 EOF | 8445 EOF |
| 8178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 8179 { (eval echo configure:8180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8447 { (eval echo configure:8448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 8180 ac_err=`grep -v '^ *+' conftest.out` | 8448 ac_err=`grep -v '^ *+' conftest.out` |
| 8181 if test -z "$ac_err"; then | 8449 if test -z "$ac_err"; then |
| 8182 rm -rf conftest* | 8450 rm -rf conftest* |
| 8183 eval "ac_cv_header_$ac_safe=yes" | 8451 eval "ac_cv_header_$ac_safe=yes" |
| 8184 else | 8452 else |
| 8194 term_h_path=ncurses/term.h | 8462 term_h_path=ncurses/term.h |
| 8195 else | 8463 else |
| 8196 echo "$ac_t""no" 1>&6 | 8464 echo "$ac_t""no" 1>&6 |
| 8197 fi | 8465 fi |
| 8198 | 8466 |
| 8199 extra_objs="$extra_objs terminfo.o" | 8467 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then |
| 8200 LIBS="$LIBS -lncurses" | 8468 echo " xemacs will be linked with \"terminfo.o\"" |
| 8469 fi | |
| 8470 LIBS="-lncurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lncurses\" to \$LIBS"; fi | |
| 8201 | 8471 |
| 8202 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then | 8472 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then |
| 8203 save_c_switch_site="$c_switch_site" | 8473 save_c_switch_site="$c_switch_site" |
| 8204 c_switch_site="$c_switch_site -I/usr/include/ncurses" | 8474 c_switch_site="$c_switch_site -I/usr/include/ncurses" |
| 8205 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 8475 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
| 8206 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 8476 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
| 8207 echo "configure:8208: checking for ncurses/curses.h" >&5 | 8477 echo "configure:8478: checking for ncurses/curses.h" >&5 |
| 8208 | 8478 |
| 8209 cat > conftest.$ac_ext <<EOF | 8479 cat > conftest.$ac_ext <<EOF |
| 8210 #line 8211 "configure" | 8480 #line 8481 "configure" |
| 8211 #include "confdefs.h" | 8481 #include "confdefs.h" |
| 8212 #include <ncurses/curses.h> | 8482 #include <ncurses/curses.h> |
| 8213 EOF | 8483 EOF |
| 8214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 8215 { (eval echo configure:8216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8485 { (eval echo configure:8486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 8216 ac_err=`grep -v '^ *+' conftest.out` | 8486 ac_err=`grep -v '^ *+' conftest.out` |
| 8217 if test -z "$ac_err"; then | 8487 if test -z "$ac_err"; then |
| 8218 rm -rf conftest* | 8488 rm -rf conftest* |
| 8219 eval "ac_cv_header_$ac_safe=yes" | 8489 eval "ac_cv_header_$ac_safe=yes" |
| 8220 else | 8490 else |
| 8235 if test "$ac_cv_header_ncurses_curses_h" = "yes"; | 8505 if test "$ac_cv_header_ncurses_curses_h" = "yes"; |
| 8236 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2 | 8506 then echo "configure: warning: "Your system has the bogus ncurses include bug."" 1>&2 |
| 8237 else c_switch_site="$save_c_switch_site" | 8507 else c_switch_site="$save_c_switch_site" |
| 8238 fi | 8508 fi |
| 8239 fi | 8509 fi |
| 8240 else | 8510 else if test "$have_terminfo" = "yes"; then |
| 8241 echo $ac_n "checking for tgoto in -ltermlib""... $ac_c" 1>&6 | 8511 extra_objs="$extra_objs terminfo.o" && if test "$extra_verbose" = "yes"; then |
| 8242 echo "configure:8243: checking for tgoto in -ltermlib" >&5 | 8512 echo " xemacs will be linked with \"terminfo.o\"" |
| 8243 ac_lib_var=`echo termlib'_'tgoto | sed 'y%./+-%__p_%'` | 8513 fi |
| 8244 | 8514 if test -n "$libs_termcap"; then |
| 8245 xe_check_libs=" -ltermlib " | 8515 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
| 8246 cat > conftest.$ac_ext <<EOF | 8516 else |
| 8247 #line 8248 "configure" | 8517 for lib in curses termlib termcap; do |
| 8518 | |
| 8519 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 | |
| 8520 echo "configure:8521: checking for tgetent in -l$lib" >&5 | |
| 8521 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` | |
| 8522 | |
| 8523 xe_check_libs=" -l$lib " | |
| 8524 cat > conftest.$ac_ext <<EOF | |
| 8525 #line 8526 "configure" | |
| 8248 #include "confdefs.h" | 8526 #include "confdefs.h" |
| 8249 /* Override any gcc2 internal prototype to avoid an error. */ | 8527 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8250 /* We use char because int might match the return type of a gcc2 | 8528 /* We use char because int might match the return type of a gcc2 |
| 8251 builtin and then its argument prototype would still apply. */ | 8529 builtin and then its argument prototype would still apply. */ |
| 8252 char tgoto(); | 8530 char tgetent(); |
| 8253 | 8531 |
| 8254 int main() { | 8532 int main() { |
| 8255 tgoto() | 8533 tgetent() |
| 8256 ; return 0; } | 8534 ; return 0; } |
| 8257 EOF | 8535 EOF |
| 8258 if { (eval echo configure:8259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8259 rm -rf conftest* | 8537 rm -rf conftest* |
| 8260 eval "ac_cv_lib_$ac_lib_var=yes" | 8538 eval "ac_cv_lib_$ac_lib_var=yes" |
| 8261 else | 8539 else |
| 8262 echo "configure: failed program was:" >&5 | 8540 echo "configure: failed program was:" >&5 |
| 8263 cat conftest.$ac_ext >&5 | 8541 cat conftest.$ac_ext >&5 |
| 8265 eval "ac_cv_lib_$ac_lib_var=no" | 8543 eval "ac_cv_lib_$ac_lib_var=no" |
| 8266 fi | 8544 fi |
| 8267 rm -f conftest* | 8545 rm -f conftest* |
| 8268 xe_check_libs="" | 8546 xe_check_libs="" |
| 8269 | 8547 |
| 8270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 8271 echo "$ac_t""yes" 1>&6 | 8549 echo "$ac_t""yes" 1>&6 |
| 8272 have_libtermlib=yes | 8550 LIBS="-l${lib} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${lib}\" to \$LIBS"; fi; break |
| 8273 else | 8551 else |
| 8274 echo "$ac_t""no" 1>&6 | 8552 echo "$ac_t""no" 1>&6 |
| 8275 have_libtermlib=no | 8553 fi |
| 8276 fi | 8554 |
| 8277 | 8555 |
| 8278 | 8556 done |
| 8279 | 8557 fi |
| 8280 echo $ac_n "checking for tgoto in -ltermcap""... $ac_c" 1>&6 | 8558 else extra_objs="$extra_objs tparam.o" && if test "$extra_verbose" = "yes"; then |
| 8281 echo "configure:8282: checking for tgoto in -ltermcap" >&5 | 8559 echo " xemacs will be linked with \"tparam.o\"" |
| 8282 ac_lib_var=`echo termcap'_'tgoto | sed 'y%./+-%__p_%'` | 8560 fi |
| 8283 | 8561 case "$opsys" in *-hp-hpux* ) libs_termcap="-ltermcap" ;; esac |
| 8284 xe_check_libs=" -ltermcap " | 8562 if test -n "$libs_termcap"; then |
| 8285 cat > conftest.$ac_ext <<EOF | 8563 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
| 8286 #line 8287 "configure" | 8564 else |
| 8565 | |
| 8566 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 | |
| 8567 echo "configure:8568: checking for tgetent in -lcurses" >&5 | |
| 8568 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` | |
| 8569 | |
| 8570 xe_check_libs=" -lcurses " | |
| 8571 cat > conftest.$ac_ext <<EOF | |
| 8572 #line 8573 "configure" | |
| 8287 #include "confdefs.h" | 8573 #include "confdefs.h" |
| 8288 /* Override any gcc2 internal prototype to avoid an error. */ | 8574 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8289 /* We use char because int might match the return type of a gcc2 | 8575 /* We use char because int might match the return type of a gcc2 |
| 8290 builtin and then its argument prototype would still apply. */ | 8576 builtin and then its argument prototype would still apply. */ |
| 8291 char tgoto(); | 8577 char tgetent(); |
| 8292 | 8578 |
| 8293 int main() { | 8579 int main() { |
| 8294 tgoto() | 8580 tgetent() |
| 8295 ; return 0; } | 8581 ; return 0; } |
| 8296 EOF | 8582 EOF |
| 8297 if { (eval echo configure:8298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8298 rm -rf conftest* | 8584 rm -rf conftest* |
| 8299 eval "ac_cv_lib_$ac_lib_var=yes" | 8585 eval "ac_cv_lib_$ac_lib_var=yes" |
| 8300 else | 8586 else |
| 8301 echo "configure: failed program was:" >&5 | 8587 echo "configure: failed program was:" >&5 |
| 8302 cat conftest.$ac_ext >&5 | 8588 cat conftest.$ac_ext >&5 |
| 8304 eval "ac_cv_lib_$ac_lib_var=no" | 8590 eval "ac_cv_lib_$ac_lib_var=no" |
| 8305 fi | 8591 fi |
| 8306 rm -f conftest* | 8592 rm -f conftest* |
| 8307 xe_check_libs="" | 8593 xe_check_libs="" |
| 8308 | 8594 |
| 8309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 8310 echo "$ac_t""yes" 1>&6 | 8596 echo "$ac_t""yes" 1>&6 |
| 8311 have_libtermcap=yes | 8597 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi |
| 8312 else | 8598 else |
| 8313 echo "$ac_t""no" 1>&6 | 8599 echo "$ac_t""no" 1>&6 |
| 8314 have_libtermcap=no | 8600 |
| 8315 fi | 8601 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
| 8316 | 8602 echo "configure:8603: checking for tgetent in -ltermcap" >&5 |
| 8317 | 8603 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
| 8318 | 8604 |
| 8319 echo $ac_n "checking for tparm in -lcurses""... $ac_c" 1>&6 | 8605 xe_check_libs=" -ltermcap " |
| 8320 echo "configure:8321: checking for tparm in -lcurses" >&5 | 8606 cat > conftest.$ac_ext <<EOF |
| 8321 ac_lib_var=`echo curses'_'tparm | sed 'y%./+-%__p_%'` | 8607 #line 8608 "configure" |
| 8322 | |
| 8323 xe_check_libs=" -lcurses " | |
| 8324 cat > conftest.$ac_ext <<EOF | |
| 8325 #line 8326 "configure" | |
| 8326 #include "confdefs.h" | 8608 #include "confdefs.h" |
| 8327 /* Override any gcc2 internal prototype to avoid an error. */ | 8609 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8328 /* We use char because int might match the return type of a gcc2 | 8610 /* We use char because int might match the return type of a gcc2 |
| 8329 builtin and then its argument prototype would still apply. */ | 8611 builtin and then its argument prototype would still apply. */ |
| 8330 char tparm(); | 8612 char tgetent(); |
| 8331 | 8613 |
| 8332 int main() { | 8614 int main() { |
| 8333 tparm() | 8615 tgetent() |
| 8334 ; return 0; } | 8616 ; return 0; } |
| 8335 EOF | 8617 EOF |
| 8336 if { (eval echo configure:8337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8618 if { (eval echo configure:8619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8337 rm -rf conftest* | 8619 rm -rf conftest* |
| 8338 eval "ac_cv_lib_$ac_lib_var=yes" | 8620 eval "ac_cv_lib_$ac_lib_var=yes" |
| 8339 else | 8621 else |
| 8340 echo "configure: failed program was:" >&5 | 8622 echo "configure: failed program was:" >&5 |
| 8341 cat conftest.$ac_ext >&5 | 8623 cat conftest.$ac_ext >&5 |
| 8343 eval "ac_cv_lib_$ac_lib_var=no" | 8625 eval "ac_cv_lib_$ac_lib_var=no" |
| 8344 fi | 8626 fi |
| 8345 rm -f conftest* | 8627 rm -f conftest* |
| 8346 xe_check_libs="" | 8628 xe_check_libs="" |
| 8347 | 8629 |
| 8348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 8349 echo "$ac_t""yes" 1>&6 | 8631 echo "$ac_t""yes" 1>&6 |
| 8350 have_libcurses=yes | 8632 LIBS="-ltermcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltermcap\" to \$LIBS"; fi |
| 8351 else | 8633 else |
| 8352 echo "$ac_t""no" 1>&6 | 8634 echo "$ac_t""no" 1>&6 |
| 8353 have_libcurses=no | 8635 extra_objs="$extra_objs termcap.o" && if test "$extra_verbose" = "yes"; then |
| 8354 fi | 8636 echo " xemacs will be linked with \"termcap.o\"" |
| 8355 | 8637 fi |
| 8356 | 8638 fi |
| 8357 | 8639 |
| 8358 if test "$have_terminfo" = "yes"; then | 8640 |
| 8359 extra_objs="$extra_objs terminfo.o" | 8641 fi |
| 8360 if test -n "$libs_termcap"; then LIBS="$LIBS $libs_termcap" | 8642 |
| 8361 elif test "$have_libcurses" = "yes"; then LIBS="$LIBS -lcurses" | 8643 |
| 8362 elif test "$have_libtermlib" = "yes"; then LIBS="$LIBS -ltermlib" | |
| 8363 elif test "$have_libtermcap" = "yes"; then LIBS="$LIBS -ltermcap" | |
| 8364 fi | |
| 8365 else extra_objs="$extra_objs tparam.o" | |
| 8366 if test -n "$libs_termcap"; then LIBS="$LIBS $libs_termcap" | |
| 8367 elif test "$have_libtermcap" = "yes"; then LIBS="$LIBS -ltermcap" | |
| 8368 elif test "$have_libcurses" = "yes"; then LIBS="$LIBS -lcurses" | |
| 8369 else extra_objs="$extra_objs termcap.o" | |
| 8370 fi | 8644 fi |
| 8371 fi | 8645 fi |
| 8372 fi | 8646 fi |
| 8373 { test "$extra_verbose" = "yes" && cat << EOF | 8647 { test "$extra_verbose" = "yes" && cat << EOF |
| 8374 Defining CURSES_H_PATH = "${curses_h_path-curses.h}" | 8648 Defining CURSES_H_PATH = "${curses_h_path-curses.h}" |
| 8384 cat >> confdefs.h <<EOF | 8658 cat >> confdefs.h <<EOF |
| 8385 #define TERM_H_PATH "${term_h_path-term.h}" | 8659 #define TERM_H_PATH "${term_h_path-term.h}" |
| 8386 EOF | 8660 EOF |
| 8387 } | 8661 } |
| 8388 | 8662 |
| 8389 else # "$with_tty" = "no" | 8663 else for feature in ncurses gpm; do |
| 8390 for feature in ncurses gpm; do | |
| 8391 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | 8664 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
| 8392 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2 | 8665 echo "configure: warning: "--with-${feature} ignored: Not valid without TTY support"" 1>&2 |
| 8393 fi | 8666 fi |
| 8394 eval "with_${feature}=no" | 8667 eval "with_${feature}=no" |
| 8395 done | 8668 done |
| 8396 fi | 8669 fi |
| 8397 | |
| 8398 | 8670 |
| 8399 echo "checking for database support" 1>&6 | 8671 echo "checking for database support" 1>&6 |
| 8400 echo "configure:8401: checking for database support" >&5 | 8672 echo "configure:8673: checking for database support" >&5 |
| 8401 | 8673 |
| 8402 if test "$with_database_gnudbm" != "no" ; then | 8674 if test "$with_database_gnudbm" != "no"; then |
| 8403 | 8675 |
| 8404 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 | 8676 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 |
| 8405 echo "configure:8406: checking for dbm_open in -lgdbm" >&5 | 8677 echo "configure:8678: checking for dbm_open in -lgdbm" >&5 |
| 8406 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` | 8678 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` |
| 8407 | 8679 |
| 8408 xe_check_libs=" -lgdbm " | 8680 xe_check_libs=" -lgdbm " |
| 8409 cat > conftest.$ac_ext <<EOF | 8681 cat > conftest.$ac_ext <<EOF |
| 8410 #line 8411 "configure" | 8682 #line 8683 "configure" |
| 8411 #include "confdefs.h" | 8683 #include "confdefs.h" |
| 8412 /* Override any gcc2 internal prototype to avoid an error. */ | 8684 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8413 /* We use char because int might match the return type of a gcc2 | 8685 /* We use char because int might match the return type of a gcc2 |
| 8414 builtin and then its argument prototype would still apply. */ | 8686 builtin and then its argument prototype would still apply. */ |
| 8415 char dbm_open(); | 8687 char dbm_open(); |
| 8416 | 8688 |
| 8417 int main() { | 8689 int main() { |
| 8418 dbm_open() | 8690 dbm_open() |
| 8419 ; return 0; } | 8691 ; return 0; } |
| 8420 EOF | 8692 EOF |
| 8421 if { (eval echo configure:8422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8693 if { (eval echo configure:8694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8422 rm -rf conftest* | 8694 rm -rf conftest* |
| 8423 eval "ac_cv_lib_$ac_lib_var=yes" | 8695 eval "ac_cv_lib_$ac_lib_var=yes" |
| 8424 else | 8696 else |
| 8425 echo "configure: failed program was:" >&5 | 8697 echo "configure: failed program was:" >&5 |
| 8426 cat conftest.$ac_ext >&5 | 8698 cat conftest.$ac_ext >&5 |
| 8428 eval "ac_cv_lib_$ac_lib_var=no" | 8700 eval "ac_cv_lib_$ac_lib_var=no" |
| 8429 fi | 8701 fi |
| 8430 rm -f conftest* | 8702 rm -f conftest* |
| 8431 xe_check_libs="" | 8703 xe_check_libs="" |
| 8432 | 8704 |
| 8433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 8434 echo "$ac_t""yes" 1>&6 | 8706 echo "$ac_t""yes" 1>&6 |
| 8435 with_database_gnudbm=yes have_libgdbm=yes | 8707 with_database_gnudbm=yes have_libgdbm=yes |
| 8436 else | 8708 else |
| 8437 echo "$ac_t""no" 1>&6 | 8709 echo "$ac_t""no" 1>&6 |
| 8438 fi | 8710 fi |
| 8439 | 8711 |
| 8440 | 8712 |
| 8441 if test "$with_database_gnudbm" != "yes"; then | 8713 if test "$with_database_gnudbm" != "yes"; then |
| 8442 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | 8714 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 |
| 8443 echo "configure:8444: checking for dbm_open" >&5 | 8715 echo "configure:8716: checking for dbm_open" >&5 |
| 8444 | 8716 |
| 8445 cat > conftest.$ac_ext <<EOF | 8717 cat > conftest.$ac_ext <<EOF |
| 8446 #line 8447 "configure" | 8718 #line 8719 "configure" |
| 8447 #include "confdefs.h" | 8719 #include "confdefs.h" |
| 8448 /* System header to define __stub macros and hopefully few prototypes, | 8720 /* System header to define __stub macros and hopefully few prototypes, |
| 8449 which can conflict with char dbm_open(); below. */ | 8721 which can conflict with char dbm_open(); below. */ |
| 8450 #include <assert.h> | 8722 #include <assert.h> |
| 8451 /* Override any gcc2 internal prototype to avoid an error. */ | 8723 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8464 dbm_open(); | 8736 dbm_open(); |
| 8465 #endif | 8737 #endif |
| 8466 | 8738 |
| 8467 ; return 0; } | 8739 ; return 0; } |
| 8468 EOF | 8740 EOF |
| 8469 if { (eval echo configure:8470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8741 if { (eval echo configure:8742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8470 rm -rf conftest* | 8742 rm -rf conftest* |
| 8471 eval "ac_cv_func_dbm_open=yes" | 8743 eval "ac_cv_func_dbm_open=yes" |
| 8472 else | 8744 else |
| 8473 echo "configure: failed program was:" >&5 | 8745 echo "configure: failed program was:" >&5 |
| 8474 cat conftest.$ac_ext >&5 | 8746 cat conftest.$ac_ext >&5 |
| 8483 else | 8755 else |
| 8484 echo "$ac_t""no" 1>&6 | 8756 echo "$ac_t""no" 1>&6 |
| 8485 fi | 8757 fi |
| 8486 | 8758 |
| 8487 fi | 8759 fi |
| 8488 if test "$with_database_gnudbm" = "yes" ; then | 8760 if test "$with_database_gnudbm" = "yes"; then |
| 8489 { test "$extra_verbose" = "yes" && cat << \EOF | 8761 { test "$extra_verbose" = "yes" && cat << \EOF |
| 8490 Defining HAVE_DBM | 8762 Defining HAVE_DBM |
| 8491 EOF | 8763 EOF |
| 8492 cat >> confdefs.h <<\EOF | 8764 cat >> confdefs.h <<\EOF |
| 8493 #define HAVE_DBM 1 | 8765 #define HAVE_DBM 1 |
| 8494 EOF | 8766 EOF |
| 8495 } | 8767 } |
| 8496 | 8768 |
| 8497 test "$have_libgdbm" = "yes" && LIBS="$LIBS -lgdbm" | 8769 test "$have_libgdbm" = "yes" && LIBS="-lgdbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdbm\" to \$LIBS"; fi |
| 8498 with_database_dbm=no | 8770 with_database_dbm=no |
| 8499 else with_database_gnudbm=no | 8771 else with_database_gnudbm=no |
| 8500 fi | 8772 fi |
| 8501 fi | 8773 fi |
| 8502 | 8774 |
| 8503 if test "$with_database_dbm" != "no" ; then | 8775 if test "$with_database_dbm" != "no"; then |
| 8504 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | 8776 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 |
| 8505 echo "configure:8506: checking for dbm_open" >&5 | 8777 echo "configure:8778: checking for dbm_open" >&5 |
| 8506 | 8778 |
| 8507 cat > conftest.$ac_ext <<EOF | 8779 cat > conftest.$ac_ext <<EOF |
| 8508 #line 8509 "configure" | 8780 #line 8781 "configure" |
| 8509 #include "confdefs.h" | 8781 #include "confdefs.h" |
| 8510 /* System header to define __stub macros and hopefully few prototypes, | 8782 /* System header to define __stub macros and hopefully few prototypes, |
| 8511 which can conflict with char dbm_open(); below. */ | 8783 which can conflict with char dbm_open(); below. */ |
| 8512 #include <assert.h> | 8784 #include <assert.h> |
| 8513 /* Override any gcc2 internal prototype to avoid an error. */ | 8785 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8526 dbm_open(); | 8798 dbm_open(); |
| 8527 #endif | 8799 #endif |
| 8528 | 8800 |
| 8529 ; return 0; } | 8801 ; return 0; } |
| 8530 EOF | 8802 EOF |
| 8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8803 if { (eval echo configure:8804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8532 rm -rf conftest* | 8804 rm -rf conftest* |
| 8533 eval "ac_cv_func_dbm_open=yes" | 8805 eval "ac_cv_func_dbm_open=yes" |
| 8534 else | 8806 else |
| 8535 echo "configure: failed program was:" >&5 | 8807 echo "configure: failed program was:" >&5 |
| 8536 cat conftest.$ac_ext >&5 | 8808 cat conftest.$ac_ext >&5 |
| 8547 fi | 8819 fi |
| 8548 | 8820 |
| 8549 if test "$need_libdbm" != "no"; then | 8821 if test "$need_libdbm" != "no"; then |
| 8550 | 8822 |
| 8551 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 | 8823 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 |
| 8552 echo "configure:8553: checking for dbm_open in -ldbm" >&5 | 8824 echo "configure:8825: checking for dbm_open in -ldbm" >&5 |
| 8553 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` | 8825 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` |
| 8554 | 8826 |
| 8555 xe_check_libs=" -ldbm " | 8827 xe_check_libs=" -ldbm " |
| 8556 cat > conftest.$ac_ext <<EOF | 8828 cat > conftest.$ac_ext <<EOF |
| 8557 #line 8558 "configure" | 8829 #line 8830 "configure" |
| 8558 #include "confdefs.h" | 8830 #include "confdefs.h" |
| 8559 /* Override any gcc2 internal prototype to avoid an error. */ | 8831 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8560 /* We use char because int might match the return type of a gcc2 | 8832 /* We use char because int might match the return type of a gcc2 |
| 8561 builtin and then its argument prototype would still apply. */ | 8833 builtin and then its argument prototype would still apply. */ |
| 8562 char dbm_open(); | 8834 char dbm_open(); |
| 8563 | 8835 |
| 8564 int main() { | 8836 int main() { |
| 8565 dbm_open() | 8837 dbm_open() |
| 8566 ; return 0; } | 8838 ; return 0; } |
| 8567 EOF | 8839 EOF |
| 8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8840 if { (eval echo configure:8841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8569 rm -rf conftest* | 8841 rm -rf conftest* |
| 8570 eval "ac_cv_lib_$ac_lib_var=yes" | 8842 eval "ac_cv_lib_$ac_lib_var=yes" |
| 8571 else | 8843 else |
| 8572 echo "configure: failed program was:" >&5 | 8844 echo "configure: failed program was:" >&5 |
| 8573 cat conftest.$ac_ext >&5 | 8845 cat conftest.$ac_ext >&5 |
| 8575 eval "ac_cv_lib_$ac_lib_var=no" | 8847 eval "ac_cv_lib_$ac_lib_var=no" |
| 8576 fi | 8848 fi |
| 8577 rm -f conftest* | 8849 rm -f conftest* |
| 8578 xe_check_libs="" | 8850 xe_check_libs="" |
| 8579 | 8851 |
| 8580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 8581 echo "$ac_t""yes" 1>&6 | 8853 echo "$ac_t""yes" 1>&6 |
| 8582 with_database_dbm=yes need_libdbm=yes | 8854 with_database_dbm=yes need_libdbm=yes |
| 8583 else | 8855 else |
| 8584 echo "$ac_t""no" 1>&6 | 8856 echo "$ac_t""no" 1>&6 |
| 8585 fi | 8857 fi |
| 8586 | 8858 |
| 8587 | 8859 |
| 8588 fi | 8860 fi |
| 8589 if test "$with_database_dbm" = "yes" ; then | 8861 if test "$with_database_dbm" = "yes"; then |
| 8590 { test "$extra_verbose" = "yes" && cat << \EOF | 8862 { test "$extra_verbose" = "yes" && cat << \EOF |
| 8591 Defining HAVE_DBM | 8863 Defining HAVE_DBM |
| 8592 EOF | 8864 EOF |
| 8593 cat >> confdefs.h <<\EOF | 8865 cat >> confdefs.h <<\EOF |
| 8594 #define HAVE_DBM 1 | 8866 #define HAVE_DBM 1 |
| 8595 EOF | 8867 EOF |
| 8596 } | 8868 } |
| 8597 | 8869 |
| 8598 test "$need_libdbm" = "yes" && LIBS="$LIBS -ldbm" | 8870 test "$need_libdbm" = "yes" && LIBS="-ldbm $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldbm\" to \$LIBS"; fi |
| 8599 else with_database_dbm=no | 8871 else with_database_dbm=no |
| 8600 fi | 8872 fi |
| 8601 fi | 8873 fi |
| 8602 | 8874 |
| 8603 if test "$with_database_berkdb" != "no"; then | 8875 if test "$with_database_berkdb" != "no"; then |
| 8604 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 | 8876 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 |
| 8605 echo "configure:8606: checking for dbopen" >&5 | 8877 echo "configure:8878: checking for dbopen" >&5 |
| 8606 | 8878 |
| 8607 cat > conftest.$ac_ext <<EOF | 8879 cat > conftest.$ac_ext <<EOF |
| 8608 #line 8609 "configure" | 8880 #line 8881 "configure" |
| 8609 #include "confdefs.h" | 8881 #include "confdefs.h" |
| 8610 /* System header to define __stub macros and hopefully few prototypes, | 8882 /* System header to define __stub macros and hopefully few prototypes, |
| 8611 which can conflict with char dbopen(); below. */ | 8883 which can conflict with char dbopen(); below. */ |
| 8612 #include <assert.h> | 8884 #include <assert.h> |
| 8613 /* Override any gcc2 internal prototype to avoid an error. */ | 8885 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8626 dbopen(); | 8898 dbopen(); |
| 8627 #endif | 8899 #endif |
| 8628 | 8900 |
| 8629 ; return 0; } | 8901 ; return 0; } |
| 8630 EOF | 8902 EOF |
| 8631 if { (eval echo configure:8632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8903 if { (eval echo configure:8904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8632 rm -rf conftest* | 8904 rm -rf conftest* |
| 8633 eval "ac_cv_func_dbopen=yes" | 8905 eval "ac_cv_func_dbopen=yes" |
| 8634 else | 8906 else |
| 8635 echo "configure: failed program was:" >&5 | 8907 echo "configure: failed program was:" >&5 |
| 8636 cat conftest.$ac_ext >&5 | 8908 cat conftest.$ac_ext >&5 |
| 8647 fi | 8919 fi |
| 8648 | 8920 |
| 8649 if test "$need_libdb" != "no"; then | 8921 if test "$need_libdb" != "no"; then |
| 8650 | 8922 |
| 8651 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 | 8923 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 |
| 8652 echo "configure:8653: checking for dbopen in -ldb" >&5 | 8924 echo "configure:8925: checking for dbopen in -ldb" >&5 |
| 8653 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` | 8925 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` |
| 8654 | 8926 |
| 8655 xe_check_libs=" -ldb " | 8927 xe_check_libs=" -ldb " |
| 8656 cat > conftest.$ac_ext <<EOF | 8928 cat > conftest.$ac_ext <<EOF |
| 8657 #line 8658 "configure" | 8929 #line 8930 "configure" |
| 8658 #include "confdefs.h" | 8930 #include "confdefs.h" |
| 8659 /* Override any gcc2 internal prototype to avoid an error. */ | 8931 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8660 /* We use char because int might match the return type of a gcc2 | 8932 /* We use char because int might match the return type of a gcc2 |
| 8661 builtin and then its argument prototype would still apply. */ | 8933 builtin and then its argument prototype would still apply. */ |
| 8662 char dbopen(); | 8934 char dbopen(); |
| 8663 | 8935 |
| 8664 int main() { | 8936 int main() { |
| 8665 dbopen() | 8937 dbopen() |
| 8666 ; return 0; } | 8938 ; return 0; } |
| 8667 EOF | 8939 EOF |
| 8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 8940 if { (eval echo configure:8941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8669 rm -rf conftest* | 8941 rm -rf conftest* |
| 8670 eval "ac_cv_lib_$ac_lib_var=yes" | 8942 eval "ac_cv_lib_$ac_lib_var=yes" |
| 8671 else | 8943 else |
| 8672 echo "configure: failed program was:" >&5 | 8944 echo "configure: failed program was:" >&5 |
| 8673 cat conftest.$ac_ext >&5 | 8945 cat conftest.$ac_ext >&5 |
| 8675 eval "ac_cv_lib_$ac_lib_var=no" | 8947 eval "ac_cv_lib_$ac_lib_var=no" |
| 8676 fi | 8948 fi |
| 8677 rm -f conftest* | 8949 rm -f conftest* |
| 8678 xe_check_libs="" | 8950 xe_check_libs="" |
| 8679 | 8951 |
| 8680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 8952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 8681 echo "$ac_t""yes" 1>&6 | 8953 echo "$ac_t""yes" 1>&6 |
| 8682 with_database_berkdb=yes need_libdb=yes | 8954 with_database_berkdb=yes need_libdb=yes |
| 8683 else | 8955 else |
| 8684 echo "$ac_t""no" 1>&6 | 8956 echo "$ac_t""no" 1>&6 |
| 8685 fi | 8957 fi |
| 8687 | 8959 |
| 8688 fi | 8960 fi |
| 8689 if test "$with_database_berkdb" = "yes"; then | 8961 if test "$with_database_berkdb" = "yes"; then |
| 8690 for path in "db/db.h" "db.h"; do | 8962 for path in "db/db.h" "db.h"; do |
| 8691 cat > conftest.$ac_ext <<EOF | 8963 cat > conftest.$ac_ext <<EOF |
| 8692 #line 8693 "configure" | 8964 #line 8965 "configure" |
| 8693 #include "confdefs.h" | 8965 #include "confdefs.h" |
| 8694 #ifdef HAVE_INTTYPES_H | 8966 #ifdef HAVE_INTTYPES_H |
| 8695 #define __BIT_TYPES_DEFINED__ | 8967 #define __BIT_TYPES_DEFINED__ |
| 8696 #include <inttypes.h> | 8968 #include <inttypes.h> |
| 8697 typedef uint8_t u_int8_t; | 8969 typedef uint8_t u_int8_t; |
| 8705 | 8977 |
| 8706 int main() { | 8978 int main() { |
| 8707 | 8979 |
| 8708 ; return 0; } | 8980 ; return 0; } |
| 8709 EOF | 8981 EOF |
| 8710 if { (eval echo configure:8711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8982 if { (eval echo configure:8983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 8711 rm -rf conftest* | 8983 rm -rf conftest* |
| 8712 db_h_path="$path"; break | 8984 db_h_path="$path"; break |
| 8713 else | 8985 else |
| 8714 echo "configure: failed program was:" >&5 | 8986 echo "configure: failed program was:" >&5 |
| 8715 cat conftest.$ac_ext >&5 | 8987 cat conftest.$ac_ext >&5 |
| 8733 cat >> confdefs.h <<\EOF | 9005 cat >> confdefs.h <<\EOF |
| 8734 #define HAVE_BERKELEY_DB 1 | 9006 #define HAVE_BERKELEY_DB 1 |
| 8735 EOF | 9007 EOF |
| 8736 } | 9008 } |
| 8737 | 9009 |
| 8738 test "$need_libdb" = "yes" && LIBS="$LIBS -ldb" | 9010 test "$need_libdb" = "yes" && LIBS="-ldb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldb\" to \$LIBS"; fi |
| 8739 else with_database_berkdb=no | 9011 else with_database_berkdb=no |
| 8740 fi | 9012 fi |
| 8741 fi | 9013 fi |
| 8742 | 9014 |
| 8743 if test "$with_database_gnudbm" = "yes" -o \ | 9015 if test "$with_database_gnudbm" = "yes" -o \ |
| 8749 cat >> confdefs.h <<\EOF | 9021 cat >> confdefs.h <<\EOF |
| 8750 #define HAVE_DATABASE 1 | 9022 #define HAVE_DATABASE 1 |
| 8751 EOF | 9023 EOF |
| 8752 } | 9024 } |
| 8753 | 9025 |
| 8754 extra_objs="$extra_objs database.o" | 9026 extra_objs="$extra_objs database.o" && if test "$extra_verbose" = "yes"; then |
| 9027 echo " xemacs will be linked with \"database.o\"" | |
| 9028 fi | |
| 8755 fi | 9029 fi |
| 8756 | 9030 |
| 8757 if test "$with_socks" = "yes"; then | 9031 if test "$with_socks" = "yes"; then |
| 8758 | 9032 |
| 8759 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 | 9033 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 |
| 8760 echo "configure:8761: checking for SOCKSinit in -lsocks" >&5 | 9034 echo "configure:9035: checking for SOCKSinit in -lsocks" >&5 |
| 8761 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` | 9035 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` |
| 8762 | 9036 |
| 8763 xe_check_libs=" -lsocks " | 9037 xe_check_libs=" -lsocks " |
| 8764 cat > conftest.$ac_ext <<EOF | 9038 cat > conftest.$ac_ext <<EOF |
| 8765 #line 8766 "configure" | 9039 #line 9040 "configure" |
| 8766 #include "confdefs.h" | 9040 #include "confdefs.h" |
| 8767 /* Override any gcc2 internal prototype to avoid an error. */ | 9041 /* Override any gcc2 internal prototype to avoid an error. */ |
| 8768 /* We use char because int might match the return type of a gcc2 | 9042 /* We use char because int might match the return type of a gcc2 |
| 8769 builtin and then its argument prototype would still apply. */ | 9043 builtin and then its argument prototype would still apply. */ |
| 8770 char SOCKSinit(); | 9044 char SOCKSinit(); |
| 8771 | 9045 |
| 8772 int main() { | 9046 int main() { |
| 8773 SOCKSinit() | 9047 SOCKSinit() |
| 8774 ; return 0; } | 9048 ; return 0; } |
| 8775 EOF | 9049 EOF |
| 8776 if { (eval echo configure:8777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 9050 if { (eval echo configure:9051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
| 8777 rm -rf conftest* | 9051 rm -rf conftest* |
| 8778 eval "ac_cv_lib_$ac_lib_var=yes" | 9052 eval "ac_cv_lib_$ac_lib_var=yes" |
| 8779 else | 9053 else |
| 8780 echo "configure: failed program was:" >&5 | 9054 echo "configure: failed program was:" >&5 |
| 8781 cat conftest.$ac_ext >&5 | 9055 cat conftest.$ac_ext >&5 |
| 8783 eval "ac_cv_lib_$ac_lib_var=no" | 9057 eval "ac_cv_lib_$ac_lib_var=no" |
| 8784 fi | 9058 fi |
| 8785 rm -f conftest* | 9059 rm -f conftest* |
| 8786 xe_check_libs="" | 9060 xe_check_libs="" |
| 8787 | 9061 |
| 8788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 9062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
| 8789 echo "$ac_t""yes" 1>&6 | 9063 echo "$ac_t""yes" 1>&6 |
| 8790 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 9064 ac_tr_lib=HAVE_LIB`echo socks | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 8791 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 9065 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 8792 { test "$extra_verbose" = "yes" && cat << EOF | 9066 { test "$extra_verbose" = "yes" && cat << EOF |
| 8793 Defining $ac_tr_lib | 9067 Defining $ac_tr_lib |
| 8795 cat >> confdefs.h <<EOF | 9069 cat >> confdefs.h <<EOF |
| 8796 #define $ac_tr_lib 1 | 9070 #define $ac_tr_lib 1 |
| 8797 EOF | 9071 EOF |
| 8798 } | 9072 } |
| 8799 | 9073 |
| 8800 LIBS="-lsocks $LIBS" | 9074 LIBS="-lsocks $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lsocks\" to \$LIBS"; fi |
| 8801 | 9075 |
| 8802 else | 9076 else |
| 8803 echo "$ac_t""no" 1>&6 | 9077 echo "$ac_t""no" 1>&6 |
| 8804 fi | 9078 fi |
| 8805 | 9079 |
| 8821 cat >> confdefs.h <<\EOF | 9095 cat >> confdefs.h <<\EOF |
| 8822 #define USAGE_TRACKING 1 | 9096 #define USAGE_TRACKING 1 |
| 8823 EOF | 9097 EOF |
| 8824 } | 9098 } |
| 8825 | 9099 |
| 8826 LIBS="$LIBS -Bstatic -lut -Bdynamic" | 9100 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi |
| 8827 fi | |
| 8828 | |
| 8829 | |
| 8830 if test "$dynamic" = "no"; then add_runtime_path=no | |
| 8831 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes | |
| 8832 else case "$canonical" in | |
| 8833 *-solaris2.* | *-sgi-irix* ) add_runtime_path=yes ;; | |
| 8834 * ) add_runtime_path=no ;; | |
| 8835 esac | |
| 8836 fi | |
| 8837 | |
| 8838 if test "$add_runtime_path" = "yes"; then | |
| 8839 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 | |
| 8840 echo "configure:8841: checking "for runtime libraries flag"" >&5 | |
| 8841 dash_r="" | |
| 8842 for try_dash_r in "-R" "-R " "-rpath "; do | |
| 8843 xe_check_libs="${try_dash_r}/no/such/file-or-directory" | |
| 8844 cat > conftest.$ac_ext <<EOF | |
| 8845 #line 8846 "configure" | |
| 8846 #include "confdefs.h" | |
| 8847 | |
| 8848 int main() { | |
| 8849 | |
| 8850 ; return 0; } | |
| 8851 EOF | |
| 8852 if { (eval echo configure:8853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
| 8853 rm -rf conftest* | |
| 8854 dash_r="$try_dash_r" | |
| 8855 else | |
| 8856 echo "configure: failed program was:" >&5 | |
| 8857 cat conftest.$ac_ext >&5 | |
| 8858 fi | |
| 8859 rm -f conftest* | |
| 8860 xe_check_libs="" | |
| 8861 test -n "$dash_r" && break | |
| 8862 done | |
| 8863 if test -n "$dash_r"; | |
| 8864 then echo "$ac_t"""\"${dash_r}\""" 1>&6 | |
| 8865 else echo "$ac_t""NONE" 1>&6 | |
| 8866 fi | |
| 8867 fi | |
| 8868 | |
| 8869 if test "$add_runtime_path" = "yes" -a -n "$dash_r"; then | |
| 8870 ld_switch_site="`echo $ld_switch_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 8871 ld_switch_x_site="`echo $ld_switch_x_site | sed \"s/${dash_r}[^ ]*//\"`" | |
| 8872 | |
| 8873 if test -n "$LD_RUN_PATH"; then | |
| 8874 runpath="$LD_RUN_PATH" | |
| 8875 else | |
| 8876 runpath="" | |
| 8877 for arg in $ld_switch_site $ld_switch_x_site; do | |
| 8878 case "$arg" in -L* ) | |
| 8879 dir=`echo $arg | sed 's/^-L//'` | |
| 8880 if test -n "`ls ${dir}/*.so 2>/dev/null`"; then | |
| 8881 test -n "$runpath" && runpath="${runpath}:" | |
| 8882 runpath="${runpath}${dir}" | |
| 8883 fi | |
| 8884 ;; | |
| 8885 esac | |
| 8886 done | |
| 8887 case "$canonical" in *-solaris2.* ) | |
| 8888 test "$have_motif" = "yes" && runpath="${runpath}:/opt/SUNWdt/lib" ;; | |
| 8889 esac | |
| 8890 fi | |
| 8891 | |
| 8892 if test -n "$runpath"; then | |
| 8893 ld_switch_site="$ld_switch_site ${dash_r}${runpath}" | |
| 8894 test "$extra_verbose" = "yes" && echo "Setting runpath to $runpath" | |
| 8895 fi | |
| 8896 fi | 9101 fi |
| 8897 | 9102 |
| 8898 c_switch_general="-DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system" | 9103 c_switch_general="-DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system" |
| 8899 c_switch_window_system="$c_switch_x_site $X_CFLAGS" | 9104 c_switch_window_system="$c_switch_x_site $X_CFLAGS" |
| 8900 c_switch_all="$c_switch_general $c_switch_window_system" | 9105 c_switch_all="$c_switch_general $c_switch_window_system" |
| 8901 ld_switch_general="$ld_switch_site $ld_switch_machine $ld_switch_system" | 9106 ld_switch_general="$ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run" |
| 8902 ld_switch_window_system="$ld_switch_x_site" | 9107 ld_switch_window_system="$ld_switch_x_site" |
| 8903 ld_switch_all="$ld_switch_general $ld_switch_window_system" | 9108 ld_switch_all="$ld_switch_general $ld_switch_window_system" |
| 8904 ld_libs_general="$LIBS $libs_machine $libs_system $libs_standard" | 9109 ld_libs_general="$LIBS $libs_machine $libs_system $libs_standard" |
| 8905 ld_libs_window_system="$X_PRE_LIBS $libs_x $X_EXTRA_LIBS" | 9110 ld_libs_window_system="$X_PRE_LIBS $libs_x $X_EXTRA_LIBS" |
| 8906 ld_libs_all="$ld_libs_window_system $ld_libs_general" | 9111 ld_libs_all="$ld_libs_window_system $ld_libs_general" |
| 8907 | 9112 |
| 9113 SRC_SUBDIR_DEPS="$MAKE_SUBDIR" | |
| 9114 | |
| 9115 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi | |
| 8908 internal_makefile_list="Makefile" | 9116 internal_makefile_list="Makefile" |
| 8909 SUBDIR_MAKEFILES='' | 9117 SUBDIR_MAKEFILES='' |
| 9118 test -d lock || mkdir lock | |
| 8910 for dir in $MAKE_SUBDIR; do | 9119 for dir in $MAKE_SUBDIR; do |
| 9120 test -d "$dir" || mkdir "$dir" | |
| 8911 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $dir/Makefile" | 9121 SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $dir/Makefile" |
| 8912 internal_makefile_list="$internal_makefile_list $dir/Makefile.in" | 9122 internal_makefile_list="$internal_makefile_list $dir/Makefile.in" |
| 8913 done | 9123 done |
| 8914 | 9124 |
| 8915 | 9125 |
| 8916 | 9126 |
| 8917 if test "$extra_verbose" = "yes"; then | 9127 if test "$extra_verbose" = "yes"; then |
| 8918 echo "" | 9128 echo "" |
| 8919 echo "extra_objs = $extra_objs" | 9129 echo "extra_objs = $extra_objs" |
| 8920 echo "c_switch_general = $c_switch_general" | 9130 echo "c_switch_general = $c_switch_general" |
| 8921 echo "c_switch_window_system = $c_switch_window_system" | 9131 echo "c_switch_window_system = $c_switch_window_system" |
| 8922 echo "c_switch_all = $c_switch_all" | 9132 echo "c_switch_all = $c_switch_all" |
| 8923 echo "ld_switch_general = $ld_switch_general" | 9133 echo "ld_switch_general = $ld_switch_general" |
| 8927 echo "ld_libs_window_system = $ld_libs_window_system" | 9137 echo "ld_libs_window_system = $ld_libs_window_system" |
| 8928 echo "ld_libs_all = $ld_libs_all" | 9138 echo "ld_libs_all = $ld_libs_all" |
| 8929 echo "" | 9139 echo "" |
| 8930 fi | 9140 fi |
| 8931 | 9141 |
| 8932 | 9142 if test -f $srcdir/src/gdbinit -a ! -f src/gdbinit ; then |
| 8933 | 9143 echo "creating src/gdbinit" |
| 8934 | 9144 echo "source $srcdir/src/gdbinit" > src/gdbinit |
| 8935 | 9145 fi |
| 8936 | 9146 |
| 8937 | 9147 cat > conftest.$ac_ext <<EOF |
| 8938 | 9148 #line 9149 "configure" |
| 8939 | 9149 #include "confdefs.h" |
| 8940 | 9150 |
| 8941 | 9151 int main() { |
| 8942 | 9152 #ifndef __SUNPRO_C |
| 8943 | 9153 #error No Sun source browser capability |
| 8944 | 9154 #endif |
| 8945 | 9155 |
| 8946 | 9156 ; return 0; } |
| 8947 | 9157 EOF |
| 8948 | 9158 if { (eval echo configure:9159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 8949 | 9159 rm -rf conftest* |
| 8950 | 9160 echo "creating .sbinit" |
| 8951 | 9161 ( echo "# For use with Sun WorkShop's Source browser." |
| 8952 | 9162 echo "# See sbquery(1) and sbinit(4) for more information" |
| 8953 | 9163 for dir in $MAKE_SUBDIR; do echo "import $dir"; done |
| 8954 | 9164 ) > .sbinit |
| 8955 | 9165 |
| 8956 | 9166 else |
| 8957 | 9167 echo "configure: failed program was:" >&5 |
| 8958 | 9168 cat conftest.$ac_ext >&5 |
| 8959 | 9169 fi |
| 8960 | 9170 rm -f conftest* |
| 8961 | 9171 |
| 8962 | 9172 rm -f core |
| 8963 | 9173 |
| 8964 | 9174 |
| 8965 | 9175 |
| 8966 | 9176 |
| 8967 | 9177 |
| 8968 | 9178 |
| 8969 | 9179 |
| 8970 | 9180 |
| 8971 | 9181 |
| 8972 | 9182 |
| 8973 | 9183 |
| 8974 | 9184 |
| 8975 | 9185 |
| 8976 | 9186 |
| 8977 | 9187 |
| 8978 | 9188 |
| 8979 | 9189 |
| 8980 | 9190 |
| 8981 { test "$extra_verbose" = "yes" && cat << EOF | 9191 |
| 8982 Defining EMACS_VERSION = $version | 9192 |
| 8983 EOF | 9193 |
| 8984 cat >> confdefs.h <<EOF | 9194 |
| 8985 #define EMACS_VERSION $version | 9195 |
| 8986 EOF | 9196 |
| 8987 } | 9197 |
| 9198 | |
| 9199 | |
| 9200 | |
| 9201 | |
| 9202 | |
| 9203 | |
| 9204 | |
| 9205 | |
| 9206 | |
| 9207 | |
| 9208 | |
| 9209 | |
| 9210 | |
| 9211 | |
| 9212 | |
| 9213 | |
| 9214 | |
| 9215 | |
| 9216 | |
| 9217 | |
| 9218 | |
| 9219 | |
| 9220 | |
| 9221 | |
| 8988 | 9222 |
| 8989 { test "$extra_verbose" = "yes" && cat << EOF | 9223 { test "$extra_verbose" = "yes" && cat << EOF |
| 8990 Defining EMACS_CONFIGURATION = "$canonical" | 9224 Defining EMACS_CONFIGURATION = "$canonical" |
| 8991 EOF | 9225 EOF |
| 8992 cat >> confdefs.h <<EOF | 9226 cat >> confdefs.h <<EOF |
| 9005 { test "$extra_verbose" = "yes" && cat << EOF | 9239 { test "$extra_verbose" = "yes" && cat << EOF |
| 9006 Defining config_opsysfile = "$opsysfile" | 9240 Defining config_opsysfile = "$opsysfile" |
| 9007 EOF | 9241 EOF |
| 9008 cat >> confdefs.h <<EOF | 9242 cat >> confdefs.h <<EOF |
| 9009 #define config_opsysfile "$opsysfile" | 9243 #define config_opsysfile "$opsysfile" |
| 9010 EOF | |
| 9011 } | |
| 9012 | |
| 9013 { test "$extra_verbose" = "yes" && cat << EOF | |
| 9014 Defining UNEXEC_SRC = $UNEXEC_SRC | |
| 9015 EOF | |
| 9016 cat >> confdefs.h <<EOF | |
| 9017 #define UNEXEC_SRC $UNEXEC_SRC | |
| 9018 EOF | 9244 EOF |
| 9019 } | 9245 } |
| 9020 | 9246 |
| 9021 | 9247 |
| 9022 | 9248 |
| 9311 if test "$with_xmu" != yes -a "$with_x11" = yes; then | 9537 if test "$with_xmu" != yes -a "$with_x11" = yes; then |
| 9312 echo " No Xmu; substituting equivalent routines." | 9538 echo " No Xmu; substituting equivalent routines." |
| 9313 fi | 9539 fi |
| 9314 | 9540 |
| 9315 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." | 9541 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." |
| 9316 test "$with_xpm" = yes && echo " Compiling in support for XPM images." | 9542 if test "$with_xpm" = yes; then |
| 9543 echo " Compiling in support for XPM images." | |
| 9544 else | |
| 9545 echo " --------------------------------------------------------------------" | |
| 9546 echo " WARNING: Compiling without XPM support." | |
| 9547 echo " WARNING: You should strongly considering installing XPM." | |
| 9548 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." | |
| 9549 echo " --------------------------------------------------------------------" | |
| 9550 fi | |
| 9317 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | 9551 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." |
| 9318 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." | 9552 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." |
| 9319 test "$with_png" = yes && echo " Compiling in support for PNG image conversion." | 9553 test "$with_png" = yes && echo " Compiling in support for PNG image conversion." |
| 9320 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." | 9554 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." |
| 9321 | 9555 |
| 9338 test "$with_xim" = motif && echo " Using Motif to provide XIM support." | 9572 test "$with_xim" = motif && echo " Using Motif to provide XIM support." |
| 9339 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." | 9573 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support." |
| 9340 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." | 9574 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule." |
| 9341 if test "$with_wnn" = yes; then | 9575 if test "$with_wnn" = yes; then |
| 9342 echo " Compiling in support for the WNN input method on Mule." | 9576 echo " Compiling in support for the WNN input method on Mule." |
| 9343 test "$with_wnn6" = yes && echo " WNN support for version 6." | 9577 test "$with_wnn6" = yes && echo " Using WNN version 6." |
| 9344 fi | 9578 fi |
| 9345 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." | 9579 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)." |
| 9346 | 9580 |
| 9347 test "$with_cde" = yes && echo " Compiling in support for CDE." | 9581 test "$with_cde" = yes && echo " Compiling in support for CDE." |
| 9348 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | 9582 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." |
| 9374 | 9608 |
| 9375 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." | 9609 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." |
| 9376 test "$debug" = yes && echo " Compiling in extra code for debugging." | 9610 test "$debug" = yes && echo " Compiling in extra code for debugging." |
| 9377 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." | 9611 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." |
| 9378 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." | 9612 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." |
| 9613 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ | |
| 9614 != "no no no no no"; then | |
| 9615 echo " WARNING: ---------------------------------------------------------" | |
| 9616 echo " WARNING: Compiling in support for runtime error checking." | |
| 9617 echo " WARNING: XEmacs will run noticeably more slowly as a result." | |
| 9618 echo " WARNING: Error checking is on by default for XEmacs beta releases." | |
| 9619 echo " WARNING: ---------------------------------------------------------" | |
| 9620 fi | |
| 9379 echo "" | 9621 echo "" |
| 9380 ) | tee -a Installation | 9622 ) | tee -a Installation |
| 9381 echo 'The above configure report is appended to "Installation" file.' | 9623 echo "The above configure report is appended to \"Installation\" file." |
| 9382 echo "" | 9624 echo "" |
| 9383 | 9625 |
| 9384 | 9626 |
| 9385 | 9627 |
| 9386 # Remove any trailing slashes in these variables. | 9628 # Remove any trailing slashes in these variables. |
| 9486 s%@X_CFLAGS@%$X_CFLAGS%g | 9728 s%@X_CFLAGS@%$X_CFLAGS%g |
| 9487 s%@X_PRE_LIBS@%$X_PRE_LIBS%g | 9729 s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
| 9488 s%@X_LIBS@%$X_LIBS%g | 9730 s%@X_LIBS@%$X_LIBS%g |
| 9489 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | 9731 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
| 9490 s%@ALLOCA@%$ALLOCA%g | 9732 s%@ALLOCA@%$ALLOCA%g |
| 9733 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g | |
| 9491 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g | 9734 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g |
| 9492 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g | 9735 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g |
| 9493 s%@version@%$version%g | 9736 s%@version@%$version%g |
| 9494 s%@configuration@%$configuration%g | 9737 s%@configuration@%$configuration%g |
| 9495 s%@canonical@%$canonical%g | 9738 s%@canonical@%$canonical%g |
| 9741 EOF | 9984 EOF |
| 9742 cat >> $CONFIG_STATUS <<\EOF | 9985 cat >> $CONFIG_STATUS <<\EOF |
| 9743 | 9986 |
| 9744 for dir in $MAKE_SUBDIR; do | 9987 for dir in $MAKE_SUBDIR; do |
| 9745 echo creating $dir/Makefile | 9988 echo creating $dir/Makefile |
| 9746 ( set -e | 9989 ( |
| 9747 cd $dir | 9990 cd $dir |
| 9748 rm -f junk.c | 9991 rm -f junk.c |
| 9749 sed -e 's/^# Generated.*//' -e 's%/\*\*/#.*%%' < Makefile.in > junk.c; | 9992 sed -e 's/^# Generated.*//' -e 's%/\*\*/#.*%%' < Makefile.in > junk.c; |
| 9750 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp; | 9993 $CPP -I. -I${top_srcdir}/src $CPPFLAGS junk.c > junk.cpp; |
| 9751 < junk.cpp \ | 9994 < junk.cpp \ |
| 9756 > Makefile.new | 9999 > Makefile.new |
| 9757 chmod 444 Makefile.new | 10000 chmod 444 Makefile.new |
| 9758 mv -f Makefile.new Makefile | 10001 mv -f Makefile.new Makefile |
| 9759 rm -f junk.c junk.cpp | 10002 rm -f junk.c junk.cpp |
| 9760 ) | 10003 ) |
| 9761 test "$?" != 0 && exit "$?" # For debugging | |
| 9762 done | 10004 done |
| 9763 | 10005 |
| 9764 exit 0 | 10006 exit 0 |
| 9765 EOF | 10007 EOF |
| 9766 chmod +x $CONFIG_STATUS | 10008 chmod +x $CONFIG_STATUS |
| 9767 rm -fr confdefs* $ac_clean_files | 10009 rm -fr confdefs* $ac_clean_files |
| 9768 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 10010 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 9769 | 10011 |
| 9770 | |
| 9771 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then | |
| 9772 echo "creating src/gdbinit" | |
| 9773 echo "source $topsrcdir/src/gdbinit" > src/gdbinit | |
| 9774 fi | |
| 9775 | |
| 9776 if test "$sunpro_c" = "yes"; then cat < EOF > .sbinit | |
| 9777 # For use with Sun WorkShop's Source browser. | |
| 9778 # See sbquery(1) and sbinit(4) for more information | |
| 9779 import src | |
| 9780 import lwlib | |
| 9781 import lib-src | |
| 9782 import dynodump | |
| 9783 EOF | |
| 9784 fi |
