diff options
| author | Dave Love | 2002-11-18 16:24:41 +0000 |
|---|---|---|
| committer | Dave Love | 2002-11-18 16:24:41 +0000 |
| commit | 91b5aa9aac9689fedade6e96db7fb2935637635f (patch) | |
| tree | cb58909f06f5b4ed67c7684d7c1ac9bbaadbc7db | |
| parent | cfae195296efaa7bebf40f407bea4fe62f2af5f8 (diff) | |
| download | emacs-91b5aa9aac9689fedade6e96db7fb2935637635f.tar.gz emacs-91b5aa9aac9689fedade6e96db7fb2935637635f.zip | |
Maybe define bcopy, bzero, bcmp.
| -rw-r--r-- | configure.in | 171 |
1 files changed, 110 insertions, 61 deletions
diff --git a/configure.in b/configure.in index 4967df7e70a..e1012b4261c 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -88,11 +88,11 @@ dnl These don't currently work. | |||
| 88 | dnl o | op | ope | open | open- | open-l | open-lo \ | 88 | dnl o | op | ope | open | open- | open-l | open-lo \ |
| 89 | dnl | open-loo | open-look ) val=open-look ;; | 89 | dnl | open-loo | open-look ) val=open-look ;; |
| 90 | * ) | 90 | * ) |
| 91 | dnl AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value | 91 | dnl AC_MSG_ERROR([the `--with-x-toolkit' option is supposed to have a value |
| 92 | dnl which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.]) | 92 | dnl which is `yes', `no', `lucid', `athena', `motif' or `open-look'.]) |
| 93 | AC_MSG_ERROR([\`--with-x-toolkit=$withval' is invalid\; | 93 | AC_MSG_ERROR([`--with-x-toolkit=$withval' is invalid\; |
| 94 | this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | 94 | this option's value should be `yes', `no', `lucid', `athena', or `motif'. |
| 95 | Currently, \`yes', \`athena' and \`lucid' are synonyms.]) | 95 | Currently, `yes', `athena' and `lucid' are synonyms.]) |
| 96 | ;; | 96 | ;; |
| 97 | esac | 97 | esac |
| 98 | with_x_toolkit=$val | 98 | with_x_toolkit=$val |
| @@ -142,23 +142,21 @@ esac | |||
| 142 | #### Check if the source directory already has a configured system in it. | 142 | #### Check if the source directory already has a configured system in it. |
| 143 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | 143 | if test `pwd` != `(cd ${srcdir} && pwd)` \ |
| 144 | && test -f "${srcdir}/src/config.h" ; then | 144 | && test -f "${srcdir}/src/config.h" ; then |
| 145 | AC_MSG_WARN([The directory tree \`${srcdir}' is being used | 145 | AC_MSG_WARN([[The directory tree `${srcdir}' is being used |
| 146 | as a build directory right now; it has been configured in its own | 146 | as a build directory right now; it has been configured in its own |
| 147 | right. To configure in another directory as well, you MUST | 147 | right. To configure in another directory as well, you MUST |
| 148 | use GNU make. If you do not have GNU make, then you must | 148 | use GNU make. If you do not have GNU make, then you must |
| 149 | now do \`make distclean' in ${srcdir}, | 149 | now do `make distclean' in ${srcdir}, |
| 150 | and then run $0 again.]) | 150 | and then run $0 again.]]) |
| 151 | 151 | ||
| 152 | changequote(, )dnl | 152 | [extrasub='/^VPATH[ ]*=/c\ |
| 153 | extrasub='/^VPATH[ ]*=/c\ | ||
| 154 | changequote([, ])dnl | ||
| 155 | vpath %.c $(srcdir)\ | 153 | vpath %.c $(srcdir)\ |
| 156 | vpath %.h $(srcdir)\ | 154 | vpath %.h $(srcdir)\ |
| 157 | vpath %.y $(srcdir)\ | 155 | vpath %.y $(srcdir)\ |
| 158 | vpath %.l $(srcdir)\ | 156 | vpath %.l $(srcdir)\ |
| 159 | vpath %.s $(srcdir)\ | 157 | vpath %.s $(srcdir)\ |
| 160 | vpath %.in $(srcdir)\ | 158 | vpath %.in $(srcdir)\ |
| 161 | vpath %.texi $(srcdir)' | 159 | vpath %.texi $(srcdir)'] |
| 162 | fi | 160 | fi |
| 163 | 161 | ||
| 164 | #### Given the configuration name, set machfile and opsysfile to the | 162 | #### Given the configuration name, set machfile and opsysfile to the |
| @@ -170,7 +168,11 @@ AC_CANONICAL_HOST | |||
| 170 | canonical=$host | 168 | canonical=$host |
| 171 | configuration=${host_alias-$host} | 169 | configuration=${host_alias-$host} |
| 172 | 170 | ||
| 173 | changequote(, )dnl | 171 | dnl This used to use changequote, but, apart from `changequote is evil' |
| 172 | dnl per the autoconf manual, we can speed up autoconf somewhat by quoting | ||
| 173 | dnl the great gob of text. Thus it's not processed for possible expansion. | ||
| 174 | dnl Just make sure the brackets remain balanced. | ||
| 175 | [ | ||
| 174 | 176 | ||
| 175 | ### If you add support for a new configuration, add code to this | 177 | ### If you add support for a new configuration, add code to this |
| 176 | ### switch statement to recognize your configuration name and select | 178 | ### switch statement to recognize your configuration name and select |
| @@ -796,18 +798,6 @@ case "${canonical}" in | |||
| 796 | machine=plexus opsys=usg5-2 | 798 | machine=plexus opsys=usg5-2 |
| 797 | ;; | 799 | ;; |
| 798 | 800 | ||
| 799 | ## PowerPC reference platform | ||
| 800 | powerpcle-*-solaris2.5* ) | ||
| 801 | machine=prep | ||
| 802 | opsys=sol2-5 | ||
| 803 | ;; | ||
| 804 | |||
| 805 | ## PowerPC reference platform | ||
| 806 | powerpcle-*-solaris2* ) | ||
| 807 | machine=prep | ||
| 808 | opsys=sol2-6 | ||
| 809 | ;; | ||
| 810 | |||
| 811 | ## Pyramid machines | 801 | ## Pyramid machines |
| 812 | ## I don't really have any idea what sort of processor the Pyramid has, | 802 | ## I don't really have any idea what sort of processor the Pyramid has, |
| 813 | ## so I'm assuming it is its own architecture. | 803 | ## so I'm assuming it is its own architecture. |
| @@ -1160,11 +1150,11 @@ if test x"${opsys}" = x; then | |||
| 1160 | esac | 1150 | esac |
| 1161 | fi | 1151 | fi |
| 1162 | 1152 | ||
| 1163 | changequote([, ])dnl | 1153 | ] |
| 1164 | 1154 | ||
| 1165 | if test $unported = yes; then | 1155 | if test $unported = yes; then |
| 1166 | AC_MSG_ERROR([Emacs hasn't been ported to \`${canonical}' systems. | 1156 | AC_MSG_ERROR([Emacs hasn't been ported to `${canonical}' systems. |
| 1167 | Check \`etc/MACHINES' for recognized configuration names.]) | 1157 | Check `etc/MACHINES' for recognized configuration names.]) |
| 1168 | fi | 1158 | fi |
| 1169 | 1159 | ||
| 1170 | machfile="m/${machine}.h" | 1160 | machfile="m/${machine}.h" |
| @@ -1365,16 +1355,14 @@ configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |||
| 1365 | # The value of CPP is a quoted variable reference, so we need to do this | 1355 | # The value of CPP is a quoted variable reference, so we need to do this |
| 1366 | # to get its actual value... | 1356 | # to get its actual value... |
| 1367 | CPP=`eval "echo $CPP"` | 1357 | CPP=`eval "echo $CPP"` |
| 1368 | changequote(, )dnl | 1358 | [eval `${CPP} -Isrc ${tempcname} \ |
| 1369 | eval `${CPP} -Isrc ${tempcname} \ | ||
| 1370 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | 1359 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` |
| 1371 | if test "x$SPECIFIED_CFLAGS" = x; then | 1360 | if test "x$SPECIFIED_CFLAGS" = x; then |
| 1372 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | 1361 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ |
| 1373 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | 1362 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` |
| 1374 | else | 1363 | else |
| 1375 | REAL_CFLAGS="$CFLAGS" | 1364 | REAL_CFLAGS="$CFLAGS" |
| 1376 | fi | 1365 | fi] |
| 1377 | changequote([, ])dnl | ||
| 1378 | rm ${tempcname} | 1366 | rm ${tempcname} |
| 1379 | 1367 | ||
| 1380 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | 1368 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" |
| @@ -1402,12 +1390,13 @@ if test "${with_sound}" != "no"; then | |||
| 1402 | fi | 1390 | fi |
| 1403 | 1391 | ||
| 1404 | dnl checks for header files | 1392 | dnl checks for header files |
| 1405 | dnl NB. On Solaris 8 there's a warning from the check for term.h because | ||
| 1406 | dnl it needs something else (curses.h?) to define `bool'. | ||
| 1407 | AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | 1393 | AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
| 1408 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 1394 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
| 1409 | termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \ | 1395 | termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \ |
| 1410 | sys/param.h) | 1396 | sys/param.h sys/vlimit.h sys/resource.h) |
| 1397 | dnl On Solaris 8 there's a compilation warning for term.h because | ||
| 1398 | dnl it doesn't define `bool'. | ||
| 1399 | AC_CHECK_HEADERS(term.h, , , -) | ||
| 1411 | AC_HEADER_STDC | 1400 | AC_HEADER_STDC |
| 1412 | AC_HEADER_TIME | 1401 | AC_HEADER_TIME |
| 1413 | AC_DECL_SYS_SIGLIST | 1402 | AC_DECL_SYS_SIGLIST |
| @@ -1889,8 +1878,10 @@ fi | |||
| 1889 | HAVE_XAW3D=no | 1878 | HAVE_XAW3D=no |
| 1890 | if test "${HAVE_X11}" = "yes"; then | 1879 | if test "${HAVE_X11}" = "yes"; then |
| 1891 | if test "${USE_X_TOOLKIT}" != "none"; then | 1880 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 1881 | dnl Fixme: determine what Scrollbar.h needs to avoid compilation | ||
| 1882 | dnl errors from the test without the `-'. | ||
| 1892 | AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h, | 1883 | AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h, |
| 1893 | AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes)) | 1884 | [AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes)], , -) |
| 1894 | if test "${HAVE_XAW3D}" = "yes"; then | 1885 | if test "${HAVE_XAW3D}" = "yes"; then |
| 1895 | AC_DEFINE(HAVE_XAW3D, 1, | 1886 | AC_DEFINE(HAVE_XAW3D, 1, |
| 1896 | [Define to 1 if you have the Xaw3d library (-lXaw3d).]) | 1887 | [Define to 1 if you have the Xaw3d library (-lXaw3d).]) |
| @@ -1967,10 +1958,7 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 1967 | AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl | 1958 | AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl |
| 1968 | if test "${HAVE_JPEG}" = "yes"; then | 1959 | if test "${HAVE_JPEG}" = "yes"; then |
| 1969 | AC_DEFINE(HAVE_JPEG) | 1960 | AC_DEFINE(HAVE_JPEG) |
| 1970 | AC_EGREP_CPP( | 1961 | AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])], |
| 1971 | changequote({, })dnl avoid leadingspace on the next line | ||
| 1972 | {version= *(6[2-9]|[7-9][0-9])}, | ||
| 1973 | changequote([, ])dnl | ||
| 1974 | [#include <jpeglib.h> | 1962 | [#include <jpeglib.h> |
| 1975 | version=JPEG_LIB_VERSION | 1963 | version=JPEG_LIB_VERSION |
| 1976 | ], | 1964 | ], |
| @@ -2081,7 +2069,7 @@ if test "$ac_cv_lib_lockfile_maillock" = no; then | |||
| 2081 | if test $ac_cv_prog_liblockfile = yes; then | 2069 | if test $ac_cv_prog_liblockfile = yes; then |
| 2082 | AC_MSG_ERROR([Shared liblockfile found but can't link against it. | 2070 | AC_MSG_ERROR([Shared liblockfile found but can't link against it. |
| 2083 | This probably means that movemail could lose mail. | 2071 | This probably means that movemail could lose mail. |
| 2084 | There may be a \`development' package to install containing liblockfile.]) | 2072 | There may be a `development' package to install containing liblockfile.]) |
| 2085 | else AC_DEFINE(LIBMAIL, -llockfile, [Define to -llockfile if it is usable.]) | 2073 | else AC_DEFINE(LIBMAIL, -llockfile, [Define to -llockfile if it is usable.]) |
| 2086 | fi | 2074 | fi |
| 2087 | else : | 2075 | else : |
| @@ -2096,7 +2084,7 @@ strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |||
| 2096 | utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 2084 | utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
| 2097 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ | 2085 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
| 2098 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | 2086 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
| 2099 | gai_strerror mkstemp getline getdelim mremap memmove) | 2087 | gai_strerror mkstemp getline getdelim mremap memmove fsync) |
| 2100 | 2088 | ||
| 2101 | AC_CHECK_HEADERS(sys/un.h) | 2089 | AC_CHECK_HEADERS(sys/un.h) |
| 2102 | 2090 | ||
| @@ -2281,6 +2269,7 @@ if test $ok_so_far = yes; then | |||
| 2281 | AC_CHECK_HEADER(arpa/inet.h, , ok_so_far=no) | 2269 | AC_CHECK_HEADER(arpa/inet.h, , ok_so_far=no) |
| 2282 | fi | 2270 | fi |
| 2283 | if test $ok_so_far = yes; then | 2271 | if test $ok_so_far = yes; then |
| 2272 | dnl Fixme: Not used. Should this be HAVE_SOCKETS? | ||
| 2284 | AC_DEFINE(HAVE_INET_SOCKETS, 1, | 2273 | AC_DEFINE(HAVE_INET_SOCKETS, 1, |
| 2285 | [Define to 1 if you have inet sockets.]) | 2274 | [Define to 1 if you have inet sockets.]) |
| 2286 | fi | 2275 | fi |
| @@ -2302,17 +2291,47 @@ AC_FUNC_FORK | |||
| 2302 | 2291 | ||
| 2303 | AC_CHECK_TYPES(size_t) | 2292 | AC_CHECK_TYPES(size_t) |
| 2304 | 2293 | ||
| 2294 | dnl Restrict could probably be used effectively other than in regex.c. | ||
| 2295 | AC_CACHE_CHECK([for C restrict keyword], emacs_cv_c_restrict, | ||
| 2296 | [AC_TRY_COMPILE([void fred (int *restrict x);], [], | ||
| 2297 | emacs_cv_c_restrict=yes, | ||
| 2298 | [AC_TRY_COMPILE([void fred (int *__restrict x);], [], | ||
| 2299 | emacs_cv_c_restrict=__restrict, | ||
| 2300 | emacs_cv_c_restrict=no)])]) | ||
| 2301 | case "$emacs_cv_c_restrict" in | ||
| 2302 | yes) emacs_restrict=restrict;; | ||
| 2303 | no) emacs_restrict="";; | ||
| 2304 | *) emacs_restrict="$emacs_cv_c_restrict";; | ||
| 2305 | esac | ||
| 2306 | if test "$emacs_restrict" != __restrict; then | ||
| 2307 | AC_DEFINE_UNQUOTED(__restrict, $emacs_restrict, | ||
| 2308 | [Define to compiler's equivalent of C99 restrict keyword. | ||
| 2309 | Don't define if equivalent is `__restrict'.]) | ||
| 2310 | fi | ||
| 2311 | |||
| 2312 | AC_CACHE_CHECK([for C restricted array declarations], emacs_cv_c_restrict_arr, | ||
| 2313 | [AC_TRY_COMPILE([void fred (int x[__restrict]);], [], | ||
| 2314 | emacs_cv_c_restrict_arr=yes, emacs_cv_c_restrict_arr=no)]) | ||
| 2315 | if test "$emacs_cv_c_restrict_arr" = yes; then | ||
| 2316 | AC_DEFINE(__restrict_arr, __restrict, | ||
| 2317 | [Define to compiler's equivalent of C99 restrict keyword in array | ||
| 2318 | declarations. Define as empty for no equivalent.]) | ||
| 2319 | fi | ||
| 2320 | |||
| 2321 | dnl Fixme: AC_SYS_POSIX_TERMIOS should probably be used, but it's not clear | ||
| 2322 | dnl how the tty code is related to POSIX and/or other versions of termios. | ||
| 2323 | |||
| 2324 | dnl Fixme: Use AC_FUNC_MEMCMP since memcmp is used. (Needs libobj replacement.) | ||
| 2325 | |||
| 2305 | # Set up the CFLAGS for real compilation, so we can substitute it. | 2326 | # Set up the CFLAGS for real compilation, so we can substitute it. |
| 2306 | CFLAGS="$REAL_CFLAGS" | 2327 | CFLAGS="$REAL_CFLAGS" |
| 2307 | CPPFLAGS="$REAL_CPPFLAGS" | 2328 | CPPFLAGS="$REAL_CPPFLAGS" |
| 2308 | 2329 | ||
| 2309 | changequote(, )dnl | ||
| 2310 | #### Find out which version of Emacs this is. | 2330 | #### Find out which version of Emacs this is. |
| 2311 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | 2331 | [version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ |
| 2312 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | 2332 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`] |
| 2313 | changequote([, ])dnl | ||
| 2314 | if test x"${version}" = x; then | 2333 | if test x"${version}" = x; then |
| 2315 | AC_MSG_ERROR(can't find current emacs version in \`${srcdir}/lisp/version.el'.) | 2334 | AC_MSG_ERROR([can't find current emacs version in `${srcdir}/lisp/version.el'.]) |
| 2316 | fi | 2335 | fi |
| 2317 | 2336 | ||
| 2318 | ### Specify what sort of things we'll be editing into Makefile and config.h. | 2337 | ### Specify what sort of things we'll be editing into Makefile and config.h. |
| @@ -2431,7 +2450,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |||
| 2431 | Boston, MA 02111-1307, USA. */ | 2450 | Boston, MA 02111-1307, USA. */ |
| 2432 | 2451 | ||
| 2433 | 2452 | ||
| 2434 | /* No code in Emacs #includes config.h twice, but some of the code | 2453 | /* No code in Emacs #includes config.h twice, but some bits of code |
| 2435 | intended to work with other packages as well (like gmalloc.c) | 2454 | intended to work with other packages as well (like gmalloc.c) |
| 2436 | think they can include it as many times as they like. */ | 2455 | think they can include it as many times as they like. */ |
| 2437 | #ifndef EMACS_CONFIG_H | 2456 | #ifndef EMACS_CONFIG_H |
| @@ -2564,8 +2583,6 @@ AH_BOTTOM([ | |||
| 2564 | extern char *getenv (); | 2583 | extern char *getenv (); |
| 2565 | #endif | 2584 | #endif |
| 2566 | 2585 | ||
| 2567 | #endif /* EMACS_CONFIG_H */ | ||
| 2568 | |||
| 2569 | /* These default definitions are good for almost all machines. | 2586 | /* These default definitions are good for almost all machines. |
| 2570 | The exceptions override them in m/MACHINE.h. */ | 2587 | The exceptions override them in m/MACHINE.h. */ |
| 2571 | 2588 | ||
| @@ -2605,7 +2622,6 @@ extern char *getenv (); | |||
| 2605 | # endif /* GCC. */ | 2622 | # endif /* GCC. */ |
| 2606 | #endif /* __P */ | 2623 | #endif /* __P */ |
| 2607 | 2624 | ||
| 2608 | |||
| 2609 | /* Don't include "string.h" or <stdlib.h> in non-C code. */ | 2625 | /* Don't include "string.h" or <stdlib.h> in non-C code. */ |
| 2610 | #ifndef NOT_C_CODE | 2626 | #ifndef NOT_C_CODE |
| 2611 | #ifdef HAVE_STRING_H | 2627 | #ifdef HAVE_STRING_H |
| @@ -2617,10 +2633,19 @@ extern char *getenv (); | |||
| 2617 | #ifdef HAVE_STDLIB_H | 2633 | #ifdef HAVE_STDLIB_H |
| 2618 | #include <stdlib.h> | 2634 | #include <stdlib.h> |
| 2619 | #endif | 2635 | #endif |
| 2636 | #ifndef __GNUC__ | ||
| 2637 | # ifdef HAVE_ALLOCA_H | ||
| 2638 | # include <alloca.h> | ||
| 2639 | # else /* AIX files deal with #pragma. */ | ||
| 2640 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | ||
| 2641 | char *alloca (); | ||
| 2642 | # endif | ||
| 2643 | # endif /* HAVE_ALLOCA_H */ | ||
| 2644 | #endif /* __GNUC__ */ | ||
| 2620 | #ifndef HAVE_SIZE_T | 2645 | #ifndef HAVE_SIZE_T |
| 2621 | typedef size_t unsigned | 2646 | typedef size_t unsigned |
| 2622 | #endif | 2647 | #endif |
| 2623 | #endif | 2648 | #endif /* NOT_C_CODE */ |
| 2624 | 2649 | ||
| 2625 | /* Define HAVE_X_I18N if we have usable i18n support. */ | 2650 | /* Define HAVE_X_I18N if we have usable i18n support. */ |
| 2626 | 2651 | ||
| @@ -2646,8 +2671,36 @@ typedef size_t unsigned | |||
| 2646 | #define NO_RETURN /* nothing */ | 2671 | #define NO_RETURN /* nothing */ |
| 2647 | #endif | 2672 | #endif |
| 2648 | 2673 | ||
| 2674 | /* These won't be used automatically yet. We also need to know, at least, | ||
| 2675 | that the stack is continuous. */ | ||
| 2676 | #ifdef __GNUC__ | ||
| 2677 | # ifndef GC_SETJMP_WORKS | ||
| 2678 | /* GC_SETJMP_WORKS is nearly always appropriate for GCC -- | ||
| 2679 | see NON_SAVING_SETJMP in the target descriptions. */ | ||
| 2680 | /* Exceptions (see NON_SAVING_SETJMP in target description) are ns32k, | ||
| 2681 | SCO5 non-ELF (but Emacs specifies ELF) and SVR3 on x86. | ||
| 2682 | Fixme: Deal with ns32k, SVR3. */ | ||
| 2683 | # define GC_SETJMP_WORKS 1 | ||
| 2684 | # endif | ||
| 2685 | # ifndef GC_LISP_OBJECT_ALIGNMENT | ||
| 2686 | # define GC_LISP_OBJECT_ALIGNMENT (__alignof__ (Lisp_Object)) | ||
| 2687 | # endif | ||
| 2688 | #endif | ||
| 2689 | |||
| 2690 | #ifndef HAVE_BCOPY | ||
| 2691 | #define bcopy(a,b,s) memcpy (b,a,s) | ||
| 2692 | #endif | ||
| 2693 | #ifndef HAVE_BZERO | ||
| 2694 | #define bzero(a,s) memset (a,0,s) | ||
| 2695 | #endif | ||
| 2696 | #ifndef HAVE_BCMP | ||
| 2697 | #define BCMP memcmp | ||
| 2698 | #endif | ||
| 2699 | |||
| 2700 | #endif /* EMACS_CONFIG_H */ | ||
| 2701 | |||
| 2649 | /* | 2702 | /* |
| 2650 | Local variables: | 2703 | Local Variables: |
| 2651 | mode: c | 2704 | mode: c |
| 2652 | End: | 2705 | End: |
| 2653 | */ | 2706 | */ |
| @@ -2688,12 +2741,10 @@ echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SC | |||
| 2688 | echo | 2741 | echo |
| 2689 | 2742 | ||
| 2690 | # Remove any trailing slashes in these variables. | 2743 | # Remove any trailing slashes in these variables. |
| 2691 | changequote(, )dnl | 2744 | [test "${prefix}" != NONE && |
| 2692 | test "${prefix}" != NONE && | ||
| 2693 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | 2745 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` |
| 2694 | test "${exec_prefix}" != NONE && | 2746 | test "${exec_prefix}" != NONE && |
| 2695 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | 2747 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`] |
| 2696 | changequote([, ])dnl | ||
| 2697 | 2748 | ||
| 2698 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set | 2749 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
| 2699 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | 2750 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile |
| @@ -2718,18 +2769,16 @@ done | |||
| 2718 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | 2769 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c |
| 2719 | # This must be done after src/config.h is built, since we rely on that file. | 2770 | # This must be done after src/config.h is built, since we rely on that file. |
| 2720 | 2771 | ||
| 2721 | changequote(, )dnl The horror, the horror. | ||
| 2722 | # Now get this: Some word that is part of the ${srcdir} directory name | 2772 | # Now get this: Some word that is part of the ${srcdir} directory name |
| 2723 | # or the ${configuration} value might, just might, happen to be an | 2773 | # or the ${configuration} value might, just might, happen to be an |
| 2724 | # identifier like `sun4' or `i386' or something, and be predefined by | 2774 | # identifier like `sun4' or `i386' or something, and be predefined by |
| 2725 | # the C preprocessor to some helpful value like 1, or maybe the empty | 2775 | # the C preprocessor to some helpful value like 1, or maybe the empty |
| 2726 | # string. Needless to say consequent macro substitutions are less | 2776 | # string. Needless to say consequent macro substitutions are less |
| 2727 | # than conducive to the makefile finding the correct directory. | 2777 | # than conducive to the makefile finding the correct directory. |
| 2728 | undefs="`echo $top_srcdir $configuration $canonical | | 2778 | [undefs="`echo $top_srcdir $configuration $canonical | |
| 2729 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | 2779 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ |
| 2730 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | 2780 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ |
| 2731 | `" | 2781 | `"] |
| 2732 | changequote([, ])dnl | ||
| 2733 | 2782 | ||
| 2734 | echo creating src/epaths.h | 2783 | echo creating src/epaths.h |
| 2735 | ${MAKE-make} epaths-force | 2784 | ${MAKE-make} epaths-force |