@@ -682,6 +682,7 @@ infodir
682682docdir
683683oldincludedir
684684includedir
685+ runstatedir
685686localstatedir
686687sharedstatedir
687688sysconfdir
@@ -768,6 +769,7 @@ datadir='${datarootdir}'
768769sysconfdir=' ${prefix}/etc'
769770sharedstatedir=' ${prefix}/com'
770771localstatedir=' ${prefix}/var'
772+ runstatedir=' ${localstatedir}/run'
771773includedir=' ${prefix}/include'
772774oldincludedir=' /usr/include'
773775docdir=' ${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1020,6 +1022,15 @@ do
10201022 | -silent | --silent | --silen | --sile | --sil)
10211023 silent=yes ;;
10221024
1025+ -runstatedir | --runstatedir | --runstatedi | --runstated \
1026+ | --runstate | --runstat | --runsta | --runst | --runs \
1027+ | --run | --ru | --r)
1028+ ac_prev=runstatedir ;;
1029+ -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1030+ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1031+ | --run=* | --ru=* | --r=* )
1032+ runstatedir=$ac_optarg ;;
1033+
10231034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10241035 ac_prev=sbindir ;;
10251036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11571168for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
11581169 datadir sysconfdir sharedstatedir localstatedir includedir \
11591170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1160- libdir localedir mandir
1171+ libdir localedir mandir runstatedir
11611172do
11621173 eval ac_val=\$ $ac_var
11631174 # Remove trailing slashes.
@@ -1310,6 +1321,7 @@ Fine tuning of the installation directories:
13101321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
13111322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
13121323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1324+ --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
13131325 --libdir=DIR object code libraries [EPREFIX/lib]
13141326 --includedir=DIR C header files [PREFIX/include]
13151327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
51965208 if test " x$PKG_CONFIG " ! = " x" ; then
51975209
51985210pkg_failed=no
5199- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for libcrypto >= 1.0.1 " >&5
5200- $as_echo_n " checking for libcrypto >= 1.0.1 ... " >&6 ; }
5211+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for crypto " >&5
5212+ $as_echo_n " checking for crypto ... " >&6 ; }
52015213
52025214if test -n " $crypto_CFLAGS " ; then
52035215 pkg_cv_crypto_CFLAGS=" $crypto_CFLAGS "
52375249
52385250
52395251if test $pkg_failed = yes; then
5240- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5252+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
52415253$as_echo " no" >&6 ; }
52425254
52435255if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
@@ -5264,7 +5276,7 @@ Alternatively, you may set the environment variables crypto_CFLAGS
52645276and crypto_LIBS to avoid the need to call pkg-config.
52655277See the pkg-config man page for more details." " $LINENO " 5
52665278elif test $pkg_failed = untried; then
5267- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5279+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
52685280$as_echo " no" >&6 ; }
52695281 { { $as_echo " $as_me :${as_lineno-$LINENO } : error: in \` $ac_pwd ':" >&5
52705282$as_echo " $as_me : error: in \` $ac_pwd ':" >&2 ; }
@@ -5568,14 +5580,74 @@ as_fn_error $? "can't find openssl >= 1.0.1 crypto lib
55685580See \` config.log' for more details" " $LINENO " 5; }
55695581fi
55705582
5583+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for library containing EVP_chacha20_poly1305" >&5
5584+ $as_echo_n " checking for library containing EVP_chacha20_poly1305... " >&6 ; }
5585+ if ${ac_cv_search_EVP_chacha20_poly1305+: } false ; then :
5586+ $as_echo_n " (cached) " >&6
5587+ else
5588+ ac_func_search_save_LIBS=$LIBS
5589+ cat confdefs.h - << _ACEOF >conftest.$ac_ext
5590+ /* end confdefs.h. */
5591+
5592+ /* Override any GCC internal prototype to avoid an error.
5593+ Use char because int might match the return type of a GCC
5594+ builtin and then its argument prototype would still apply. */
5595+ #ifdef __cplusplus
5596+ extern "C"
5597+ #endif
5598+ char EVP_chacha20_poly1305 ();
5599+ int
5600+ main ()
5601+ {
5602+ return EVP_chacha20_poly1305 ();
5603+ ;
5604+ return 0;
5605+ }
5606+ _ACEOF
5607+ for ac_lib in ' ' crypto; do
5608+ if test -z " $ac_lib " ; then
5609+ ac_res=" none required"
5610+ else
5611+ ac_res=-l$ac_lib
5612+ LIBS=" -l$ac_lib $ac_func_search_save_LIBS "
5613+ fi
5614+ if ac_fn_c_try_link " $LINENO " ; then :
5615+ ac_cv_search_EVP_chacha20_poly1305=$ac_res
5616+ fi
5617+ rm -f core conftest.err conftest.$ac_objext \
5618+ conftest$ac_exeext
5619+ if ${ac_cv_search_EVP_chacha20_poly1305+: } false ; then :
5620+ break
5621+ fi
5622+ done
5623+ if ${ac_cv_search_EVP_chacha20_poly1305+: } false ; then :
5624+
5625+ else
5626+ ac_cv_search_EVP_chacha20_poly1305=no
5627+ fi
5628+ rm conftest.$ac_ext
5629+ LIBS=$ac_func_search_save_LIBS
5630+ fi
5631+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_search_EVP_chacha20_poly1305 " >&5
5632+ $as_echo " $ac_cv_search_EVP_chacha20_poly1305 " >&6 ; }
5633+ ac_res=$ac_cv_search_EVP_chacha20_poly1305
5634+ if test " $ac_res " ! = no; then :
5635+ test " $ac_res " = " none required" || LIBS=" $ac_res $LIBS "
5636+
5637+
5638+ $as_echo " #define CHAPOLY 1" >> confdefs.h
5639+
5640+ CHAPOLY_OBJ=" crypto/cipher/chacha20_poly1305_ossl.o"
5641+ fi
5642+
55715643
55725644
55735645$as_echo " #define GCM 1" >> confdefs.h
55745646
55755647
55765648$as_echo " #define OPENSSL 1" >> confdefs.h
55775649
5578- AES_ICM_OBJS=" crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"
5650+ AES_ICM_OBJS=" crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o $CHAPOLY_OBJ "
55795651 HMAC_OBJS=crypto/hash/hmac_ossl.o
55805652 USE_EXTERNAL_CRYPTO=1
55815653
57965868
57975869
57985870if test $pkg_failed = yes; then
5799- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5871+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
58005872$as_echo " no" >&6 ; }
58015873
58025874if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
@@ -5823,7 +5895,7 @@ Alternatively, you may set the environment variables nss_CFLAGS
58235895and nss_LIBS to avoid the need to call pkg-config.
58245896See the pkg-config man page for more details." " $LINENO " 5
58255897elif test $pkg_failed = untried; then
5826- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
5898+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
58275899$as_echo " no" >&6 ; }
58285900 { { $as_echo " $as_me :${as_lineno-$LINENO } : error: in \` $ac_pwd ':" >&5
58295901$as_echo " $as_me : error: in \` $ac_pwd ':" >&2 ; }
@@ -5968,9 +6040,12 @@ fi
59686040$as_echo " #define GCM 1" >> confdefs.h
59696041
59706042
6043+ $as_echo " #define CHAPOLY 1" >> confdefs.h
6044+
6045+
59716046$as_echo " #define NSS 1" >> confdefs.h
59726047
5973- AES_ICM_OBJS=" crypto/cipher/aes_icm_nss.o crypto/cipher/aes_gcm_nss.o"
6048+ AES_ICM_OBJS=" crypto/cipher/aes_icm_nss.o crypto/cipher/aes_gcm_nss.o crypto/cipher/chacha20_poly1305_nss.o "
59746049
59756050 # TODO(RLB): Use NSS for HMAC
59766051 HMAC_OBJS=" crypto/hash/hmac.o crypto/hash/sha1.o"
0 commit comments