/[emacs]/emacs/configure.in
ViewVC logotype

Diff of /emacs/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.285.2.1 by fx, Tue Jun 11 18:31:18 2002 UTC revision 1.285.2.2 by fx, Wed Jul 31 22:26:08 2002 UTC
# Line 23  dnl  along with GNU Emacs; see the file Line 23  dnl  along with GNU Emacs; see the file
23  dnl  Free Software Foundation, Inc., 59 Temple Place - Suite 330,  dnl  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24  dnl  Boston, MA 02111-1307, USA.  dnl  Boston, MA 02111-1307, USA.
25    
26  AC_PREREQ(2.51)dnl  AC_PREREQ(2.53)dnl
27  AC_INIT(src/lisp.h)  AC_INIT(src/lisp.h)
28  AC_CONFIG_HEADER(src/config.h:src/config.in)  AC_CONFIG_HEADER(src/config.h:src/config.in)
29    
# Line 48  AC_ARG_WITH(pop, Line 48  AC_ARG_WITH(pop,
48  else :  else :
49  fi],  fi],
50  AC_DEFINE(MAIL_USE_POP))  AC_DEFINE(MAIL_USE_POP))
51    AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl
52  AC_ARG_WITH(kerberos,  AC_ARG_WITH(kerberos,
53  [  --with-kerberos         support Kerberos-authenticated POP],  [  --with-kerberos         support Kerberos-authenticated POP],
54  [AC_DEFINE(KERBEROS)])  [AC_DEFINE(KERBEROS)])
55    AH_TEMPLATE(KERBEROS,
56                [Define to support Kerberos-authenticated POP mail retrieval.])dnl
57  AC_ARG_WITH(kerberos5,  AC_ARG_WITH(kerberos5,
58  [  --with-kerberos5        support Kerberos version 5 authenticated POP],  [  --with-kerberos5        support Kerberos version 5 authenticated POP],
59  [if test "${with_kerberos5+set}" = set; then  [if test "${with_kerberos5+set}" = set; then
# Line 59  AC_ARG_WITH(kerberos5, Line 62  AC_ARG_WITH(kerberos5,
62      AC_DEFINE(KERBEROS)      AC_DEFINE(KERBEROS)
63    fi    fi
64  fi  fi
65  AC_DEFINE(KERBEROS5)])  AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.])])
66  AC_ARG_WITH(hesiod,  AC_ARG_WITH(hesiod,
67  [  --with-hesiod           support Hesiod to get the POP server host],  [  --with-hesiod           support Hesiod to get the POP server host],
68  [AC_DEFINE(HESIOD)])  [AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.])])
69    
70  dnl This should be the last --with option, because --with-x is  dnl This should be the last --with option, because --with-x is
71  dnl added later on when we find the path of X, and it's best to  dnl added later on when we find the path of X, and it's best to
72  dnl keep them together visually.  dnl keep them together visually.
# Line 1190  dnl checks for programs Line 1194  dnl checks for programs
1194  AC_PROG_LN_S  AC_PROG_LN_S
1195  AC_PROG_CPP  AC_PROG_CPP
1196  AC_PROG_INSTALL  AC_PROG_INSTALL
 AC_PROG_YACC  
1197  if test "x$RANLIB" = x; then  if test "x$RANLIB" = x; then
1198    AC_PROG_RANLIB    AC_PROG_RANLIB
1199  fi  fi
# Line 1354  AC_SUBST(LIBSOUND) Line 1357  AC_SUBST(LIBSOUND)
1357  dnl checks for header files  dnl checks for header files
1358  AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \  AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
1359    linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \    linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
1360    termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h)    termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \
1361      sys/param.h)
1362  AC_HEADER_STDC  AC_HEADER_STDC
1363  AC_HEADER_TIME  AC_HEADER_TIME
1364  AC_DECL_SYS_SIGLIST  AC_DECL_SYS_SIGLIST
# Line 1377  AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIM Line 1381  AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIM
1381  #endif], [static struct utimbuf x; x.actime = x.modtime;],  #endif], [static struct utimbuf x; x.actime = x.modtime;],
1382    emacs_cv_struct_utimbuf=yes, emacs_cv_struct_utimbuf=no))    emacs_cv_struct_utimbuf=yes, emacs_cv_struct_utimbuf=no))
1383  if test $emacs_cv_struct_utimbuf = yes; then  if test $emacs_cv_struct_utimbuf = yes; then
1384    AC_DEFINE(HAVE_STRUCT_UTIMBUF)    AC_DEFINE(HAVE_STRUCT_UTIMBUF, 1, [Define to 1 if `struct utimbuf' is declared by <utime.h>.])
1385  fi  fi
1386    
1387  dnl checks for typedefs  dnl checks for typedefs
# Line 1385  AC_TYPE_SIGNAL Line 1389  AC_TYPE_SIGNAL
1389    
1390  dnl Check for speed_t typedef.  dnl Check for speed_t typedef.
1391  AC_CACHE_CHECK(for speed_t, emacs_cv_speed_t,  AC_CACHE_CHECK(for speed_t, emacs_cv_speed_t,
1392  AC_TRY_COMPILE([#include <termios.h>], [speed_t x = 1;],    [AC_TRY_COMPILE([#include <termios.h>], [speed_t x = 1;],
1393    emacs_cv_speed_t=yes, emacs_cv_speed_t=no))      emacs_cv_speed_t=yes, emacs_cv_speed_t=no)])
1394  if test $emacs_cv_speed_t = yes; then  if test $emacs_cv_speed_t = yes; then
1395    AC_DEFINE(HAVE_SPEED_T)    AC_DEFINE(HAVE_SPEED_T, 1,
1396               [Define to 1 if `speed_t' is declared by <termios.h>.])
1397  fi  fi
1398    
1399  AC_CACHE_CHECK(for struct timeval, emacs_cv_struct_timeval,  AC_CACHE_CHECK(for struct timeval, emacs_cv_struct_timeval,
# Line 1405  AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIM Line 1410  AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIM
1410    emacs_cv_struct_timeval=yes, emacs_cv_struct_timeval=no))    emacs_cv_struct_timeval=yes, emacs_cv_struct_timeval=no))
1411  HAVE_TIMEVAL=$emacs_cv_struct_timeval  HAVE_TIMEVAL=$emacs_cv_struct_timeval
1412  if test $emacs_cv_struct_timeval = yes; then  if test $emacs_cv_struct_timeval = yes; then
1413    AC_DEFINE(HAVE_TIMEVAL)    AC_DEFINE(HAVE_TIMEVAL, 1, [Define to 1 if `struct timeval' is declared by <sys/time.h>.])
1414  fi  fi
1415    
1416  AC_CACHE_CHECK(for struct exception, emacs_cv_struct_exception,  AC_CACHE_CHECK(for struct exception, emacs_cv_struct_exception,
# Line 1414  AC_TRY_COMPILE([#include <math.h>], Line 1419  AC_TRY_COMPILE([#include <math.h>],
1419    emacs_cv_struct_exception=yes, emacs_cv_struct_exception=no))    emacs_cv_struct_exception=yes, emacs_cv_struct_exception=no))
1420  HAVE_EXCEPTION=$emacs_cv_struct_exception  HAVE_EXCEPTION=$emacs_cv_struct_exception
1421  if test $emacs_cv_struct_exception != yes; then  if test $emacs_cv_struct_exception != yes; then
1422    AC_DEFINE(NO_MATHERR)    AC_DEFINE(NO_MATHERR, 1, [Define to 1 if you don't have struct exception in math.h.])
1423  fi  fi
1424    
1425  dnl checks for structure members  dnl checks for structure members
1426  AC_STRUCT_TM  AC_STRUCT_TM
1427  AC_STRUCT_TIMEZONE  AC_STRUCT_TIMEZONE
1428  AC_CACHE_CHECK(for tm_gmtoff in struct tm, emacs_cv_tm_gmtoff,  AC_CHECK_MEMBER(struct tm.tm_gmtoff,
1429  AC_TRY_LINK([#include <time.h>], [struct tm t; t.tm_gmtoff = 0],                  [AC_DEFINE(HAVE_TM_GMTOFF, 1,
1430    emacs_cv_tm_gmtoff=yes,                             [Define to 1 if `tm_gmtoff' is member of `struct tm'.])],,
1431    emacs_cv_tm_gmtoff=no))                  [#include <time.h>])
 if test $emacs_cv_tm_gmtoff = yes; then  
   AC_DEFINE(HAVE_TM_GMTOFF)  
 fi  
1432    
1433  dnl checks for compiler characteristics  dnl checks for compiler characteristics
1434    
# Line 1448  if test $emacs_cv_void_star = yes; then Line 1450  if test $emacs_cv_void_star = yes; then
1450  else  else
1451    AC_DEFINE(POINTER_TYPE, char)    AC_DEFINE(POINTER_TYPE, char)
1452  fi  fi
1453    AH_TEMPLATE(POINTER_TYPE,
1454                [Define as `void' if your compiler accepts `void *'; otherwise
1455                 define as `char'.])dnl
1456    
1457  dnl check for Make feature  dnl check for Make feature
1458  AC_PROG_MAKE_SET  AC_PROG_MAKE_SET
# Line 1575  if test "$doug_lea_malloc" = "yes" ; the Line 1580  if test "$doug_lea_malloc" = "yes" ; the
1580      GNU_MALLOC_reason="      GNU_MALLOC_reason="
1581        (Using Doug Lea's new malloc from the GNU C Library.)"        (Using Doug Lea's new malloc from the GNU C Library.)"
1582    fi    fi
1583    AC_DEFINE(DOUG_LEA_MALLOC)    AC_DEFINE(DOUG_LEA_MALLOC, 1,
1584                [Define to 1 if you are using the GNU C Library.])
1585  fi  fi
1586    
1587  if test x"${REL_ALLOC}" = x; then  if test x"${REL_ALLOC}" = x; then
# Line 1679  if test "${HAVE_X11}" = "yes"; then Line 1685  if test "${HAVE_X11}" = "yes"; then
1685          emacs_xkb=yes, emacs_xkb=no)          emacs_xkb=yes, emacs_xkb=no)
1686    AC_MSG_RESULT($emacs_xkb)    AC_MSG_RESULT($emacs_xkb)
1687    if test $emacs_xkb = yes; then    if test $emacs_xkb = yes; then
1688      AC_DEFINE(HAVE_XKBGETKEYBOARD)      AC_DEFINE(HAVE_XKBGETKEYBOARD, 1, [Define to 1 if you have the XkbGetKeyboard function.])
1689    fi    fi
1690    
1691    AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \    AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
# Line 1696  fail; Line 1702  fail;
1702  ], emacs_cv_x11_version_6=yes, emacs_cv_x11_version_6=no)])  ], emacs_cv_x11_version_6=yes, emacs_cv_x11_version_6=no)])
1703    if test $emacs_cv_x11_version_6 = yes; then    if test $emacs_cv_x11_version_6 = yes; then
1704      AC_MSG_RESULT(6 or newer)      AC_MSG_RESULT(6 or newer)
1705      AC_DEFINE(HAVE_X11R6)      AC_DEFINE(HAVE_X11R6, 1,
1706                  [Define to 1 if you have the X11R6 or newer version of Xlib.])
1707    else    else
1708      AC_MSG_RESULT(before 6)      AC_MSG_RESULT(before 6)
1709    fi    fi
# Line 1713  fail; Line 1720  fail;
1720    if test $emacs_cv_x11_version_5 = yes; then    if test $emacs_cv_x11_version_5 = yes; then
1721      AC_MSG_RESULT(5 or newer)      AC_MSG_RESULT(5 or newer)
1722      HAVE_X11R5=yes      HAVE_X11R5=yes
1723      AC_DEFINE(HAVE_X11R5)      AC_DEFINE(HAVE_X11R5, 1,
1724                  [Define to 1 if you have the X11R5 or newer version of Xlib.])
1725    else    else
1726      HAVE_X11R5=no      HAVE_X11R5=no
1727      AC_MSG_RESULT(before 5)      AC_MSG_RESULT(before 5)
# Line 1757  fail; Line 1765  fail;
1765    HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6    HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
1766    if test $emacs_cv_x11_toolkit_version_6 = yes; then    if test $emacs_cv_x11_toolkit_version_6 = yes; then
1767      AC_MSG_RESULT(6 or newer)      AC_MSG_RESULT(6 or newer)
1768      AC_DEFINE(HAVE_X11XTR6)      AC_DEFINE(HAVE_X11XTR6, 1,
1769                  [Define to 1 if you have the X11R6 or newer version of Xt.])
1770    else    else
1771      AC_MSG_RESULT(before 6)      AC_MSG_RESULT(before 6)
1772    fi    fi
# Line 1793  Motif version prior to 2.1. Line 1802  Motif version prior to 2.1.
1802    HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1    HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
1803    if test $emacs_cv_motif_version_2_1 = yes; then    if test $emacs_cv_motif_version_2_1 = yes; then
1804      HAVE_LIBXP=no      HAVE_LIBXP=no
1805      AC_DEFINE(HAVE_MOTIF_2_1)      AC_DEFINE(HAVE_MOTIF_2_1, 1,
1806                  [Define to 1 if you have Motif 2.1 or newer.])
1807      AC_CHECK_LIB(Xp, XpCreateContext, HAVE_LIBXP=yes)      AC_CHECK_LIB(Xp, XpCreateContext, HAVE_LIBXP=yes)
1808      if test ${HAVE_LIBXP} = yes; then      if test ${HAVE_LIBXP} = yes; then
1809        AC_DEFINE(HAVE_LIBXP)        AC_DEFINE(HAVE_LIBXP, 1,
1810                    [Define to 1 if you have the Xp library (-lXp).])
1811      fi        fi  
1812    fi    fi
1813  fi  fi
# Line 1808  if test "${HAVE_X11}" = "yes"; then Line 1819  if test "${HAVE_X11}" = "yes"; then
1819      AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h,      AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h,
1820          AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes))          AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes))
1821      if test "${HAVE_XAW3D}" = "yes"; then      if test "${HAVE_XAW3D}" = "yes"; then
1822          AC_DEFINE(HAVE_XAW3D)          AC_DEFINE(HAVE_XAW3D, 1,
1823                      [Define to 1 if you have the Xaw3d library (-lXaw3d).])
1824      fi      fi
1825    fi    fi
1826  fi  fi
# Line 1817  dnl Use toolkit scroll bars if configure Line 1829  dnl Use toolkit scroll bars if configure
1829  dnl using Motif or Xaw3d is available, and unless  dnl using Motif or Xaw3d is available, and unless
1830  dnl --with-toolkit-scroll-bars=no was specified.  dnl --with-toolkit-scroll-bars=no was specified.
1831    
1832    AH_TEMPLATE(USE_TOOLKIT_SCROLL_BARS,
1833                [Define to 1 if we should use toolkit scroll bars.])dnl
1834  USE_TOOLKIT_SCROLL_BARS=no  USE_TOOLKIT_SCROLL_BARS=no
1835  if test "${with_toolkit_scroll_bars}" != "no"; then  if test "${with_toolkit_scroll_bars}" != "no"; then
1836    if test "${USE_X_TOOLKIT}" != "none"; then    if test "${USE_X_TOOLKIT}" != "none"; then
# Line 1835  dnl Don't use X11 input methods if user Line 1849  dnl Don't use X11 input methods if user
1849  dnl with `--with-xim=no'.  dnl with `--with-xim=no'.
1850    
1851  if test "${with_xim}" != "no"; then  if test "${with_xim}" != "no"; then
1852    AC_DEFINE(USE_XIM)    AC_DEFINE(USE_XIM, 1,
1853                [Define to 1 if we should use XIM, if it is available.])
1854  fi  fi
1855    
1856  ### Use -lXpm if available, unless `--with-xpm=no'.  ### Use -lXpm if available, unless `--with-xpm=no'.
# Line 1862  no_return_alloc_pixels Line 1877  no_return_alloc_pixels
1877    fi    fi
1878    
1879    if test "${HAVE_XPM}" = "yes"; then    if test "${HAVE_XPM}" = "yes"; then
1880      AC_DEFINE(HAVE_XPM)      AC_DEFINE(HAVE_XPM, 1, [Define to 1 if you have the Xpm libary (-lXpm).])
1881    fi    fi
1882  fi  fi
1883        
# Line 1876  if test "${HAVE_X11}" = "yes"; then Line 1891  if test "${HAVE_X11}" = "yes"; then
1891        AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes))        AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes))
1892    fi    fi
1893    
1894      AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl
1895    if test "${HAVE_JPEG}" = "yes"; then    if test "${HAVE_JPEG}" = "yes"; then
1896      AC_DEFINE(HAVE_JPEG)      AC_DEFINE(HAVE_JPEG)
1897        AC_EGREP_CPP(
1898    changequote({, })dnl avoid leadingspace on the next line
1899    {version= *(6[2-9]|[7-9][0-9])},
1900    changequote([, ])dnl
1901            [#include <jpeglib.h>
1902             version=JPEG_LIB_VERSION
1903    ],    
1904            AC_DEFINE(HAVE_JPEG),
1905            [AC_MSG_WARN([libjpeg found, but not version 6b or later])
1906            HAVE_JPEG=no])
1907    fi    fi
1908  fi  fi
1909        
# Line 1890  if test "${HAVE_X11}" = "yes"; then Line 1916  if test "${HAVE_X11}" = "yes"; then
1916    fi    fi
1917    
1918    if test "${HAVE_PNG}" = "yes"; then    if test "${HAVE_PNG}" = "yes"; then
1919      AC_DEFINE(HAVE_PNG)      AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).])
1920    fi    fi
1921  fi  fi
1922        
# Line 1906  if test "${HAVE_X11}" = "yes"; then Line 1932  if test "${HAVE_X11}" = "yes"; then
1932    fi    fi
1933    
1934    if test "${HAVE_TIFF}" = "yes"; then    if test "${HAVE_TIFF}" = "yes"; then
1935      AC_DEFINE(HAVE_TIFF)      AC_DEFINE(HAVE_TIFF, 1, [Define to 1 if you have the tiff library (-ltiff).])
1936    fi    fi
1937  fi  fi
1938        
# Line 1921  if test "${HAVE_X11}" = "yes"; then Line 1947  if test "${HAVE_X11}" = "yes"; then
1947    fi    fi
1948    
1949    if test "${HAVE_GIF}" = "yes"; then    if test "${HAVE_GIF}" = "yes"; then
1950      AC_DEFINE(HAVE_GIF)      AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have the ungif library (-lungif).])
1951    fi    fi
1952  fi  fi
1953    
# Line 1932  AC_CACHE_CHECK(whether netdb declares h_ Line 1958  AC_CACHE_CHECK(whether netdb declares h_
1958    [return h_errno;],    [return h_errno;],
1959    emacs_cv_netdb_declares_h_errno=yes, emacs_cv_netdb_declares_h_errno=no)])    emacs_cv_netdb_declares_h_errno=yes, emacs_cv_netdb_declares_h_errno=no)])
1960  if test $emacs_cv_netdb_declares_h_errno = yes; then  if test $emacs_cv_netdb_declares_h_errno = yes; then
1961    AC_DEFINE(HAVE_H_ERRNO)    AC_DEFINE(HAVE_H_ERRNO, 1, [Define to 1 if netdb.h declares h_errno.])
1962  fi  fi
1963    
1964  AC_FUNC_ALLOCA  AC_FUNC_ALLOCA
# Line 1958  if test "$ac_cv_lib_lockfile_maillock" = Line 1984  if test "$ac_cv_lib_lockfile_maillock" =
1984      AC_MSG_ERROR([Shared liblockfile found but can't link against it.      AC_MSG_ERROR([Shared liblockfile found but can't link against it.
1985  This probably means that movemail could lose mail.  This probably means that movemail could lose mail.
1986  There may be a \`development' package to install containing liblockfile.])  There may be a \`development' package to install containing liblockfile.])
1987    else AC_DEFINE(LIBMAIL, -llockfile)    else AC_DEFINE(LIBMAIL, -llockfile, [Define to -llockfile if it is usable.])
1988    fi    fi
1989    else :    else :
1990  fi  fi
# Line 1971  random lrand48 bcopy bcmp logb frexp fmo Line 1997  random lrand48 bcopy bcmp logb frexp fmo
1997  strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \  strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
1998  utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \  utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
1999  __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \  __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
2000  gai_strerror mkstemp)  gai_strerror mkstemp mremap memmove)
2001    
2002  AC_FUNC_MKTIME  AC_FUNC_MKTIME
2003  if test "$ac_cv_func_working_mktime" = no; then  if test "$ac_cv_func_working_mktime" = no; then
2004    AC_DEFINE(BROKEN_MKTIME)    AC_DEFINE(BROKEN_MKTIME, 1, [Define to 1 if the mktime function is broken.])
2005  fi  fi
2006    
2007  AC_FUNC_GETLOADAVG  AC_FUNC_GETLOADAVG
# Line 2003  if test "$with_hesiod" = yes ; then Line 2029  if test "$with_hesiod" = yes ; then
2029                    [AC_CHECK_LIB(resolv, __res_send, resolv=yes)])])])                    [AC_CHECK_LIB(resolv, __res_send, resolv=yes)])])])
2030    if test "$resolv" = yes ; then    if test "$resolv" = yes ; then
2031      RESOLVLIB=-lresolv      RESOLVLIB=-lresolv
2032      AC_DEFINE(HAVE_LIBRESOLV)      AC_DEFINE(HAVE_LIBRESOLV, 1,
2033                  [Define to 1 if you have the resolv library (-lresolv).])
2034    else    else
2035      RESOLVLIB=      RESOLVLIB=
2036    fi    fi
2037    AC_CHECK_FUNC(hes_getmailhost, , [AC_CHECK_LIB(hesiod, hes_getmailhost,    AC_CHECK_FUNC(hes_getmailhost, , [AC_CHECK_LIB(hesiod, hes_getmailhost,
2038          AC_DEFINE(HAVE_LIBHESIOD), :, $RESOLVLIB)])          AC_DEFINE(HAVE_LIBHESIOD, 1,
2039                      [Define to 1 if you have the hesiod library (-lhesiod).]),
2040            :, $RESOLVLIB)])
2041  fi  fi
2042    
2043  # These tell us which Kerberos-related libraries to use.  # These tell us which Kerberos-related libraries to use.
# Line 2082  else Line 2111  else
2111  fi])dnl  fi])dnl
2112  AC_MSG_RESULT($emacs_cv_localtime_cache)  AC_MSG_RESULT($emacs_cv_localtime_cache)
2113  if test $emacs_cv_localtime_cache = yes; then  if test $emacs_cv_localtime_cache = yes; then
2114    AC_DEFINE(LOCALTIME_CACHE)    AC_DEFINE(LOCALTIME_CACHE, 1,
2115                [Define to 1 if localtime caches TZ.])
2116  fi  fi
2117    
2118  if test "x$HAVE_TIMEVAL" = xyes; then  if test "x$HAVE_TIMEVAL" = xyes; then
2119    AC_CHECK_FUNCS(gettimeofday)    AC_CHECK_FUNCS(gettimeofday)
2120    AC_CACHE_CHECK(whether gettimeofday can accept two arguments,    if test $ac_cv_func_gettimeofday = yes; then
2121                   emacs_cv_gettimeofday_two_arguments,      AC_CACHE_CHECK(whether gettimeofday can accept two arguments,
2122    [AC_TRY_COMPILE([                     emacs_cv_gettimeofday_two_arguments,
2123        [AC_TRY_COMPILE([
2124  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
2125  #include <sys/time.h>  #include <sys/time.h>
2126  #include <time.h>  #include <time.h>
# Line 2100  if test "x$HAVE_TIMEVAL" = xyes; then Line 2131  if test "x$HAVE_TIMEVAL" = xyes; then
2131  #include <time.h>  #include <time.h>
2132  #endif  #endif
2133  #endif],  #endif],
2134      [struct timeval time;        [struct timeval time;
2135       gettimeofday (&time, 0);],         gettimeofday (&time, 0);],
2136      emacs_cv_gettimeofday_two_arguments=yes,        emacs_cv_gettimeofday_two_arguments=yes,
2137      emacs_cv_gettimeofday_two_arguments=no)])        emacs_cv_gettimeofday_two_arguments=no)])
2138    if test $emacs_cv_gettimeofday_two_arguments = no; then      if test $emacs_cv_gettimeofday_two_arguments = no; then
2139      AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)        AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT, 1,
2140                    [Define to 1 if gettimeofday accepts only one argument.])
2141        fi
2142    fi    fi
2143  fi  fi
2144    
# Line 2147  if test $ok_so_far = yes; then Line 2180  if test $ok_so_far = yes; then
2180    AC_CHECK_HEADER(arpa/inet.h, , ok_so_far=no)    AC_CHECK_HEADER(arpa/inet.h, , ok_so_far=no)
2181  fi  fi
2182  if test $ok_so_far = yes; then  if test $ok_so_far = yes; then
2183    AC_DEFINE(HAVE_INET_SOCKETS)    AC_DEFINE(HAVE_INET_SOCKETS, 1,
2184                [Define to 1 if you have inet sockets.])
2185  fi  fi
2186    
2187  if test -f /usr/lpp/X11/bin/smt.exp; then  if test -f /usr/lpp/X11/bin/smt.exp; then
2188    AC_DEFINE(HAVE_AIX_SMT_EXP)    AC_DEFINE(HAVE_AIX_SMT_EXP, 1,
2189                [Define to 1 if the file /usr/lpp/X11/bin/smt.exp exists.])
2190  fi  fi
2191    
2192  AC_MSG_CHECKING(whether system supports dynamic ptys)  AC_MSG_CHECKING(whether system supports dynamic ptys)
2193  if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then  if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
2194    AC_MSG_RESULT(yes)    AC_MSG_RESULT(yes)
2195    AC_DEFINE(HAVE_DEV_PTMX)    AC_DEFINE(HAVE_DEV_PTMX, 1, [Define to 1 if dynamic ptys are supported.])
2196  else  else
2197    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
2198  fi  fi
# Line 2223  AC_SUBST(machfile) Line 2258  AC_SUBST(machfile)
2258  AC_SUBST(opsysfile)  AC_SUBST(opsysfile)
2259  AC_SUBST(GETLOADAVG_LIBS)  AC_SUBST(GETLOADAVG_LIBS)
2260    
2261  AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION,  "${canonical}")  AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION,  "${canonical}",
2262  AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${ac_configure_args}")                     [Define to the canonical Emacs configuration name.])
2263  AC_DEFINE_UNQUOTED(config_machfile,  "${machfile}")  AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${ac_configure_args}",
2264  AC_DEFINE_UNQUOTED(config_opsysfile, "${opsysfile}")                     [Define to the options passed to configure.])
2265  AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})  AC_DEFINE_UNQUOTED(config_machfile,  "${machfile}",
2266  AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})                     [Define to the used machine dependent file.])
2267  AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE,  ${C_SWITCH_X_SITE})  AC_DEFINE_UNQUOTED(config_opsysfile, "${opsysfile}",
2268  AC_DEFINE_UNQUOTED(UNEXEC_SRC,       ${UNEXEC_SRC})                     [Define to the used os dependent file.])
2269    AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE},
2270    [Define LD_SWITCH_X_SITE to contain any special flags your loader
2271     may need to deal with X Windows.  For instance, if you've defined
2272     HAVE_X_WINDOWS above and your X libraries aren't in a place that
2273     your loader can find on its own, you might want to add "-L/..." or
2274     something similar.])
2275    AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX},
2276                       [Define LD_SWITCH_X_SITE_AUX with an -R option
2277                        in case it's needed (for Solaris, for example).])
2278    AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE,  ${C_SWITCH_X_SITE},
2279    [Define C_SWITCH_X_SITE to contain any special flags your compiler
2280     may need to deal with X Windows.  For instance, if you've defined
2281     HAVE_X_WINDOWS above and your X include files aren't in a place
2282     that your compiler can find on its own, you might want to add
2283     "-I/..." or something similar.])
2284    AC_DEFINE_UNQUOTED(UNEXEC_SRC,       ${UNEXEC_SRC},
2285                       [Define to the unexec source file name.])
2286    
2287  if test "${HAVE_X_WINDOWS}" = "yes" ; then  if test "${HAVE_X_WINDOWS}" = "yes" ; then
2288    AC_DEFINE(HAVE_X_WINDOWS)    AC_DEFINE(HAVE_X_WINDOWS, 1,
2289                [Define to 1 if you want to use the X window system.])
2290  fi  fi
2291  if test "${USE_X_TOOLKIT}" != "none" ; then  if test "${USE_X_TOOLKIT}" != "none" ; then
2292    AC_DEFINE(USE_X_TOOLKIT)    AC_DEFINE(USE_X_TOOLKIT, 1, [Define to 1 if using an X toolkit.])
2293  fi  fi
2294  if test "${HAVE_X11}" = "yes" ; then  if test "${HAVE_X11}" = "yes" ; then
2295    AC_DEFINE(HAVE_X11)    AC_DEFINE(HAVE_X11, 1,
2296                [Define to 1 if you want to use version 11 of X windows.
2297                 Otherwise, Emacs expects to use version 10.])
2298  fi  fi
2299  if test "${HAVE_XFREE386}" = "yes" ; then  if test "${HAVE_XFREE386}" = "yes" ; then
2300    AC_DEFINE(HAVE_XFREE386)    AC_DEFINE(HAVE_XFREE386, 1, [Define to 1 if you're using XFree386.])
2301  fi  fi
2302  if test "${HAVE_MENUS}" = "yes" ; then  if test "${HAVE_MENUS}" = "yes" ; then
2303    AC_DEFINE(HAVE_MENUS)    AC_DEFINE(HAVE_MENUS, 1,
2304                [Define to 1 if you have mouse menus.
2305                 (This is automatic if you use X, but the option to specify it remains.)
2306                 It is also defined with other window systems that support xmenu.c.])
2307  fi  fi
2308  if test "${GNU_MALLOC}" = "yes" ; then  if test "${GNU_MALLOC}" = "yes" ; then
2309    AC_DEFINE(GNU_MALLOC)    AC_DEFINE(GNU_MALLOC, 1,
2310                [Define to 1 if you want to use the GNU memory allocator.])
2311  fi  fi
2312  if test "${REL_ALLOC}" = "yes" ; then  if test "${REL_ALLOC}" = "yes" ; then
2313    AC_DEFINE(REL_ALLOC)    AC_DEFINE(REL_ALLOC, 1,
2314                [Define REL_ALLOC if you want to use the relocating allocator for
2315                 buffer space.])
2316  fi  fi
2317    
2318  AC_CHECK_HEADERS(nlist.h, [AC_DEFINE(NLIST_STRUCT, 1,  AC_CHECK_HEADERS(nlist.h, [AC_DEFINE(NLIST_STRUCT, 1,
2319                   [Define if you have <nlist.h>.])])                   [Define to 1 if you have <nlist.h>.])])
2320    
2321    AH_TOP([/* GNU Emacs site configuration template file.  -*- C -*-
2322       Copyright (C) 1988, 1993, 1994, 1999, 2000 Free Software Foundation, Inc.
2323    
2324    This file is part of GNU Emacs.
2325    
2326    GNU Emacs is free software; you can redistribute it and/or modify
2327    it under the terms of the GNU General Public License as published by
2328    the Free Software Foundation; either version 2, or (at your option)
2329    any later version.
2330    
2331    GNU Emacs is distributed in the hope that it will be useful,
2332    but WITHOUT ANY WARRANTY; without even the implied warranty of
2333    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2334    GNU General Public License for more details.
2335    
2336    You should have received a copy of the GNU General Public License
2337    along with GNU Emacs; see the file COPYING.  If not, write to the
2338    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
2339    Boston, MA 02111-1307, USA.  */
2340    
2341    
2342    /* No code in Emacs #includes config.h twice, but some of the code
2343       intended to work with other packages as well (like gmalloc.c)
2344       think they can include it as many times as they like.  */
2345    #ifndef EMACS_CONFIG_H
2346    #define EMACS_CONFIG_H
2347    ])dnl
2348    
2349    AH_BOTTOM([
2350    /* If we're using any sort of window system, define some consequences.  */
2351    #ifdef HAVE_X_WINDOWS
2352    #define HAVE_WINDOW_SYSTEM
2353    #define MULTI_KBOARD
2354    #define HAVE_MOUSE
2355    #endif
2356    
2357    /* If we're using the Carbon API on Mac OS X, define a few more
2358       variables as well.  */
2359    #ifdef HAVE_CARBON
2360    #define HAVE_WINDOW_SYSTEM
2361    #define HAVE_MOUSE
2362    #define HAVE_MENUS
2363    #endif
2364    
2365    /* Define USER_FULL_NAME to return a string
2366       that is the user's full name.
2367       It can assume that the variable `pw'
2368       points to the password file entry for this user.
2369    
2370       At some sites, the pw_gecos field contains
2371       the user's full name.  If neither this nor any other
2372       field contains the right thing, use pw_name,
2373       giving the user's login name, since that is better than nothing.  */
2374    #define USER_FULL_NAME pw->pw_gecos
2375    
2376    /* Define AMPERSAND_FULL_NAME if you use the convention
2377       that & in the full name stands for the login id.  */
2378    /* Turned on June 1996 supposing nobody will mind it.  */
2379    #define AMPERSAND_FULL_NAME
2380    
2381    /* Define HAVE_SOUND if we have sound support.  We know it works
2382       and compiles only on the specified platforms.   For others,
2383       it probably doesn't make sense to try.  */
2384    
2385    #if defined __FreeBSD__ || defined __NetBSD__ || defined __linux__
2386    #ifdef HAVE_MACHINE_SOUNDCARD_H
2387    #define HAVE_SOUND 1
2388    #endif
2389    #ifdef HAVE_SYS_SOUNDCARD_H
2390    #define HAVE_SOUND 1
2391    #endif
2392    #ifdef HAVE_SOUNDCARD_H
2393    #define HAVE_SOUND 1
2394    #endif
2395    #endif /* __FreeBSD__ || __NetBSD__ || __linux__  */
2396    
2397    /* If using GNU, then support inline function declarations. */
2398    /* Don't try to switch on inline handling as detected by AC_C_INLINE
2399       generally, because even if non-gcc compilers accept `inline', they
2400       may reject `extern inline'.  */
2401    #ifdef __GNUC__
2402    #define INLINE __inline__
2403    #else
2404    #define INLINE
2405    #endif
2406    
2407    /* Include the os and machine dependent files.  */
2408    #include config_opsysfile
2409    #include config_machfile
2410    
2411    /* Load in the conversion definitions if this system
2412       needs them and the source file being compiled has not
2413       said to inhibit this.  There should be no need for you
2414       to alter these lines.  */
2415    
2416    #ifdef SHORTNAMES
2417    #ifndef NO_SHORTNAMES
2418    #include "../shortnames/remap.h"
2419    #endif /* not NO_SHORTNAMES */
2420    #endif /* SHORTNAMES */
2421    
2422    /* If no remapping takes place, static variables cannot be dumped as
2423       pure, so don't worry about the `static' keyword. */
2424    #ifdef NO_REMAP
2425    #undef static
2426    #endif
2427    
2428    /* Define `subprocesses' should be defined if you want to
2429       have code for asynchronous subprocesses
2430       (as used in M-x compile and M-x shell).
2431       These do not work for some USG systems yet;
2432       for the ones where they work, the s/SYSTEM.h file defines this flag.  */
2433    
2434    #ifndef VMS
2435    #ifndef USG
2436    /* #define subprocesses */
2437    #endif
2438    #endif
2439    
2440    /* SIGTYPE is the macro we actually use.  */
2441    #ifndef SIGTYPE
2442    #define SIGTYPE RETSIGTYPE
2443    #endif
2444    
2445    #ifdef emacs /* Don't do this for lib-src.  */
2446    /* Tell regex.c to use a type compatible with Emacs.  */
2447    #define RE_TRANSLATE_TYPE Lisp_Object
2448    #define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C)
2449    #define RE_TRANSLATE_P(TBL) (XFASTINT (TBL) != 0)
2450    #endif
2451    
2452    /* Avoid link-time collision with system mktime if we will use our own.  */
2453    #if ! HAVE_MKTIME || BROKEN_MKTIME
2454    #define mktime emacs_mktime
2455    #endif
2456    
2457    /* The rest of the code currently tests the CPP symbol BSTRING.
2458       Override any claims made by the system-description files.
2459       Note that on some SCO version it is possible to have bcopy and not bcmp.  */
2460    #undef BSTRING
2461    #if defined (HAVE_BCOPY) && defined (HAVE_BCMP)
2462    #define BSTRING
2463    #endif
2464    
2465    /* Some of the files of Emacs which are intended for use with other
2466       programs assume that if you have a config.h file, you must declare
2467       the type of getenv.
2468    
2469       This declaration shouldn't appear when alloca.s or Makefile.in
2470       includes config.h.  */
2471    #ifndef NOT_C_CODE
2472    extern char *getenv ();
2473    #endif
2474    
2475    #endif /* EMACS_CONFIG_H */
2476    
2477    /* These default definitions are good for almost all machines.
2478       The exceptions override them in m/MACHINE.h.  */
2479    
2480    #ifndef BITS_PER_CHAR
2481    #define BITS_PER_CHAR 8
2482    #endif
2483    
2484    #ifndef BITS_PER_SHORT
2485    #define BITS_PER_SHORT 16
2486    #endif
2487    
2488    /* Note that lisp.h uses this in a preprocessor conditional, so it
2489       would not work to use sizeof.  That being so, we do all of them
2490       without sizeof, for uniformity's sake.  */
2491    #ifndef BITS_PER_INT
2492    #define BITS_PER_INT 32
2493    #endif
2494    
2495    #ifndef BITS_PER_LONG
2496    #ifdef _LP64
2497    #define BITS_PER_LONG 64
2498    #else
2499    #define BITS_PER_LONG 32
2500    #endif
2501    #endif
2502    
2503    /* Define if the compiler supports function prototypes.  It may do so
2504       but not define __STDC__ (e.g. DEC C by default) or may define it as
2505       zero.  */
2506    #undef PROTOTYPES
2507    /* For mktime.c:  */
2508    #ifndef __P
2509    # if defined PROTOTYPES
2510    #  define __P(args) args
2511    # else
2512    #  define __P(args) ()
2513    # endif  /* GCC.  */
2514    #endif /* __P */
2515    
2516    
2517    /* Don't include "string.h" or <stdlib.h> in non-C code.  */
2518    #ifndef NOT_C_CODE
2519    #ifdef HAVE_STRING_H
2520    #include "string.h"
2521    #endif
2522    #ifdef HAVE_STRINGS_H
2523    #include "strings.h"  /* May be needed for bcopy & al. */
2524    #endif
2525    #ifdef HAVE_STDLIB_H
2526    #include <stdlib.h>
2527    #endif
2528    #endif
2529    
2530    /* Define HAVE_X_I18N if we have usable i18n support.  */
2531    
2532    #ifdef HAVE_X11R6
2533    #define HAVE_X_I18N
2534    #elif defined HAVE_X11R5 && !defined X11R5_INHIBIT_I18N
2535    #define HAVE_X_I18N
2536    #endif
2537    
2538    /* Define HAVE_X11R6_XIM if we have usable X11R6-style XIM support.  */
2539    
2540    #if defined HAVE_X11R6 && !defined INHIBIT_X11R6_XIM
2541    #define HAVE_X11R6_XIM
2542    #endif
2543    
2544    /* Should we enable expensive run-time checking of data types?  */
2545    #undef ENABLE_CHECKING
2546    
2547    #if defined __GNUC__ && (__GNUC__ > 2 \
2548                             || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5))
2549    #define NO_RETURN       __attribute__ ((__noreturn__))
2550    #else
2551    #define NO_RETURN       /* nothing */
2552    #endif
2553    ])dnl
2554    
2555  #### Report on what we decided to do.  #### Report on what we decided to do.
2556  echo "  echo "

Legend:
Removed from v.1.285.2.1  
changed lines
  Added in v.1.285.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26