Mercurial > hg > xemacs-beta
comparison configure @ 5814:a216b3c2b09e
Add TLS support. See xemacs-patches message with ID
<CAHCOHQk6FNm2xf=XiGEpPq43+7WOzNZ=SuD9V79o3wb9WVCTrQ@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Tue, 07 Oct 2014 21:16:10 -0600 |
parents | 4e69b24a2301 |
children | 5de7b6d1e752 |
comparison
equal
deleted
inserted
replaced
5813:36dddf9d90d1 | 5814:a216b3c2b09e |
---|---|
1004 with_socks | 1004 with_socks |
1005 enable_dnet | 1005 enable_dnet |
1006 with_dnet | 1006 with_dnet |
1007 enable_ipv6_cname | 1007 enable_ipv6_cname |
1008 with_ipv6_cname | 1008 with_ipv6_cname |
1009 enable_tls | |
1010 with_tls | |
1009 enable_rel_alloc | 1011 enable_rel_alloc |
1010 with_rel_alloc | 1012 with_rel_alloc |
1011 enable_dlmalloc | 1013 enable_dlmalloc |
1012 with_dlmalloc | 1014 with_dlmalloc |
1013 enable_system_malloc | 1015 enable_system_malloc |
1936 --with-socks Compile with support for SOCKS (an Internet proxy). | 1938 --with-socks Compile with support for SOCKS (an Internet proxy). |
1937 --with-dnet Compile with support for DECnet. | 1939 --with-dnet Compile with support for DECnet. |
1938 --with-ipv6-cname Try IPv6 information first when canonicalizing host | 1940 --with-ipv6-cname Try IPv6 information first when canonicalizing host |
1939 names. This option has no effect unless system | 1941 names. This option has no effect unless system |
1940 supports getaddrinfo(3) and getnameinfo(3). | 1942 supports getaddrinfo(3) and getnameinfo(3). |
1943 --with-tls=TYPE Support TLS connections. TYPE must be one of "nss", | |
1944 "gnutls", and "openssl". If TYPE is omitted or | |
1945 "yes", support is determined automatically. | |
1941 | 1946 |
1942 Memory allocation options | 1947 Memory allocation options |
1943 ------------------------- | 1948 ------------------------- |
1944 | 1949 |
1945 --with-rel-alloc Enable the relocating allocator. | 1950 --with-rel-alloc Enable the relocating allocator. |
4919 enableval="$with_ipv6_cname" | 4924 enableval="$with_ipv6_cname" |
4920 withval="$with_ipv6_cname" | 4925 withval="$with_ipv6_cname" |
4921 | 4926 |
4922 else | 4927 else |
4923 with_ipv6_cname="no" | 4928 with_ipv6_cname="no" |
4929 fi; | |
4930 # If --with-tls or --without-tls were given then copy the value to the | |
4931 # equivalent enable_tls variable. | |
4932 if test "${with_tls+set}" = set; then | |
4933 enable_tls="$with_tls" | |
4934 fi; | |
4935 # If -enable-tls or --disable-tls were given then copy the value to the | |
4936 # equivalent with_tls variable. | |
4937 if test "${enable_tls+set}" = set; then | |
4938 with_tls="$enable_tls" | |
4939 fi; | |
4940 # Check whether --with-tls or --without-tls was given. | |
4941 if test "${with_tls+set}" = set; then | |
4942 enableval="$with_tls" | |
4943 withval="$with_tls" | |
4944 | |
4924 fi; | 4945 fi; |
4925 | 4946 |
4926 # If --with-rel-alloc or --without-rel-alloc were given then copy the value to the | 4947 # If --with-rel-alloc or --without-rel-alloc were given then copy the value to the |
4927 # equivalent enable_rel-alloc variable. | 4948 # equivalent enable_rel-alloc variable. |
4928 if test "${with_rel_alloc+set}" = set; then | 4949 if test "${with_rel_alloc+set}" = set; then |
20998 | 21019 |
20999 $as_echo "#define WITH_MP 1" >>confdefs.h | 21020 $as_echo "#define WITH_MP 1" >>confdefs.h |
21000 | 21021 |
21001 fi | 21022 fi |
21002 | 21023 |
21024 if test "$with_tls" = "yes"; then | |
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5 | |
21026 $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; } | |
21027 if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then : | |
21028 $as_echo_n "(cached) " >&6 | |
21029 else | |
21030 ac_check_lib_save_LIBS=$LIBS | |
21031 LIBS="-lgnutls $LIBS" | |
21032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21033 /* end confdefs.h. */ | |
21034 | |
21035 /* Override any GCC internal prototype to avoid an error. | |
21036 Use char because int might match the return type of a GCC | |
21037 builtin and then its argument prototype would still apply. */ | |
21038 #ifdef __cplusplus | |
21039 extern "C" | |
21040 #endif | |
21041 char gnutls_global_init (); | |
21042 int | |
21043 main () | |
21044 { | |
21045 return gnutls_global_init (); | |
21046 ; | |
21047 return 0; | |
21048 } | |
21049 _ACEOF | |
21050 if ac_fn_c_try_link "$LINENO"; then : | |
21051 ac_cv_lib_gnutls_gnutls_global_init=yes | |
21052 else | |
21053 ac_cv_lib_gnutls_gnutls_global_init=no | |
21054 fi | |
21055 rm -f core conftest.err conftest.$ac_objext \ | |
21056 conftest$ac_exeext conftest.$ac_ext | |
21057 LIBS=$ac_check_lib_save_LIBS | |
21058 fi | |
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5 | |
21060 $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; } | |
21061 if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then : | |
21062 with_tls=gnutls | |
21063 else | |
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_InitContext in -lnss3" >&5 | |
21065 $as_echo_n "checking for NSS_InitContext in -lnss3... " >&6; } | |
21066 if ${ac_cv_lib_nss3_NSS_InitContext+:} false; then : | |
21067 $as_echo_n "(cached) " >&6 | |
21068 else | |
21069 ac_check_lib_save_LIBS=$LIBS | |
21070 LIBS="-lnss3 $LIBS" | |
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21072 /* end confdefs.h. */ | |
21073 | |
21074 /* Override any GCC internal prototype to avoid an error. | |
21075 Use char because int might match the return type of a GCC | |
21076 builtin and then its argument prototype would still apply. */ | |
21077 #ifdef __cplusplus | |
21078 extern "C" | |
21079 #endif | |
21080 char NSS_InitContext (); | |
21081 int | |
21082 main () | |
21083 { | |
21084 return NSS_InitContext (); | |
21085 ; | |
21086 return 0; | |
21087 } | |
21088 _ACEOF | |
21089 if ac_fn_c_try_link "$LINENO"; then : | |
21090 ac_cv_lib_nss3_NSS_InitContext=yes | |
21091 else | |
21092 ac_cv_lib_nss3_NSS_InitContext=no | |
21093 fi | |
21094 rm -f core conftest.err conftest.$ac_objext \ | |
21095 conftest$ac_exeext conftest.$ac_ext | |
21096 LIBS=$ac_check_lib_save_LIBS | |
21097 fi | |
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_InitContext" >&5 | |
21099 $as_echo "$ac_cv_lib_nss3_NSS_InitContext" >&6; } | |
21100 if test "x$ac_cv_lib_nss3_NSS_InitContext" = xyes; then : | |
21101 with_tls=nss | |
21102 else | |
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 | |
21104 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } | |
21105 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : | |
21106 $as_echo_n "(cached) " >&6 | |
21107 else | |
21108 ac_check_lib_save_LIBS=$LIBS | |
21109 LIBS="-lssl $LIBS" | |
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21111 /* end confdefs.h. */ | |
21112 | |
21113 /* Override any GCC internal prototype to avoid an error. | |
21114 Use char because int might match the return type of a GCC | |
21115 builtin and then its argument prototype would still apply. */ | |
21116 #ifdef __cplusplus | |
21117 extern "C" | |
21118 #endif | |
21119 char SSL_library_init (); | |
21120 int | |
21121 main () | |
21122 { | |
21123 return SSL_library_init (); | |
21124 ; | |
21125 return 0; | |
21126 } | |
21127 _ACEOF | |
21128 if ac_fn_c_try_link "$LINENO"; then : | |
21129 ac_cv_lib_ssl_SSL_library_init=yes | |
21130 else | |
21131 ac_cv_lib_ssl_SSL_library_init=no | |
21132 fi | |
21133 rm -f core conftest.err conftest.$ac_objext \ | |
21134 conftest$ac_exeext conftest.$ac_ext | |
21135 LIBS=$ac_check_lib_save_LIBS | |
21136 fi | |
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 | |
21138 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } | |
21139 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : | |
21140 with_tls=openssl | |
21141 else | |
21142 with_tls=no | |
21143 fi | |
21144 | |
21145 fi | |
21146 | |
21147 fi | |
21148 | |
21149 elif test "$with_tls" = "gnutls"; then | |
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_global_init in -lgnutls" >&5 | |
21151 $as_echo_n "checking for gnutls_global_init in -lgnutls... " >&6; } | |
21152 if ${ac_cv_lib_gnutls_gnutls_global_init+:} false; then : | |
21153 $as_echo_n "(cached) " >&6 | |
21154 else | |
21155 ac_check_lib_save_LIBS=$LIBS | |
21156 LIBS="-lgnutls $LIBS" | |
21157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21158 /* end confdefs.h. */ | |
21159 | |
21160 /* Override any GCC internal prototype to avoid an error. | |
21161 Use char because int might match the return type of a GCC | |
21162 builtin and then its argument prototype would still apply. */ | |
21163 #ifdef __cplusplus | |
21164 extern "C" | |
21165 #endif | |
21166 char gnutls_global_init (); | |
21167 int | |
21168 main () | |
21169 { | |
21170 return gnutls_global_init (); | |
21171 ; | |
21172 return 0; | |
21173 } | |
21174 _ACEOF | |
21175 if ac_fn_c_try_link "$LINENO"; then : | |
21176 ac_cv_lib_gnutls_gnutls_global_init=yes | |
21177 else | |
21178 ac_cv_lib_gnutls_gnutls_global_init=no | |
21179 fi | |
21180 rm -f core conftest.err conftest.$ac_objext \ | |
21181 conftest$ac_exeext conftest.$ac_ext | |
21182 LIBS=$ac_check_lib_save_LIBS | |
21183 fi | |
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_global_init" >&5 | |
21185 $as_echo "$ac_cv_lib_gnutls_gnutls_global_init" >&6; } | |
21186 if test "x$ac_cv_lib_gnutls_gnutls_global_init" = xyes; then : | |
21187 with_tls=gnutls | |
21188 else | |
21189 { echo "Error:" "Required gnutls support cannot be provided." >&2; exit 1; } | |
21190 fi | |
21191 | |
21192 elif test "$with_tls" = "nss"; then | |
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_InitContext in -lnss3" >&5 | |
21194 $as_echo_n "checking for NSS_InitContext in -lnss3... " >&6; } | |
21195 if ${ac_cv_lib_nss3_NSS_InitContext+:} false; then : | |
21196 $as_echo_n "(cached) " >&6 | |
21197 else | |
21198 ac_check_lib_save_LIBS=$LIBS | |
21199 LIBS="-lnss3 $LIBS" | |
21200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21201 /* end confdefs.h. */ | |
21202 | |
21203 /* Override any GCC internal prototype to avoid an error. | |
21204 Use char because int might match the return type of a GCC | |
21205 builtin and then its argument prototype would still apply. */ | |
21206 #ifdef __cplusplus | |
21207 extern "C" | |
21208 #endif | |
21209 char NSS_InitContext (); | |
21210 int | |
21211 main () | |
21212 { | |
21213 return NSS_InitContext (); | |
21214 ; | |
21215 return 0; | |
21216 } | |
21217 _ACEOF | |
21218 if ac_fn_c_try_link "$LINENO"; then : | |
21219 ac_cv_lib_nss3_NSS_InitContext=yes | |
21220 else | |
21221 ac_cv_lib_nss3_NSS_InitContext=no | |
21222 fi | |
21223 rm -f core conftest.err conftest.$ac_objext \ | |
21224 conftest$ac_exeext conftest.$ac_ext | |
21225 LIBS=$ac_check_lib_save_LIBS | |
21226 fi | |
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_InitContext" >&5 | |
21228 $as_echo "$ac_cv_lib_nss3_NSS_InitContext" >&6; } | |
21229 if test "x$ac_cv_lib_nss3_NSS_InitContext" = xyes; then : | |
21230 with_tls=nss | |
21231 else | |
21232 { echo "Error:" "Required NSS support cannot be provided." >&2; exit 1; } | |
21233 fi | |
21234 | |
21235 elif test "$with_tls" = "openssl"; then | |
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5 | |
21237 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; } | |
21238 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then : | |
21239 $as_echo_n "(cached) " >&6 | |
21240 else | |
21241 ac_check_lib_save_LIBS=$LIBS | |
21242 LIBS="-lssl $LIBS" | |
21243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
21244 /* end confdefs.h. */ | |
21245 | |
21246 /* Override any GCC internal prototype to avoid an error. | |
21247 Use char because int might match the return type of a GCC | |
21248 builtin and then its argument prototype would still apply. */ | |
21249 #ifdef __cplusplus | |
21250 extern "C" | |
21251 #endif | |
21252 char SSL_library_init (); | |
21253 int | |
21254 main () | |
21255 { | |
21256 return SSL_library_init (); | |
21257 ; | |
21258 return 0; | |
21259 } | |
21260 _ACEOF | |
21261 if ac_fn_c_try_link "$LINENO"; then : | |
21262 ac_cv_lib_ssl_SSL_library_init=yes | |
21263 else | |
21264 ac_cv_lib_ssl_SSL_library_init=no | |
21265 fi | |
21266 rm -f core conftest.err conftest.$ac_objext \ | |
21267 conftest$ac_exeext conftest.$ac_ext | |
21268 LIBS=$ac_check_lib_save_LIBS | |
21269 fi | |
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5 | |
21271 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; } | |
21272 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then : | |
21273 with_tls=openssl | |
21274 else | |
21275 { echo "Error:" "Required openssl support cannot be provided." >&2; exit 1; } | |
21276 fi | |
21277 | |
21278 fi | |
21279 if test "$with_tls" != "no"; then | |
21280 $as_echo "#define WITH_TLS 1" >>confdefs.h | |
21281 | |
21282 if test "$with_tls" = "gnutls"; then | |
21283 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
21284 | |
21285 gnutls_cflags=`pkg-config --cflags gnutls` | |
21286 if test "$?" = 0; then | |
21287 CPPFLAGS=""$gnutls_cflags" $CPPFLAGS" && if test "$verbose" = "yes"; then echo " Prepending \""$gnutls_cflags"\" to \$CPPFLAGS"; fi | |
21288 fi | |
21289 gnutls_libs=`pkg-config --libs gnutls` | |
21290 if test "$?" = 0; then | |
21291 LDFLAGS=""$gnutls_libs" $LDFLAGS" && if test "$verbose" = "yes"; then echo " Prepending \""$gnutls_libs"\" to \$LDFLAGS"; fi | |
21292 fi | |
21293 ac_fn_c_check_func "$LINENO" "gnutls_certificate_verification_status_print" "ac_cv_func_gnutls_certificate_verification_status_print" | |
21294 if test "x$ac_cv_func_gnutls_certificate_verification_status_print" = xyes; then : | |
21295 $as_echo "#define HAVE_GNUTLS_CERTIFICATE_VERIFICATION_STATUS_PRINT 1" >>confdefs.h | |
21296 | |
21297 fi | |
21298 | |
21299 ac_fn_c_check_func "$LINENO" "gnutls_certificate_verify_peers3" "ac_cv_func_gnutls_certificate_verify_peers3" | |
21300 if test "x$ac_cv_func_gnutls_certificate_verify_peers3" = xyes; then : | |
21301 $as_echo "#define HAVE_GNUTLS_CERTIFICATE_VERIFY_PEERS3 1" >>confdefs.h | |
21302 | |
21303 fi | |
21304 | |
21305 elif test "$with_tls" = "nss"; then | |
21306 $as_echo "#define HAVE_NSS 1" >>confdefs.h | |
21307 | |
21308 nss_cflags=`pkg-config --cflags nss` | |
21309 if test "$?" = 0; then | |
21310 CPPFLAGS=""$nss_cflags" $CPPFLAGS" && if test "$verbose" = "yes"; then echo " Prepending \""$nss_cflags"\" to \$CPPFLAGS"; fi | |
21311 fi | |
21312 nss_libs=`pkg-config --libs nss` | |
21313 if test "$?" = 0; then | |
21314 LDFLAGS=""$nss_libs" $LDFLAGS" && if test "$verbose" = "yes"; then echo " Prepending \""$nss_libs"\" to \$LDFLAGS"; fi | |
21315 fi | |
21316 else | |
21317 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h | |
21318 | |
21319 openssl_cflags=`pkg-config --cflags openssl` | |
21320 if test "$?" = 0; then | |
21321 CPPFLAGS=""$openssl_cflags" $CPPFLAGS" && if test "$verbose" = "yes"; then echo " Prepending \""$openssl_cflags"\" to \$CPPFLAGS"; fi | |
21322 fi | |
21323 openssl_libs=`pkg-config --libs openssl` | |
21324 if test "$?" = 0; then | |
21325 LDFLAGS=""$openssl_libs" $LDFLAGS" && if test "$verbose" = "yes"; then echo " Prepending \""$openssl_libs"\" to \$LDFLAGS"; fi | |
21326 fi | |
21327 ac_fn_c_check_func "$LINENO" "X509_check_host" "ac_cv_func_X509_check_host" | |
21328 if test "x$ac_cv_func_X509_check_host" = xyes; then : | |
21329 $as_echo "#define HAVE_X509_CHECK_HOST 1" >>confdefs.h | |
21330 | |
21331 fi | |
21332 | |
21333 fi | |
21334 fi | |
21335 | |
21003 if test "$cross_compiling" = yes; then : | 21336 if test "$cross_compiling" = yes; then : |
21004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 21337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
21005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 21338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
21006 as_fn_error $? "cannot run test program while cross compiling | 21339 as_fn_error $? "cannot run test program while cross compiling |
21007 See \`config.log' for more details" "$LINENO" 5; } | 21340 See \`config.log' for more details" "$LINENO" 5; } |
21804 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication." | 22137 test "$with_kerberos" = yes && echo " Compiling in support for Kerberos POP authentication." |
21805 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access." | 22138 test "$with_hesiod" = yes && echo " Compiling in support for Hesiod POP server access." |
21806 test -n "$with_mail_locking" && echo " Compiling in support for \"$with_mail_locking\" mail spool file locking method." | 22139 test -n "$with_mail_locking" && echo " Compiling in support for \"$with_mail_locking\" mail spool file locking method." |
21807 | 22140 |
21808 echo " | 22141 echo " |
21809 Other Features:" | 22142 Network:" |
21810 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup." | 22143 test "$with_ipv6_cname" = no && echo " Inhibiting IPv6 canonicalization at startup." |
21811 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." | 22144 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk." |
21812 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." | 22145 test "$with_workshop" = yes && echo " Compiling in support for Sun WorkShop." |
21813 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | 22146 test "$with_socks" = yes && echo " Compiling in support for SOCKS." |
21814 test "$with_dnet" = yes && echo " Compiling in support for DNET." | 22147 test "$with_dnet" = yes && echo " Compiling in support for DNET." |
22148 test "$with_tls" = nss && echo " Compiling in support for TLS with NSS." | |
22149 test "$with_tls" = gnutls && echo " Compiling in support for TLS with gnutls." | |
22150 test "$with_tls" = openssl && echo " Compiling in support for TLS with OpenSSL." | |
22151 | |
22152 echo " | |
22153 Other Features:" | |
21815 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." | 22154 test "$with_modules" = "yes" && echo " Compiling in support for dynamic shared object modules." |
21816 test "$with_bignum" = "gmp" && echo " Compiling in support for more number types using the GNU MP library." | 22155 test "$with_bignum" = "gmp" && echo " Compiling in support for more number types using the GNU MP library." |
21817 test "$with_bignum" = "mpir" && echo " Compiling in support for more number types using the MPIR library." | 22156 test "$with_bignum" = "mpir" && echo " Compiling in support for more number types using the MPIR library." |
21818 test "$with_bignum" = "mp" && echo " Compiling in support for more number types using the BSD MP library." | 22157 test "$with_bignum" = "mp" && echo " Compiling in support for more number types using the BSD MP library." |
21819 if test "$with_union_type" = yes ; then | 22158 if test "$with_union_type" = yes ; then |