diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 109 |
1 files changed, 94 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac index 980b4c633ba..e4647c6a301 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -352,7 +352,8 @@ OPTION_DEFAULT_OFF([w32], [use native MS Windows GUI in a Cygwin build]) | |||
| 352 | 352 | ||
| 353 | OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console]) | 353 | OPTION_DEFAULT_ON([gpm],[don't use -lgpm for mouse support on a GNU/Linux console]) |
| 354 | OPTION_DEFAULT_ON([dbus],[don't compile with D-Bus support]) | 354 | OPTION_DEFAULT_ON([dbus],[don't compile with D-Bus support]) |
| 355 | OPTION_DEFAULT_ON([gconf],[don't compile with GConf support]) | 355 | AC_ARG_WITH([gconf],[AS_HELP_STRING([--with-gconf], |
| 356 | [compile with Gconf support (Gsettings replaces this)])],[],[with_gconf=maybe]) | ||
| 356 | OPTION_DEFAULT_ON([gsettings],[don't compile with GSettings support]) | 357 | OPTION_DEFAULT_ON([gsettings],[don't compile with GSettings support]) |
| 357 | OPTION_DEFAULT_ON([selinux],[don't compile with SELinux support]) | 358 | OPTION_DEFAULT_ON([selinux],[don't compile with SELinux support]) |
| 358 | OPTION_DEFAULT_ON([gnutls],[don't use -lgnutls for SSL/TLS support]) | 359 | OPTION_DEFAULT_ON([gnutls],[don't use -lgnutls for SSL/TLS support]) |
| @@ -2506,7 +2507,8 @@ if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${HAVE_W32}" | |||
| 2506 | if test "${with_imagemagick}" != "no"; then | 2507 | if test "${with_imagemagick}" != "no"; then |
| 2507 | ## 6.3.5 is the earliest version known to work; see Bug#17339. | 2508 | ## 6.3.5 is the earliest version known to work; see Bug#17339. |
| 2508 | ## 6.8.2 makes Emacs crash; see Bug#13867. | 2509 | ## 6.8.2 makes Emacs crash; see Bug#13867. |
| 2509 | IMAGEMAGICK_MODULE="Wand >= 6.3.5 Wand != 6.8.2" | 2510 | ## 7 and later have not been ported to; See Bug#25967. |
| 2511 | IMAGEMAGICK_MODULE="Wand >= 6.3.5 Wand != 6.8.2 Wand < 7" | ||
| 2510 | EMACS_CHECK_MODULES([IMAGEMAGICK], [$IMAGEMAGICK_MODULE]) | 2512 | EMACS_CHECK_MODULES([IMAGEMAGICK], [$IMAGEMAGICK_MODULE]) |
| 2511 | 2513 | ||
| 2512 | if test $HAVE_IMAGEMAGICK = yes; then | 2514 | if test $HAVE_IMAGEMAGICK = yes; then |
| @@ -2775,6 +2777,7 @@ if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then | |||
| 2775 | AC_DEFINE(HAVE_GSETTINGS, 1, [Define to 1 if using GSettings.]) | 2777 | AC_DEFINE(HAVE_GSETTINGS, 1, [Define to 1 if using GSettings.]) |
| 2776 | SETTINGS_CFLAGS="$GSETTINGS_CFLAGS" | 2778 | SETTINGS_CFLAGS="$GSETTINGS_CFLAGS" |
| 2777 | SETTINGS_LIBS="$GSETTINGS_LIBS" | 2779 | SETTINGS_LIBS="$GSETTINGS_LIBS" |
| 2780 | test "$with_gconf" = "yes" || with_gconf=no | ||
| 2778 | fi | 2781 | fi |
| 2779 | CFLAGS=$old_CFLAGS | 2782 | CFLAGS=$old_CFLAGS |
| 2780 | LIBS=$old_LIBS | 2783 | LIBS=$old_LIBS |
| @@ -2784,7 +2787,7 @@ fi | |||
| 2784 | dnl GConf has been tested under GNU/Linux only. | 2787 | dnl GConf has been tested under GNU/Linux only. |
| 2785 | dnl The version is really arbitrary, it is about the same age as Gtk+ 2.6. | 2788 | dnl The version is really arbitrary, it is about the same age as Gtk+ 2.6. |
| 2786 | HAVE_GCONF=no | 2789 | HAVE_GCONF=no |
| 2787 | if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then | 2790 | if test "${HAVE_X11}" = "yes" && test "${with_gconf}" != "no"; then |
| 2788 | EMACS_CHECK_MODULES([GCONF], [gconf-2.0 >= 2.13]) | 2791 | EMACS_CHECK_MODULES([GCONF], [gconf-2.0 >= 2.13]) |
| 2789 | if test "$HAVE_GCONF" = yes; then | 2792 | if test "$HAVE_GCONF" = yes; then |
| 2790 | AC_DEFINE(HAVE_GCONF, 1, [Define to 1 if using GConf.]) | 2793 | AC_DEFINE(HAVE_GCONF, 1, [Define to 1 if using GConf.]) |
| @@ -2831,6 +2834,87 @@ if test "${with_gnutls}" = "yes" ; then | |||
| 2831 | AC_DEFINE(HAVE_GNUTLS, 1, [Define if using GnuTLS.]) | 2834 | AC_DEFINE(HAVE_GNUTLS, 1, [Define if using GnuTLS.]) |
| 2832 | EMACS_CHECK_MODULES([LIBGNUTLS3], [gnutls >= 3.0.0], | 2835 | EMACS_CHECK_MODULES([LIBGNUTLS3], [gnutls >= 3.0.0], |
| 2833 | [AC_DEFINE(HAVE_GNUTLS3, 1, [Define if using GnuTLS v3.])], []) | 2836 | [AC_DEFINE(HAVE_GNUTLS3, 1, [Define if using GnuTLS v3.])], []) |
| 2837 | |||
| 2838 | AC_CACHE_CHECK([for GnuTLS v3 with HMAC], [emacs_cv_gnutls3_hmac], | ||
| 2839 | [AC_COMPILE_IFELSE( | ||
| 2840 | [AC_LANG_PROGRAM([[ | ||
| 2841 | #include <gnutls/gnutls.h> | ||
| 2842 | #include <gnutls/crypto.h> | ||
| 2843 | ]], [[ | ||
| 2844 | int | ||
| 2845 | main (void) | ||
| 2846 | { | ||
| 2847 | gnutls_hmac_hd_t handle; | ||
| 2848 | gnutls_hmac_deinit (handle, NULL); | ||
| 2849 | } | ||
| 2850 | ]])], | ||
| 2851 | [emacs_cv_gnutls3_hmac=yes], | ||
| 2852 | [emacs_cv_gnutls3_hmac=no])]) | ||
| 2853 | if test "$emacs_cv_gnutls3_hmac" = yes; then | ||
| 2854 | AC_DEFINE([HAVE_GNUTLS3_HMAC], [1], | ||
| 2855 | [Define if using GnuTLS v3 with HMAC support.]) | ||
| 2856 | fi | ||
| 2857 | |||
| 2858 | AC_CACHE_CHECK([for GnuTLS v3 with AEAD], [emacs_cv_gnutls3_aead], | ||
| 2859 | [AC_COMPILE_IFELSE( | ||
| 2860 | [AC_LANG_PROGRAM([[ | ||
| 2861 | #include <gnutls/gnutls.h> | ||
| 2862 | #include <gnutls/crypto.h> | ||
| 2863 | ]], [[ | ||
| 2864 | int | ||
| 2865 | main (void) | ||
| 2866 | { | ||
| 2867 | gnutls_aead_cipher_hd_t handle; | ||
| 2868 | gnutls_aead_cipher_deinit (handle); | ||
| 2869 | } | ||
| 2870 | ]])], | ||
| 2871 | [emacs_cv_gnutls3_aead=yes], | ||
| 2872 | [emacs_cv_gnutls3_aead=no])]) | ||
| 2873 | if test "$emacs_cv_gnutls3_aead" = yes; then | ||
| 2874 | AC_DEFINE([HAVE_GNUTLS3_AEAD], [1], | ||
| 2875 | [Define if using GnuTLS v3 with AEAD support.]) | ||
| 2876 | fi | ||
| 2877 | |||
| 2878 | AC_CACHE_CHECK([for GnuTLS v3 with cipher], [emacs_cv_gnutls3_cipher], | ||
| 2879 | [AC_COMPILE_IFELSE( | ||
| 2880 | [AC_LANG_PROGRAM([[ | ||
| 2881 | #include <gnutls/gnutls.h> | ||
| 2882 | #include <gnutls/crypto.h> | ||
| 2883 | ]], [[ | ||
| 2884 | int | ||
| 2885 | main (void) | ||
| 2886 | { | ||
| 2887 | gnutls_cipher_hd_t handle; | ||
| 2888 | gnutls_cipher_encrypt2 (handle, NULL, 0, NULL, 0); | ||
| 2889 | gnutls_cipher_deinit (handle); | ||
| 2890 | } | ||
| 2891 | ]])], | ||
| 2892 | [emacs_cv_gnutls3_cipher=yes], | ||
| 2893 | [emacs_cv_gnutls3_cipher=no])]) | ||
| 2894 | if test "$emacs_cv_gnutls3_cipher" = yes; then | ||
| 2895 | AC_DEFINE([HAVE_GNUTLS3_CIPHER], [1], | ||
| 2896 | [Define if using GnuTLS v3 with cipher support.]) | ||
| 2897 | fi | ||
| 2898 | |||
| 2899 | AC_CACHE_CHECK([for GnuTLS v3 with digest], [emacs_cv_gnutls3_digest], | ||
| 2900 | [AC_COMPILE_IFELSE( | ||
| 2901 | [AC_LANG_PROGRAM([[ | ||
| 2902 | #include <gnutls/gnutls.h> | ||
| 2903 | #include <gnutls/crypto.h> | ||
| 2904 | ]], [[ | ||
| 2905 | int | ||
| 2906 | main (void) | ||
| 2907 | { | ||
| 2908 | gnutls_hash_hd_t handle; | ||
| 2909 | gnutls_hash_deinit (handle, NULL); | ||
| 2910 | } | ||
| 2911 | ]])], | ||
| 2912 | [emacs_cv_gnutls3_digest=yes], | ||
| 2913 | [emacs_cv_gnutls3_digest=no])]) | ||
| 2914 | if test "$emacs_cv_gnutls3_digest" = yes; then | ||
| 2915 | AC_DEFINE([HAVE_GNUTLS3_DIGEST], [1], | ||
| 2916 | [Define if using GnuTLS v3 with digest support.]) | ||
| 2917 | fi | ||
| 2834 | fi | 2918 | fi |
| 2835 | 2919 | ||
| 2836 | # Windows loads GnuTLS dynamically | 2920 | # Windows loads GnuTLS dynamically |
| @@ -3476,27 +3560,22 @@ AC_SUBST(LIBZ) | |||
| 3476 | LIBMODULES= | 3560 | LIBMODULES= |
| 3477 | HAVE_MODULES=no | 3561 | HAVE_MODULES=no |
| 3478 | MODULES_OBJ= | 3562 | MODULES_OBJ= |
| 3479 | MODULES_SUFFIX= | 3563 | case $opsys in |
| 3564 | cygwin|mingw32) MODULES_SUFFIX=".dll" ;; | ||
| 3565 | *) MODULES_SUFFIX=".so" ;; | ||
| 3566 | esac | ||
| 3480 | if test "${with_modules}" != "no"; then | 3567 | if test "${with_modules}" != "no"; then |
| 3481 | case $opsys in | 3568 | case $opsys in |
| 3482 | gnu|gnu-linux) | 3569 | gnu|gnu-linux) |
| 3483 | LIBMODULES="-ldl" | 3570 | LIBMODULES="-ldl" |
| 3484 | MODULES_SUFFIX=".so" | ||
| 3485 | HAVE_MODULES=yes | ||
| 3486 | ;; | ||
| 3487 | cygwin|mingw32) | ||
| 3488 | MODULES_SUFFIX=".dll" | ||
| 3489 | HAVE_MODULES=yes | 3571 | HAVE_MODULES=yes |
| 3490 | ;; | 3572 | ;; |
| 3491 | darwin) | 3573 | cygwin|mingw32|darwin) |
| 3492 | MODULES_SUFFIX=".so" | ||
| 3493 | HAVE_MODULES=yes | 3574 | HAVE_MODULES=yes |
| 3494 | ;; | 3575 | ;; |
| 3495 | *) | 3576 | *) |
| 3496 | # BSD systems have dlopen in libc. | 3577 | # BSD systems have dlopen in libc. |
| 3497 | AC_CHECK_FUNC([dlopen], | 3578 | AC_CHECK_FUNC([dlopen], [HAVE_MODULES=yes]) |
| 3498 | [MODULES_SUFFIX=".so" | ||
| 3499 | HAVE_MODULES=yes]) | ||
| 3500 | ;; | 3579 | ;; |
| 3501 | esac | 3580 | esac |
| 3502 | 3581 | ||
| @@ -5383,7 +5462,7 @@ AS_ECHO([" Does Emacs use -lXaw3d? ${HAVE_XAW3D | |||
| 5383 | Does Emacs use a png library? ${HAVE_PNG} $LIBPNG | 5462 | Does Emacs use a png library? ${HAVE_PNG} $LIBPNG |
| 5384 | Does Emacs use -lrsvg-2? ${HAVE_RSVG} | 5463 | Does Emacs use -lrsvg-2? ${HAVE_RSVG} |
| 5385 | Does Emacs use cairo? ${HAVE_CAIRO} | 5464 | Does Emacs use cairo? ${HAVE_CAIRO} |
| 5386 | Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK} | 5465 | Does Emacs use imagemagick (version 6)? ${HAVE_IMAGEMAGICK} |
| 5387 | Does Emacs support sound? ${HAVE_SOUND} | 5466 | Does Emacs support sound? ${HAVE_SOUND} |
| 5388 | Does Emacs use -lgpm? ${HAVE_GPM} | 5467 | Does Emacs use -lgpm? ${HAVE_GPM} |
| 5389 | Does Emacs use -ldbus? ${HAVE_DBUS} | 5468 | Does Emacs use -ldbus? ${HAVE_DBUS} |