Browse code
Remove last bits of Crypto++
Ed Langley authored on 30/05/2017 22:17:42
Showing 4 changed files
Showing 4 changed files
... | ... |
@@ -1,9 +1,7 @@ |
1 |
-CRYPTOPP_NAME=cryptopp |
|
2 |
- |
|
3 |
-CXXFLAGS += -fPIC -fno-stack-protector -std=c++11 -g -DCRYPTOPP_NAME=$(CRYPTOPP_NAME) |
|
1 |
+CXXFLAGS += -fPIC -fno-stack-protector -std=c++11 -g |
|
4 | 2 |
CFLAGS += -fPIC -fno-stack-protector -g |
5 |
-#LDFLAGS = -Wl,-Bstatic -l$(CRYPTOPP_NAME) -Wl,-Bdynamic -lpam -Wl,--as-needed |
|
6 |
-LDFLAGS = -lpam -l$(CRYPTOPP_NAME) @LIBS@ |
|
3 |
+#LDFLAGS = -Wl,-Bstatic -Wl,-Bdynamic -lpam -Wl,--as-needed |
|
4 |
+LDFLAGS = -lpam @LIBS@ |
|
7 | 5 |
|
8 | 6 |
INTEGRATION_OBJS = sys_syslog.o sys_fstream.o sys_unistd.o sys_pwd.o sys_pam.o \ |
9 | 7 |
sys_stdlib.o sys_time.o |
... | ... |
@@ -44,7 +42,7 @@ distclean: clean |
44 | 42 |
|
45 | 43 |
.depend: $(OBJS:.o=.cc) $(TEST_SOURCES) |
46 | 44 |
rm -f ./.depend |
47 |
- $(CXX) -std=c++11 -MM -DCRYPTOPP_NAME=$(CRYPTOPP_NAME) $^ > ./.depend; |
|
45 |
+ $(CXX) -std=c++11 -MM $^ > ./.depend; |
|
48 | 46 |
|
49 | 47 |
-include .depend |
50 | 48 |
|
... | ... |
@@ -677,7 +677,6 @@ ac_subst_files='' |
677 | 677 |
ac_user_opts=' |
678 | 678 |
enable_option_checking |
679 | 679 |
with_pam_module_directory |
680 |
-with_cryptopp |
|
681 | 680 |
' |
682 | 681 |
ac_precious_vars='build_alias |
683 | 682 |
host_alias |
... | ... |
@@ -1299,7 +1298,6 @@ Optional Packages: |
1299 | 1298 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1300 | 1299 |
--with-pam-module-directory=NAME |
1301 | 1300 |
Use NAME as installation directory for PAM modules |
1302 |
- --with-cryptopp Build algorithms that need Crypto++ support |
|
1303 | 1301 |
|
1304 | 1302 |
Some influential environment variables: |
1305 | 1303 |
CC C compiler command |
... | ... |
@@ -2842,16 +2840,6 @@ fi |
2842 | 2840 |
|
2843 | 2841 |
|
2844 | 2842 |
|
2845 |
-#check whether to build with crypto++ |
|
2846 |
- |
|
2847 |
-# Check whether --with-cryptopp was given. |
|
2848 |
-if test "${with_cryptopp+set}" = set; then : |
|
2849 |
- withval=$with_cryptopp; WITH_CRYPTOPP=$withval |
|
2850 |
-else |
|
2851 |
- WITH_CRYPTOPP=yes |
|
2852 |
-fi |
|
2853 |
- |
|
2854 |
- |
|
2855 | 2843 |
|
2856 | 2844 |
ac_ext=c |
2857 | 2845 |
ac_cpp='$CPP $CPPFLAGS' |
... | ... |
@@ -26,12 +26,6 @@ AC_ARG_WITH(pam-module-directory, |
26 | 26 |
PAM_MODULE_DIRECTORY="$DEFAULT_PAM_MODULE_DIRECTORY") |
27 | 27 |
AC_SUBST(PAM_MODULE_DIRECTORY) |
28 | 28 |
|
29 |
-#check whether to build with crypto++ |
|
30 |
-AC_ARG_WITH([cryptopp], |
|
31 |
- AC_HELP_STRING([--with-cryptopp],[Build algorithms that need Crypto++ support]), |
|
32 |
- [WITH_CRYPTOPP=$withval], |
|
33 |
- [WITH_CRYPTOPP=yes]) |
|
34 |
- |
|
35 | 29 |
AC_CHECK_HEADERS([openssl/hmac.h openssl/evp.h],,[AC_MSG_ERROR("Can't find Openssl")]) |
36 | 30 |
AC_CHECK_LIB([ssl], [SSL_library_init],,[AC_MSG_ERROR("Can't find -lssl")]) |
37 | 31 |
AC_CHECK_LIB([crypto], [EVP_EncryptInit],,[AC_MSG_ERROR("Can't find -lcrypto")]) |