Mercurial > emacs
comparison configure.in @ 9727:12b4d106cc47
keep up with configure.in
author | David J. MacKenzie <djm@gnu.org> |
---|---|
date | Thu, 27 Oct 1994 19:58:25 +0000 |
parents | bf899f54d530 |
children | 3f2c709d9856 |
comparison
equal
deleted
inserted
replaced
9726:51a9e9bc5fda | 9727:12b4d106cc47 |
---|---|
5 AC_PREREQ(1.111)dnl | 5 AC_PREREQ(1.111)dnl |
6 AC_INIT(src/lisp.h) | 6 AC_INIT(src/lisp.h) |
7 AC_CONFIG_HEADER(src/config.h) | 7 AC_CONFIG_HEADER(src/config.h) |
8 | 8 |
9 bindir='${exec_prefix}/bin' | 9 bindir='${exec_prefix}/bin' |
10 datadir='${prefix}/lib' | 10 datadir='${prefix}/share' |
11 statedir='${prefix}/lib' | 11 sharedstatedir='${prefix}/com' |
12 libdir='${exec_prefix}/lib' | 12 libexecdir='${exec_prefix}/libexec' |
13 mandir='${prefix}/man/man1' | 13 mandir='${prefix}/man/man1' |
14 infodir='${prefix}/info' | 14 infodir='${prefix}/info' |
15 lispdir='${datadir}/emacs/${version}/lisp' | 15 lispdir='${datadir}/emacs/${version}/lisp' |
16 locallisppath='${datadir}/emacs/site-lisp' | 16 locallisppath='${datadir}/emacs/site-lisp' |
17 lisppath='${locallisppath}:${lispdir}' | 17 lisppath='${locallisppath}:${lispdir}' |
18 etcdir='${datadir}/emacs/${version}/etc' | 18 etcdir='${datadir}/emacs/${version}/etc' |
19 lockdir='${statedir}/emacs/lock' | 19 lockdir='${sharedstatedir}/emacs/lock' |
20 archlibdir='${libdir}/emacs/${version}/${configuration}' | 20 archlibdir='${libexecdir}/emacs/${version}/${configuration}' |
21 docdir='${datadir}/emacs/${version}/etc' | 21 docdir='${datadir}/emacs/${version}/etc' |
22 | 22 |
23 AC_ARG_WITH(gcc, | 23 AC_ARG_WITH(gcc, |
24 [ --with-gcc Use GCC to compile Emacs]) | 24 [ --with-gcc Use GCC to compile Emacs]) |
25 AC_ARG_WITH(x-toolkit, | 25 AC_ARG_WITH(x-toolkit, |
26 [ --with-x-toolkit=KIT Use an X toolkit (KIT = lucid or athena)], | 26 [ --with-x-toolkit=KIT Use an X toolkit (KIT = yes/lucid/athena/motif)], |
27 [ case "${withval}" in | 27 [ case "${withval}" in |
28 y | ye | yes ) val=athena ;; | 28 y | ye | yes ) val=athena ;; |
29 n | no ) val=no ;; | 29 n | no ) val=no ;; |
30 l | lu | luc | luci | lucid ) val=lucid ;; | 30 l | lu | luc | luci | lucid ) val=lucid ;; |
31 a | at | ath | athe | athena ) val=athena ;; | 31 a | at | ath | athe | athena ) val=athena ;; |
32 m | mo | mot | moti | motif ) val=motif ;; | |
32 dnl These don't currently work. | 33 dnl These don't currently work. |
33 dnl m | mo | mot | moti | motif ) val=motif ;; | |
34 dnl o | op | ope | open | open- | open-l | open-lo \ | 34 dnl o | op | ope | open | open- | open-l | open-lo \ |
35 dnl | open-loo | open-look ) val=open-look ;; | 35 dnl | open-loo | open-look ) val=open-look ;; |
36 * ) | 36 * ) |
37 dnl AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value | 37 dnl AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value |
38 dnl which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.]) | 38 dnl which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.]) |
39 AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value | 39 AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value |
40 which is \`yes', \`no', \`lucid', or \`athena'. | 40 which is \`yes', \`no', \`lucid', \`athena', or \`motif'. |
41 Currently, \`yes', \`athena' and \`lucid' are synonyms.]) | 41 Currently, \`yes', \`athena' and \`lucid' are synonyms.]) |
42 ;; | 42 ;; |
43 esac | 43 esac |
44 with_x_toolkit=$val | 44 with_x_toolkit=$val |
45 ]) | 45 ]) |
46 dnl AC_ARG_ENABLE(single-tree, | |
47 dnl [ --enable-single-tree Create a directory tree at DIR which looks like: | |
48 dnl .../DIR/bin/CONFIGNAME (emacs, etags, etc.) | |
49 dnl .../DIR/bin/CONFIGNAME/etc (movemail, etc.) | |
50 dnl .../DIR/common/lisp (emacs' lisp files) | |
51 dnl .../DIR/common/site-lisp (local lisp files) | |
52 dnl .../DIR/common/lib (DOC, TUTORIAL, etc.) | |
53 dnl .../DIR/common/lock (lockfiles)]) | |
54 | 46 |
55 #### Make srcdir absolute, if it isn't already. It's important to | 47 #### Make srcdir absolute, if it isn't already. It's important to |
56 #### avoid running the path through pwd unnecessary, since pwd can | 48 #### avoid running the path through pwd unnecessary, since pwd can |
57 #### give you automounter prefixes, which can go away. We do all this | 49 #### give you automounter prefixes, which can go away. We do all this |
58 #### so Emacs can find its files when run uninstalled. | 50 #### so Emacs can find its files when run uninstalled. |
139 ns32k-*-netbsd*) machine=ns32000 ;; | 131 ns32k-*-netbsd*) machine=ns32000 ;; |
140 sparc-*-netbsd*) machine=sparc ;; | 132 sparc-*-netbsd*) machine=sparc ;; |
141 esac | 133 esac |
142 ;; | 134 ;; |
143 | 135 |
136 ## Acorn RISCiX: | |
137 arm-acorn-riscix1.1* ) | |
138 machine=acorn opsys=riscix1-1 | |
139 ;; | |
140 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
141 machine=acorn opsys=riscix1-2 | |
142 ;; | |
143 | |
144 ## Alliant machines | 144 ## Alliant machines |
145 ## Strictly speaking, we need the version of the alliant operating | 145 ## Strictly speaking, we need the version of the alliant operating |
146 ## system to choose the right machine file, but currently the | 146 ## system to choose the right machine file, but currently the |
147 ## configuration name doesn't tell us enough to choose the right | 147 ## configuration name doesn't tell us enough to choose the right |
148 ## one; we need to give alliants their own operating system name to | 148 ## one; we need to give alliants their own operating system name to |
150 fx80-alliant-* ) | 150 fx80-alliant-* ) |
151 machine=alliant4 opsys=bsd4-2 | 151 machine=alliant4 opsys=bsd4-2 |
152 ;; | 152 ;; |
153 i860-alliant-* ) | 153 i860-alliant-* ) |
154 machine=alliant-2800 opsys=bsd4-3 | 154 machine=alliant-2800 opsys=bsd4-3 |
155 ;; | |
156 | |
157 alpha-dec-osf* ) | |
158 machine=alpha opsys=osf1 | |
155 ;; | 159 ;; |
156 | 160 |
157 ## Altos 3068 | 161 ## Altos 3068 |
158 m68*-altos-sysv* ) | 162 m68*-altos-sysv* ) |
159 machine=altos opsys=usg5-2 | 163 machine=altos opsys=usg5-2 |
429 ## Prime EXL | 433 ## Prime EXL |
430 i[345]86-prime-sysv* ) | 434 i[345]86-prime-sysv* ) |
431 machine=i386 opsys=usg5-3 | 435 machine=i386 opsys=usg5-3 |
432 ;; | 436 ;; |
433 | 437 |
434 ## Sequent Symmetry | 438 ## Sequent Symmetry running Dynix |
435 i[345]86-sequent-bsd* ) | 439 i[345]86-sequent-bsd* ) |
436 machine=symmetry opsys=bsd4-3 | 440 machine=symmetry opsys=bsd4-3 |
441 ;; | |
442 | |
443 ## Sequent Symmetry running DYNIX/ptx | |
444 ## Use the old cpp rather than the newer ANSI one. | |
445 i[345]86-sequent-ptx* ) | |
446 machine=sequent-ptx opsys=ptx | |
447 NON_GNU_CPP="/lib/cpp" | |
437 ;; | 448 ;; |
438 | 449 |
439 ## Unspecified sysv on an ncr machine defaults to svr4.2. | 450 ## Unspecified sysv on an ncr machine defaults to svr4.2. |
440 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | 451 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) |
441 i[345]86-ncr-sysv* ) | 452 i[345]86-ncr-sysv* ) |
806 AC_PROG_LN_S | 817 AC_PROG_LN_S |
807 AC_PROG_CPP | 818 AC_PROG_CPP |
808 AC_PROG_INSTALL | 819 AC_PROG_INSTALL |
809 AC_PROG_YACC | 820 AC_PROG_YACC |
810 | 821 |
822 dnl checks for Unix variants | |
823 AC_AIX | |
824 | |
811 dnl checks for header files | 825 dnl checks for header files |
812 AC_CHECK_HEADERS(sys/timeb.h sys/time.h unistd.h) | 826 AC_CHECK_HEADERS(sys/timeb.h sys/time.h unistd.h utime.h) |
813 AC_HEADER_STDC | 827 AC_HEADER_STDC |
814 AC_HEADER_TIME | 828 AC_HEADER_TIME |
815 AC_DECL_SYS_SIGLIST | 829 AC_DECL_SYS_SIGLIST |
816 | 830 |
831 dnl Some systems have utime.h but don't declare the struct anyplace. | |
832 AC_MSG_CHECKING(for struct utimbuf) | |
833 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME | |
834 #include <sys/time.h> | |
835 #include <time.h> | |
836 #else | |
837 #ifdef HAVE_SYS_TIME_H | |
838 #include <sys/time.h> | |
839 #else | |
840 #include <time.h> | |
841 #endif | |
842 #endif | |
843 #ifdef HAVE_UTIME_H | |
844 #include <utime.h> | |
845 #endif], [static struct utimbuf x; x.actime = x.modtime;], | |
846 [AC_MSG_RESULT(yes) | |
847 AC_DEFINE(HAVE_STRUCT_UTIMBUF)], | |
848 AC_MSG_RESULT(no)) | |
849 | |
817 dnl checks for typedefs | 850 dnl checks for typedefs |
818 AC_TYPE_SIGNAL | 851 AC_TYPE_SIGNAL |
852 | |
853 AC_MSG_CHECKING(for struct timeval) | |
854 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME | |
855 #include <sys/time.h> | |
856 #include <time.h> | |
857 #else | |
858 #ifdef HAVE_SYS_TIME_H | |
859 #include <sys/time.h> | |
860 #else | |
861 #include <time.h> | |
862 #endif | |
863 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], | |
864 [AC_MSG_RESULT(yes) | |
865 AC_DEFINE(HAVE_TIMEVAL)], | |
866 AC_MSG_RESULT(no)) | |
819 | 867 |
820 dnl checks for structure members | 868 dnl checks for structure members |
821 AC_STRUCT_TM | 869 AC_STRUCT_TM |
822 AC_STRUCT_TIMEZONE | 870 AC_STRUCT_TIMEZONE |
823 | 871 |
840 fi | 888 fi |
841 | 889 |
842 test "${x_libraries}" != NONE && LD_SWITCH_X_SITE="-L${x_libraries}" | 890 test "${x_libraries}" != NONE && LD_SWITCH_X_SITE="-L${x_libraries}" |
843 test "${x_libraries}" != NONE && LD_SWITCH_X_SITE_AUX="-R${x_libraries}" | 891 test "${x_libraries}" != NONE && LD_SWITCH_X_SITE_AUX="-R${x_libraries}" |
844 test "${x_includes}" != NONE && C_SWITCH_X_SITE="-I${x_includes}" | 892 test "${x_includes}" != NONE && C_SWITCH_X_SITE="-I${x_includes}" |
893 | |
894 if [ x"${x_includes}" = x ]; then | |
895 bitmapdir=/usr/include/X11/bitmaps; | |
896 else | |
897 bitmapdir="${x_includes}/bitmaps"; | |
898 fi | |
845 | 899 |
846 case "${window_system}" in | 900 case "${window_system}" in |
847 x11 ) | 901 x11 ) |
848 HAVE_X_WINDOWS=yes | 902 HAVE_X_WINDOWS=yes |
849 HAVE_X11=yes | 903 HAVE_X11=yes |
1057 AC_FUNC_ALLOCA | 1111 AC_FUNC_ALLOCA |
1058 | 1112 |
1059 # logb and frexp are found in -lm on most systems. | 1113 # logb and frexp are found in -lm on most systems. |
1060 AC_CHECK_LIB(m, logb) | 1114 AC_CHECK_LIB(m, logb) |
1061 AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ | 1115 AC_CHECK_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ |
1062 random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid strerror \ | 1116 random lrand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid \ |
1063 fpathconf) | 1117 strerror fpathconf select mktime eaccess getpagesize) |
1064 | 1118 |
1065 ok_so_far=yes | 1119 ok_so_far=yes |
1066 AC_CHECK_FUNC(socket, , ok_so_far=no) | 1120 AC_CHECK_FUNC(socket, , ok_so_far=no) |
1067 if test $ok_so_far = yes; then | 1121 if test $ok_so_far = yes; then |
1068 AC_CHECK_HEADER(netinet/in.h, , ok_so_far=no) | 1122 AC_CHECK_HEADER(netinet/in.h, , ok_so_far=no) |
1092 | 1146 |
1093 ### Specify what sort of things we'll be editing into Makefile and config.h. | 1147 ### Specify what sort of things we'll be editing into Makefile and config.h. |
1094 ### Use configuration here uncanonicalized to avoid exceeding size limits. | 1148 ### Use configuration here uncanonicalized to avoid exceeding size limits. |
1095 AC_SUBST(version) | 1149 AC_SUBST(version) |
1096 AC_SUBST(configuration) | 1150 AC_SUBST(configuration) |
1151 AC_SUBST(canonical) | |
1097 AC_SUBST(srcdir) | 1152 AC_SUBST(srcdir) |
1098 AC_SUBST(prefix) | 1153 AC_SUBST(prefix) |
1099 AC_SUBST(exec_prefix) | 1154 AC_SUBST(exec_prefix) |
1100 AC_SUBST(bindir) | 1155 AC_SUBST(bindir) |
1101 AC_SUBST(datadir) | 1156 AC_SUBST(datadir) |
1102 AC_SUBST(statedir) | 1157 AC_SUBST(sharedstatedir) |
1103 AC_SUBST(libdir) | 1158 AC_SUBST(libexecdir) |
1104 AC_SUBST(mandir) | 1159 AC_SUBST(mandir) |
1105 AC_SUBST(infodir) | 1160 AC_SUBST(infodir) |
1106 AC_SUBST(lispdir) | 1161 AC_SUBST(lispdir) |
1107 AC_SUBST(locallisppath) | 1162 AC_SUBST(locallisppath) |
1108 AC_SUBST(lisppath) | 1163 AC_SUBST(lisppath) |
1109 AC_SUBST(etcdir) | 1164 AC_SUBST(etcdir) |
1110 AC_SUBST(lockdir) | 1165 AC_SUBST(lockdir) |
1111 AC_SUBST(archlibdir) | 1166 AC_SUBST(archlibdir) |
1112 AC_SUBST(docdir) | 1167 AC_SUBST(docdir) |
1168 AC_SUBST(bitmapdir) | |
1113 AC_SUBST(c_switch_system) | 1169 AC_SUBST(c_switch_system) |
1114 AC_SUBST(c_switch_machine) | 1170 AC_SUBST(c_switch_machine) |
1115 AC_SUBST(LD_SWITCH_X_SITE) | 1171 AC_SUBST(LD_SWITCH_X_SITE) |
1116 AC_SUBST(LD_SWITCH_X_SITE_AUX) | 1172 AC_SUBST(LD_SWITCH_X_SITE_AUX) |
1117 AC_SUBST(C_SWITCH_X_SITE) | 1173 AC_SUBST(C_SWITCH_X_SITE) |
1118 AC_SUBST(CFLAGS) | 1174 AC_SUBST(CFLAGS) |
1119 AC_SUBST(X_TOOLKIT_TYPE) | 1175 AC_SUBST(X_TOOLKIT_TYPE) |
1120 AC_SUBST(machfile) | 1176 AC_SUBST(machfile) |
1121 AC_SUBST(opsysfile) | 1177 AC_SUBST(opsysfile) |
1122 | 1178 |
1123 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${configuration}") | 1179 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}") |
1180 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${config_options}") | |
1124 AC_DEFINE_UNQUOTED(config_machfile, "${machfile}") | 1181 AC_DEFINE_UNQUOTED(config_machfile, "${machfile}") |
1125 AC_DEFINE_UNQUOTED(config_opsysfile, "${opsysfile}") | 1182 AC_DEFINE_UNQUOTED(config_opsysfile, "${opsysfile}") |
1126 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) | 1183 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) |
1127 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX}) | 1184 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX}) |
1128 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) | 1185 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) |
1162 dnl # lisp and etc directories. | 1219 dnl # lisp and etc directories. |
1163 dnl | 1220 dnl |
1164 dnl if test "$enable_single_tree" = "yes"; then | 1221 dnl if test "$enable_single_tree" = "yes"; then |
1165 dnl bindir='${exec_prefix}/bin/${configuration}' | 1222 dnl bindir='${exec_prefix}/bin/${configuration}' |
1166 dnl datadir='${prefix}/common' | 1223 dnl datadir='${prefix}/common' |
1167 dnl statedir='${prefix}/common' | 1224 dnl sharedstatedir='${prefix}/common' |
1168 dnl libdir='${bindir}' | 1225 dnl libexecdir='${bindir}' |
1169 dnl lispdir='${prefix}/common/lisp' | 1226 dnl lispdir='${prefix}/common/lisp' |
1170 dnl locallisppath='${prefix}/common/site-lisp' | 1227 dnl locallisppath='${prefix}/common/site-lisp' |
1171 dnl lockdir='${prefix}/common/lock' | 1228 dnl lockdir='${prefix}/common/lock' |
1172 dnl archlibdir='${libdir}/etc' | 1229 dnl archlibdir='${libexecdir}/etc' |
1173 dnl etcdir='${prefix}/common/data' | 1230 dnl etcdir='${prefix}/common/data' |
1174 dnl docdir='${prefix}/common/data' | 1231 dnl docdir='${prefix}/common/data' |
1175 dnl fi | 1232 dnl fi |
1176 | 1233 |
1177 #### Report on what we decided to do. | 1234 #### Report on what we decided to do. |