22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
AC_PROG_LN_S
AC_PROG_INSTALL
CPP="$OBJCPP"
CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS $($OBJFW_CONFIG --cppflags)"
OBJCFLAGS="$OBJCFLAGS -Wall $($OBJFW_CONFIG --objcflags)"
LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --ldflags --rpath)"
AC_SUBST(OBJFW_LIBS, "$($OBJFW_CONFIG --libs)")
AC_SUBST(OBJFW_FRAMEWORK_LIBS, "$($OBJFW_CONFIG --framework-libs)")
AX_CHECK_COMPILER_FLAGS(-Wdocumentation,
[OBJCFLAGS="$OBJCFLAGS -Wdocumentation"])
AC_ARG_ENABLE(shared,
AS_HELP_STRING([--disable-shared], [do not build shared library]))
AS_IF([test x"$enable_shared" != x"no"], [
|
|
|
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
AC_PROG_LN_S
AC_PROG_INSTALL
CPP="$OBJCPP"
CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS $($OBJFW_CONFIG --cppflags)"
OBJCFLAGS="$OBJCFLAGS -Wall $($OBJFW_CONFIG --objcflags)"
LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --ldflags --rpath)"
FRAMEWORK_LIBS="$($OBJFW_CONFIG --framework-libs)"
LIBS="$($OBJFW_CONFIG --libs --rpath)"
AX_CHECK_COMPILER_FLAGS(-Wdocumentation,
[OBJCFLAGS="$OBJCFLAGS -Wdocumentation"])
AC_ARG_ENABLE(shared,
AS_HELP_STRING([--disable-shared], [do not build shared library]))
AS_IF([test x"$enable_shared" != x"no"], [
|
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
AC_ARG_WITH(openssl, AS_HELP_STRING([--with-openssl=PREFIX],
[build with OpenSSL in the specified prefix]))
AS_IF([test x"$with_openssl" != x"no" -a x"$with_openssl" != x""], [
OPENSSL_CPPFLAGS="$OPENSSL_CFLAGS -I$with_openssl/include"
OPENSSL_LIBS="$OPENSSL_LIBS -L$with_openssl/lib"
CPPFLAGS="$CPPFLAGS -I$with_openssl/include"
LIBS="$LIBS -L$with_openssl/lib"
])
AC_CHECK_LIB(ssl, main, [
OPENSSL_LIBS="$OPENSSL_LIBS -lssl -lcrypto"
LIBS="$LIBS -lssl -lcrypto"
], [
AC_MSG_ERROR(You need openssl >= 1.0.2 installed!)
], [-lcrypto])
AS_IF([test x"$GOBJC" = x"yes"], [
OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror"
])
|
|
>
>
|
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
AC_ARG_WITH(openssl, AS_HELP_STRING([--with-openssl=PREFIX],
[build with OpenSSL in the specified prefix]))
AS_IF([test x"$with_openssl" != x"no" -a x"$with_openssl" != x""], [
OPENSSL_CPPFLAGS="$OPENSSL_CFLAGS -I$with_openssl/include"
OPENSSL_LIBS="$OPENSSL_LIBS -L$with_openssl/lib"
CPPFLAGS="$CPPFLAGS -I$with_openssl/include"
LIBS="-L$with_openssl/lib $LIBS"
FRAMEWORK_LIBS="-L$with_openssl/lib $FRAMEWORK_LIBS"
])
AC_CHECK_LIB(ssl, main, [
OPENSSL_LIBS="$OPENSSL_LIBS -lssl -lcrypto"
LIBS="$LIBS -lssl -lcrypto"
FRAMEWORK_LIBS="$FRAMEWORK_LIBS -lssl -lcrypto"
], [
AC_MSG_ERROR(You need openssl >= 1.0.2 installed!)
], [-lcrypto])
AS_IF([test x"$GOBJC" = x"yes"], [
OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror"
])
|