23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
AS_IF([$OBJFW_CONFIG --package ObjOpenSSL 2>/dev/null], [
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
AC_MSG_ERROR(You need ObjOpenSSL installed!)
])
OBJFW_CONFIG="$OBJFW_CONFIG --package ObjOpenSSL"
CPP="$OBJCPP"
CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS $($OBJFW_CONFIG --cppflags)"
OBJCFLAGS="$OBJCFLAGS -Wall $($OBJFW_CONFIG --objcflags)"
LDFLAGS="$LDFLAGS $($OBJFW_CONFIG --ldflags)"
AC_SUBST(OBJFW_LIBS, "$LIBS $($OBJFW_CONFIG --libs)")
AC_SUBST(OBJFW_FRAMEWORK_LIBS, "$LIBS $($OBJFW_CONFIG --framework-libs)")
AX_CHECK_COMPILER_FLAGS(-Watomic-properties,
[OBJCFLAGS="$OBJCFLAGS -Watomic-properties"])
AX_CHECK_COMPILER_FLAGS(-Wdocumentation,
[OBJCFLAGS="$OBJCFLAGS -Wdocumentation"])
AC_ARG_ENABLE(shared,
|
|
|
|
|
|
|
>
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
AS_IF([$OBJFW_CONFIG --package ObjOpenSSL 2>/dev/null], [
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
AC_MSG_ERROR(You need ObjOpenSSL installed!)
])
packages="--package ObjOpenSSL"
CPP="$OBJCPP"
CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS $($OBJFW_CONFIG $packages --cppflags)"
OBJCFLAGS="$OBJCFLAGS -Wall $($OBJFW_CONFIG $packages --objcflags)"
LDFLAGS="$LDFLAGS $($OBJFW_CONFIG $packages --ldflags)"
AC_SUBST(OBJFW_LIBS, "$LIBS $($OBJFW_CONFIG $packages --libs)")
AC_SUBST(OBJFW_FRAMEWORK_LIBS,
"$LIBS $($OBJFW_CONFIG $packages --framework-libs)")
AX_CHECK_COMPILER_FLAGS(-Watomic-properties,
[OBJCFLAGS="$OBJCFLAGS -Watomic-properties"])
AX_CHECK_COMPILER_FLAGS(-Wdocumentation,
[OBJCFLAGS="$OBJCFLAGS -Wdocumentation"])
AC_ARG_ENABLE(shared,
|