Mercurial > emacs
comparison configure.in @ 107407:975563054751
Replace some cpp with autoconf.
* configure.in (--with-mmdf, --with-mail-unlink):
New options, off by default.
(--with-mailhost): New option to set default POP host.
(LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF, LIBGPM, LIBS_MAIL)
(LIBHESIOD, LIBRESOLV, COM_ERRLIB, CRYPTOLIB, KRB5LIB, DESLIB, KRB4LIB):
New variables, substituted in Makefiles.
(try_libungif, ac_gif_lib_name): Replace with HAVE_GIF=maybe, LIBGIF.
(LIBGIF): Use AC_SUBST rather than AC_DEFINE.
(HAVE_LIBMAIL, HAVE_LIBLOCKFILE, HAVE_LIBCOM_ERR, HAVE_LIBCRYPTO)
(HAVE_LIBK5CRYPTO, HAVE_LIBKRB5, HAVE_LIBDES425, HAVE_LIBDES)
(HAVE_LIBKRB4, HAVE_LIBKRB): New AC_DEFINEs.
* lib-src/Makefile.in (KRB4LIB, DESLIB, KRB5LIB, CRYPTOLIB, COM_ERRLIB)
(HESIODLIB, LIBS_MAIL): Set using autoconf rather than cpp.
(BASE_CFLAGS): Remove (identical to CPP_CFLAGS).
* src/Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
(LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 17 Mar 2010 22:49:31 -0700 |
parents | 5a46c741f65e |
children | eba6eb70e988 |
comparison
equal
deleted
inserted
replaced
107406:1de48da1419b | 107407:975563054751 |
---|---|
89 fi | 89 fi |
90 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) | 90 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.]) |
91 fi | 91 fi |
92 | 92 |
93 OPTION_DEFAULT_OFF([hesiod],[support Hesiod to get the POP server host]) | 93 OPTION_DEFAULT_OFF([hesiod],[support Hesiod to get the POP server host]) |
94 dnl FIXME hesiod support may not be present, so it seems like an error | |
95 dnl to define, or at least use, this unconditionally. | |
94 if test "$with_hesiod" != no; then | 96 if test "$with_hesiod" != no; then |
95 AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) | 97 AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) |
96 fi | 98 fi |
99 | |
100 OPTION_DEFAULT_OFF([mmdf],[support MMDF mailboxes]) | |
101 if test "$with_mmdf" != no; then | |
102 AC_DEFINE(MAIL_USE_MMDF, 1, [Define to support MMDF mailboxes in movemail.]) | |
103 fi | |
104 | |
105 OPTION_DEFAULT_OFF([mail-unlink],[unlink, rather than empty, mail spool after reading]) | |
106 if test "$with_mail_unlink" != no; then | |
107 AC_DEFINE(MAIL_UNLINK_SPOOL, 1, [Define to unlink, rather than empty, mail spool after reading.]) | |
108 fi | |
109 | |
110 AC_ARG_WITH([mailhost],[AS_HELP_STRING([--with-mailhost=HOSTNAME], | |
111 [string giving default POP mail host])], | |
112 AC_DEFINE_UNQUOTED(MAILHOST, ["$withval"], [String giving fallback POP mail host.])) | |
97 | 113 |
98 OPTION_DEFAULT_ON([sound],[don't compile with sound support]) | 114 OPTION_DEFAULT_ON([sound],[don't compile with sound support]) |
99 | 115 |
100 OPTION_DEFAULT_ON([sync-input],[process async input synchronously]) | 116 OPTION_DEFAULT_ON([sync-input],[process async input synchronously]) |
101 if test "$with_sync_input" = yes; then | 117 if test "$with_sync_input" = yes; then |
2076 AC_SUBST(M17N_FLT_CFLAGS) | 2092 AC_SUBST(M17N_FLT_CFLAGS) |
2077 AC_SUBST(M17N_FLT_LIBS) | 2093 AC_SUBST(M17N_FLT_LIBS) |
2078 | 2094 |
2079 ### Use -lXpm if available, unless `--with-xpm=no'. | 2095 ### Use -lXpm if available, unless `--with-xpm=no'. |
2080 HAVE_XPM=no | 2096 HAVE_XPM=no |
2097 LIBXPM= | |
2081 if test "${HAVE_X11}" = "yes"; then | 2098 if test "${HAVE_X11}" = "yes"; then |
2082 if test "${with_xpm}" != "no"; then | 2099 if test "${with_xpm}" != "no"; then |
2083 AC_CHECK_HEADER(X11/xpm.h, | 2100 AC_CHECK_HEADER(X11/xpm.h, |
2084 [AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, HAVE_XPM=yes, , -lX11)]) | 2101 [AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, HAVE_XPM=yes, , -lX11)]) |
2085 if test "${HAVE_XPM}" = "yes"; then | 2102 if test "${HAVE_XPM}" = "yes"; then |
2099 fi | 2116 fi |
2100 fi | 2117 fi |
2101 | 2118 |
2102 if test "${HAVE_XPM}" = "yes"; then | 2119 if test "${HAVE_XPM}" = "yes"; then |
2103 AC_DEFINE(HAVE_XPM, 1, [Define to 1 if you have the Xpm libary (-lXpm).]) | 2120 AC_DEFINE(HAVE_XPM, 1, [Define to 1 if you have the Xpm libary (-lXpm).]) |
2104 fi | 2121 LIBXPM=-lXpm |
2105 fi | 2122 fi |
2123 fi | |
2124 AC_SUBST(LIBXPM) | |
2106 | 2125 |
2107 ### Use -ljpeg if available, unless `--with-jpeg=no'. | 2126 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
2108 HAVE_JPEG=no | 2127 HAVE_JPEG=no |
2128 LIBJPEG= | |
2109 if test "${HAVE_X11}" = "yes"; then | 2129 if test "${HAVE_X11}" = "yes"; then |
2110 if test "${with_jpeg}" != "no"; then | 2130 if test "${with_jpeg}" != "no"; then |
2111 dnl Checking for jpeglib.h can lose because of a redefinition of | 2131 dnl Checking for jpeglib.h can lose because of a redefinition of |
2112 dnl HAVE_STDLIB_H. | 2132 dnl HAVE_STDLIB_H. |
2113 AC_CHECK_HEADER(jerror.h, | 2133 AC_CHECK_HEADER(jerror.h, |
2123 ], | 2143 ], |
2124 [AC_DEFINE(HAVE_JPEG)], | 2144 [AC_DEFINE(HAVE_JPEG)], |
2125 [AC_MSG_WARN([libjpeg found, but not version 6b or later]) | 2145 [AC_MSG_WARN([libjpeg found, but not version 6b or later]) |
2126 HAVE_JPEG=no]) | 2146 HAVE_JPEG=no]) |
2127 fi | 2147 fi |
2128 fi | 2148 if test "${HAVE_JPEG}" = "yes"; then |
2149 LIBJPEG=-ljpeg | |
2150 fi | |
2151 fi | |
2152 AC_SUBST(LIBJPEG) | |
2129 | 2153 |
2130 ### Use -lpng if available, unless `--with-png=no'. | 2154 ### Use -lpng if available, unless `--with-png=no'. |
2131 HAVE_PNG=no | 2155 HAVE_PNG=no |
2156 LIBPNG= | |
2132 if test "${HAVE_X11}" = "yes"; then | 2157 if test "${HAVE_X11}" = "yes"; then |
2133 if test "${with_png}" != "no"; then | 2158 if test "${with_png}" != "no"; then |
2134 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h | 2159 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
2135 # in /usr/include/libpng. | 2160 # in /usr/include/libpng. |
2136 AC_CHECK_HEADERS(png.h libpng/png.h) | 2161 AC_CHECK_HEADERS(png.h libpng/png.h) |
2139 fi | 2164 fi |
2140 fi | 2165 fi |
2141 | 2166 |
2142 if test "${HAVE_PNG}" = "yes"; then | 2167 if test "${HAVE_PNG}" = "yes"; then |
2143 AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).]) | 2168 AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).]) |
2144 fi | 2169 LIBPNG="-lpng -lz -lm" |
2145 fi | 2170 fi |
2171 fi | |
2172 AC_SUBST(LIBPNG) | |
2146 | 2173 |
2147 ### Use -ltiff if available, unless `--with-tiff=no'. | 2174 ### Use -ltiff if available, unless `--with-tiff=no'. |
2148 HAVE_TIFF=no | 2175 HAVE_TIFF=no |
2176 LIBTIFF= | |
2149 if test "${HAVE_X11}" = "yes"; then | 2177 if test "${HAVE_X11}" = "yes"; then |
2150 if test "${with_tiff}" != "no"; then | 2178 if test "${with_tiff}" != "no"; then |
2151 AC_CHECK_HEADER(tiffio.h, | 2179 AC_CHECK_HEADER(tiffio.h, |
2152 [tifflibs="-lz -lm" | 2180 [tifflibs="-lz -lm" |
2153 # At least one tiff package requires the jpeg library. | 2181 # At least one tiff package requires the jpeg library. |
2155 AC_CHECK_LIB(tiff, TIFFGetVersion, HAVE_TIFF=yes, , $tifflibs)]) | 2183 AC_CHECK_LIB(tiff, TIFFGetVersion, HAVE_TIFF=yes, , $tifflibs)]) |
2156 fi | 2184 fi |
2157 | 2185 |
2158 if test "${HAVE_TIFF}" = "yes"; then | 2186 if test "${HAVE_TIFF}" = "yes"; then |
2159 AC_DEFINE(HAVE_TIFF, 1, [Define to 1 if you have the tiff library (-ltiff).]) | 2187 AC_DEFINE(HAVE_TIFF, 1, [Define to 1 if you have the tiff library (-ltiff).]) |
2160 fi | 2188 dnl FIXME -lz -lm, as per libpng? |
2161 fi | 2189 LIBTIFF=-ltiff |
2190 fi | |
2191 fi | |
2192 AC_SUBST(LIBTIFF) | |
2162 | 2193 |
2163 ### Use -lgif or -lungif if available, unless `--with-gif=no'. | 2194 ### Use -lgif or -lungif if available, unless `--with-gif=no'. |
2164 HAVE_GIF=no | 2195 HAVE_GIF=no |
2196 LIBGIF= | |
2165 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then | 2197 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then |
2166 AC_CHECK_HEADER(gif_lib.h, | 2198 AC_CHECK_HEADER(gif_lib.h, |
2167 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | 2199 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
2168 # Earlier versions can crash Emacs. | 2200 # Earlier versions can crash Emacs. |
2169 [AC_CHECK_LIB(gif, EGifPutExtensionLast, HAVE_GIF=yes, try_libungif=yes)]) | 2201 [AC_CHECK_LIB(gif, EGifPutExtensionLast, HAVE_GIF=yes, HAVE_GIF=maybe)]) |
2170 | 2202 |
2171 if test "$HAVE_GIF" = yes; then | 2203 if test "$HAVE_GIF" = yes; then |
2172 ac_gif_lib_name="-lgif" | 2204 LIBGIF=-lgif |
2173 fi | 2205 elif test "$HAVE_GIF" = maybe; then |
2174 | |
2175 # If gif_lib.h but no libgif, try libungif. | 2206 # If gif_lib.h but no libgif, try libungif. |
2176 if test x"$try_libungif" = xyes; then | 2207 AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes, HAVE_GIF=no) |
2177 AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes) | 2208 test "$HAVE_GIF" = yes && LIBGIF=-lungif |
2178 | |
2179 if test "$HAVE_GIF" = yes; then | |
2180 AC_DEFINE(LIBGIF, -lungif, [Compiler option to link with the gif library (if not -lgif).]) | |
2181 ac_gif_lib_name="-lungif" | |
2182 fi | |
2183 fi | 2209 fi |
2184 | 2210 |
2185 if test "${HAVE_GIF}" = "yes"; then | 2211 if test "${HAVE_GIF}" = "yes"; then |
2186 AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have a gif library (default -lgif; otherwise specify with LIBGIF).]) | 2212 AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have a gif (or ungif) library.]) |
2187 fi | 2213 fi |
2188 fi | 2214 fi |
2215 AC_SUBST(LIBGIF) | |
2189 | 2216 |
2190 dnl Check for required libraries. | 2217 dnl Check for required libraries. |
2191 if test "${HAVE_X11}" = "yes"; then | 2218 if test "${HAVE_X11}" = "yes"; then |
2192 MISSING="" | 2219 MISSING="" |
2193 WITH_NO="" | 2220 WITH_NO="" |
2212 fi | 2239 fi |
2213 fi | 2240 fi |
2214 | 2241 |
2215 ### Use -lgpm if available, unless `--with-gpm=no'. | 2242 ### Use -lgpm if available, unless `--with-gpm=no'. |
2216 HAVE_GPM=no | 2243 HAVE_GPM=no |
2244 LIBGPM= | |
2217 if test "${with_gpm}" != "no"; then | 2245 if test "${with_gpm}" != "no"; then |
2218 AC_CHECK_HEADER(gpm.h, | 2246 AC_CHECK_HEADER(gpm.h, |
2219 [AC_CHECK_LIB(gpm, Gpm_Open, HAVE_GPM=yes)]) | 2247 [AC_CHECK_LIB(gpm, Gpm_Open, HAVE_GPM=yes)]) |
2220 fi | 2248 |
2221 | 2249 if test "${HAVE_GPM}" = "yes"; then |
2222 if test "${HAVE_GPM}" = "yes"; then | 2250 AC_DEFINE(HAVE_GPM, 1, [Define to 1 if you have the gpm library (-lgpm).]) |
2223 AC_DEFINE(HAVE_GPM, 1, [Define to 1 if you have the gpm library (-lgpm).]) | 2251 LIBGPM=-lgpm |
2224 fi | 2252 fi |
2253 fi | |
2254 AC_SUBST(LIBGPM) | |
2225 | 2255 |
2226 dnl Check for malloc/malloc.h on darwin | 2256 dnl Check for malloc/malloc.h on darwin |
2227 AC_CHECK_HEADER(malloc/malloc.h, [AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])]) | 2257 AC_CHECK_HEADER(malloc/malloc.h, [AC_DEFINE(HAVE_MALLOC_MALLOC_H, 1, [Define to 1 if you have the <malloc/malloc.h> header file.])]) |
2228 | 2258 |
2229 ### Use NeXTstep API to implement GUI. | 2259 ### Use NeXTstep API to implement GUI. |
2284 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 2314 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
2285 AC_CHECK_LIB(m, sqrt) | 2315 AC_CHECK_LIB(m, sqrt) |
2286 | 2316 |
2287 # Check for mail-locking functions in a "mail" library. Probably this should | 2317 # Check for mail-locking functions in a "mail" library. Probably this should |
2288 # have the same check as for liblockfile below. | 2318 # have the same check as for liblockfile below. |
2289 AC_CHECK_LIB(mail, maillock) | 2319 AC_CHECK_LIB(mail, maillock, have_mail=yes, have_mail=no) |
2320 if test $have_mail = yes; then | |
2321 LIBS_MAIL=-lmail | |
2322 LIBS="$LIBS_MAIL $LIBS" | |
2323 AC_DEFINE(HAVE_LIBMAIL, 1, [Define to 1 if you have the `mail' library (-lmail).]) | |
2324 else | |
2325 LIBS_MAIL= | |
2326 fi | |
2290 dnl Debian, at least: | 2327 dnl Debian, at least: |
2291 AC_CHECK_LIB(lockfile, maillock) | 2328 AC_CHECK_LIB(lockfile, maillock, have_lockfile=yes, have_lockfile=no) |
2329 if test $have_lockfile = yes; then | |
2330 LIBS_MAIL=-llockfile | |
2331 LIBS="$LIBS_MAIL $LIBS" | |
2332 AC_DEFINE(HAVE_LIBLOCKFILE, 1, [Define to 1 if you have the `lockfile' library (-llockfile).]) | |
2333 else | |
2292 # If we have the shared liblockfile, assume we must use it for mail | 2334 # If we have the shared liblockfile, assume we must use it for mail |
2293 # locking (e.g. Debian). If we couldn't link against liblockfile | 2335 # locking (e.g. Debian). If we couldn't link against liblockfile |
2294 # (no liblockfile.a installed), ensure that we don't need to. | 2336 # (no liblockfile.a installed), ensure that we don't need to. |
2295 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
2296 dnl This works for files generally, not just executables. | 2337 dnl This works for files generally, not just executables. |
2297 dnl Should we look elsewhere for it? Maybe examine /etc/ld.so.conf? | 2338 dnl Should we look elsewhere for it? Maybe examine /etc/ld.so.conf? |
2298 AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no, | 2339 AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no, |
2299 /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH) | 2340 /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH) |
2300 if test $ac_cv_prog_liblockfile = yes; then | 2341 if test $ac_cv_prog_liblockfile = yes; then |
2301 AC_MSG_ERROR([Shared liblockfile found but can't link against it. | 2342 AC_MSG_ERROR([Shared liblockfile found but can't link against it. |
2302 This probably means that movemail could lose mail. | 2343 This probably means that movemail could lose mail. |
2303 There may be a `development' package to install containing liblockfile.]) | 2344 There may be a `development' package to install containing liblockfile.]) |
2304 else : | |
2305 fi | 2345 fi |
2306 fi | 2346 fi |
2307 AC_CHECK_FUNCS(touchlock) | 2347 AC_CHECK_FUNCS(touchlock) |
2308 AC_CHECK_HEADERS(maillock.h) | 2348 AC_CHECK_HEADERS(maillock.h) |
2349 AC_SUBST(LIBS_MAIL) | |
2309 | 2350 |
2310 AC_CHECK_FUNCS(gethostname getdomainname dup2 \ | 2351 AC_CHECK_FUNCS(gethostname getdomainname dup2 \ |
2311 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ | 2352 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
2312 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ | 2353 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ |
2313 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 2354 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
2381 if test "$have_res_init" = yes; then | 2422 if test "$have_res_init" = yes; then |
2382 AC_DEFINE(HAVE_RES_INIT, 1, [Define to 1 if res_init is available.]) | 2423 AC_DEFINE(HAVE_RES_INIT, 1, [Define to 1 if res_init is available.]) |
2383 fi | 2424 fi |
2384 | 2425 |
2385 # Do we need the Hesiod library to provide the support routines? | 2426 # Do we need the Hesiod library to provide the support routines? |
2427 LIBHESIOD= | |
2386 if test "$with_hesiod" != no ; then | 2428 if test "$with_hesiod" != no ; then |
2387 # Don't set $LIBS here -- see comments above. | 2429 # Don't set $LIBS here -- see comments above. FIXME which comments? |
2388 AC_CHECK_FUNC(res_send, , [AC_CHECK_FUNC(__res_send, , | 2430 AC_CHECK_FUNC(res_send, , [AC_CHECK_FUNC(__res_send, , |
2389 [AC_CHECK_LIB(resolv, res_send, resolv=yes, | 2431 [AC_CHECK_LIB(resolv, res_send, resolv=yes, |
2390 [AC_CHECK_LIB(resolv, __res_send, resolv=yes)])])]) | 2432 [AC_CHECK_LIB(resolv, __res_send, resolv=yes)])])]) |
2391 if test "$resolv" = yes ; then | 2433 if test "$resolv" = yes ; then |
2392 RESOLVLIB=-lresolv | 2434 RESOLVLIB=-lresolv |
2393 else | 2435 else |
2394 RESOLVLIB= | 2436 RESOLVLIB= |
2395 fi | 2437 fi |
2396 AC_CHECK_FUNC(hes_getmailhost, , [AC_CHECK_LIB(hesiod, hes_getmailhost, | 2438 AC_CHECK_FUNC(hes_getmailhost, , [AC_CHECK_LIB(hesiod, hes_getmailhost, |
2397 [AC_DEFINE(HAVE_LIBHESIOD, 1, | 2439 hesiod=yes, :, $RESOLVLIB)]) |
2398 [Define to 1 if you have the hesiod library (-lhesiod).])], | 2440 |
2399 :, $RESOLVLIB)]) | 2441 if test x"$hesiod" = xyes; then |
2400 fi | 2442 AC_DEFINE(HAVE_LIBHESIOD, 1, |
2443 [Define to 1 if you have the hesiod library (-lhesiod).]) | |
2444 LIBHESIOD=-lhesiod | |
2445 fi | |
2446 fi | |
2447 AC_SUBST(LIBHESIOD) | |
2401 | 2448 |
2402 # Do we need libresolv (due to res_init or Hesiod)? | 2449 # Do we need libresolv (due to res_init or Hesiod)? |
2403 if test "$resolv" = yes ; then | 2450 if test "$resolv" = yes ; then |
2404 AC_DEFINE(HAVE_LIBRESOLV, 1, | 2451 AC_DEFINE(HAVE_LIBRESOLV, 1, |
2405 [Define to 1 if you have the resolv library (-lresolv).]) | 2452 [Define to 1 if you have the resolv library (-lresolv).]) |
2406 fi | 2453 LIBRESOLV=-lresolv |
2454 else | |
2455 LIBRESOLV= | |
2456 fi | |
2457 AC_SUBST(LIBRESOLV) | |
2407 | 2458 |
2408 # These tell us which Kerberos-related libraries to use. | 2459 # These tell us which Kerberos-related libraries to use. |
2460 COM_ERRLIB= | |
2461 CRYPTOLIB= | |
2462 KRB5LIB= | |
2463 DESLIB= | |
2464 KRB4LIB= | |
2465 | |
2409 if test "${with_kerberos}" != no; then | 2466 if test "${with_kerberos}" != no; then |
2410 AC_CHECK_LIB(com_err, com_err) | 2467 AC_CHECK_LIB(com_err, com_err, have_com_err=yes, have_com_err=no) |
2411 AC_CHECK_LIB(k5crypto, mit_des_cbc_encrypt) | 2468 if test $have_com_err = yes; then |
2412 AC_CHECK_LIB(crypto, mit_des_cbc_encrypt) | 2469 COM_ERRLIB=-lcom_err |
2413 AC_CHECK_LIB(krb5, krb5_init_context) | 2470 LIBS="$COM_ERRLIB $LIBS" |
2471 AC_DEFINE(HAVE_LIBCOM_ERR, 1, [Define to 1 if you have the `com_err' library (-lcom_err).]) | |
2472 fi | |
2473 AC_CHECK_LIB(crypto, mit_des_cbc_encrypt, have_crypto=yes, have_crypto=no) | |
2474 if test $have_crypto = yes; then | |
2475 CRYPTOLIB=-lcrypto | |
2476 LIBS="$CRYPTOLIB $LIBS" | |
2477 AC_DEFINE(HAVE_LIBCRYPTO, 1, [Define to 1 if you have the `crypto' library (-lcrypto).]) | |
2478 fi | |
2479 AC_CHECK_LIB(k5crypto, mit_des_cbc_encrypt, have_k5crypto=yes, have_k5crypto=no) | |
2480 if test $have_k5crypto = yes; then | |
2481 CRYPTOLIB=-lk5crypto | |
2482 LIBS="$CRYPTOLIB $LIBS" | |
2483 AC_DEFINE(HAVE_LIBK5CRYPTO, 1, [Define to 1 if you have the `k5crypto' library (-lk5crypto).]) | |
2484 fi | |
2485 AC_CHECK_LIB(krb5, krb5_init_context, have_krb5=yes, have_krb5=no) | |
2486 if test $have_krb5=yes; then | |
2487 KRB5LIB=-lkrb5 | |
2488 LIBS="$KRB5LIB $LIBS" | |
2489 AC_DEFINE(HAVE_LIBKRB5, 1, [Define to 1 if you have the `krb5' library (-lkrb5).]) | |
2490 fi | |
2491 dnl FIXME Simplify. Does not match 22 logic, thanks to default_off? | |
2414 if test "${with_kerberos5}" = no; then | 2492 if test "${with_kerberos5}" = no; then |
2415 AC_CHECK_LIB(des425, des_cbc_encrypt,, | 2493 AC_CHECK_LIB(des425, des_cbc_encrypt, have_des425=yes, have_des425=no ) |
2416 [AC_CHECK_LIB(des, des_cbc_encrypt)]) | 2494 if test $have_des425 = yes; then |
2417 AC_CHECK_LIB(krb4, krb_get_cred,, | 2495 DESLIB=-ldes425 |
2418 [AC_CHECK_LIB(krb, krb_get_cred)]) | 2496 LIBS="$DESLIB $LIBS" |
2497 AC_DEFINE(HAVE_LIBDES425, 1, [Define to 1 if you have the `des425' library (-ldes425).]) | |
2498 else | |
2499 AC_CHECK_LIB(des, des_cbc_encrypt, have_des=yes, have_des=no) | |
2500 if test $have_des = yes; then | |
2501 DESLIB=-ldes | |
2502 LIBS="$DESLIB $LIBS" | |
2503 AC_DEFINE(HAVE_LIBDES, 1, [Define to 1 if you have the `des' library (-ldes).]) | |
2504 fi | |
2505 fi | |
2506 AC_CHECK_LIB(krb4, krb_get_cred, have_krb4=yes, have_krb4=no) | |
2507 if test $have_krb4 = yes; then | |
2508 KRB4LIB=-lkrb4 | |
2509 LIBS="$KRB4LIB $LIBS" | |
2510 AC_DEFINE(HAVE_LIBKRB4, 1, [Define to 1 if you have the `krb4' library (-lkrb4).]) | |
2511 else | |
2512 AC_CHECK_LIB(krb, krb_get_cred, have_krb=yes, have_krb=no) | |
2513 if test $have_krb = yes; then | |
2514 KRB4LIB=-lkrb | |
2515 LIBS="$KRB4LIB $LIBS" | |
2516 AC_DEFINE(HAVE_LIBKRB, 1, [Define to 1 if you have the `krb' library (-lkrb).]) | |
2517 fi | |
2518 fi | |
2419 fi | 2519 fi |
2420 | 2520 |
2421 if test "${with_kerberos5}" != no; then | 2521 if test "${with_kerberos5}" != no; then |
2422 AC_CHECK_HEADERS(krb5.h, | 2522 AC_CHECK_HEADERS(krb5.h, |
2423 [AC_CHECK_MEMBERS([krb5_error.text, krb5_error.e_text],,, | 2523 [AC_CHECK_MEMBERS([krb5_error.text, krb5_error.e_text],,, |
2430 [AC_CHECK_HEADERS(kerberosIV/krb.h,, | 2530 [AC_CHECK_HEADERS(kerberosIV/krb.h,, |
2431 [AC_CHECK_HEADERS(kerberos/krb.h)])]) | 2531 [AC_CHECK_HEADERS(kerberos/krb.h)])]) |
2432 fi | 2532 fi |
2433 AC_CHECK_HEADERS(com_err.h) | 2533 AC_CHECK_HEADERS(com_err.h) |
2434 fi | 2534 fi |
2535 | |
2536 AC_SUBST(COM_ERRLIB) | |
2537 AC_SUBST(CRYPTOLIB) | |
2538 AC_SUBST(KRB5LIB) | |
2539 AC_SUBST(DESLIB) | |
2540 AC_SUBST(KRB4LIB) | |
2435 | 2541 |
2436 # Solaris requires -lintl if you want strerror (which calls dgettext) | 2542 # Solaris requires -lintl if you want strerror (which calls dgettext) |
2437 # to return localized messages. | 2543 # to return localized messages. |
2438 AC_CHECK_LIB(intl, dgettext) | 2544 AC_CHECK_LIB(intl, dgettext) |
2439 | 2545 |
3007 | 3113 |
3008 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | 3114 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" |
3009 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | 3115 echo " Does Emacs use -lXpm? ${HAVE_XPM}" |
3010 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | 3116 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" |
3011 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | 3117 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" |
3012 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name" | 3118 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF" |
3013 echo " Does Emacs use -lpng? ${HAVE_PNG}" | 3119 echo " Does Emacs use -lpng? ${HAVE_PNG}" |
3014 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" | 3120 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
3015 echo " Does Emacs use -lgpm? ${HAVE_GPM}" | 3121 echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
3016 echo " Does Emacs use -ldbus? ${HAVE_DBUS}" | 3122 echo " Does Emacs use -ldbus? ${HAVE_DBUS}" |
3017 echo " Does Emacs use -lgconf? ${HAVE_GCONF}" | 3123 echo " Does Emacs use -lgconf? ${HAVE_GCONF}" |