author | Michael Krelin <hacker@klever.net> | 2008-01-20 20:57:20 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2008-01-20 20:57:20 (UTC) |
commit | e87c920413b8443e83a57b7f1edf72b0cdb8b6c1 (patch) (unidiff) | |
tree | 4c6eef9b79985c4fdb45faca6644647b582d1a29 | |
parent | 2f82a7acabcb00c6785151f9aca3d4270f3914b7 (diff) | |
download | libopkele-e87c920413b8443e83a57b7f1edf72b0cdb8b6c1.zip libopkele-e87c920413b8443e83a57b7f1edf72b0cdb8b6c1.tar.gz libopkele-e87c920413b8443e83a57b7f1edf72b0cdb8b6c1.tar.bz2 |
merging the private rewrite branch, configure.ac
* bump version. two leading components are getting in sync with OpenID
protocol version now, which means it's going to be 2.0 by the time I finish
2.0 support.
* add checks for some optional gcc features.
* check for optional dependencies needed to build test RP CGI, namely -
sqlite3, kingate, libuuid.
* change XRI resolver proxy to non-beta https.
-rw-r--r-- | configure.ac | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index c28141c..a49177f 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,17 +1,17 @@ | |||
1 | AC_INIT([libopkele], [0.4], [libopkele-bugs@klever.net]) | 1 | AC_INIT([libopkele], [1.1.99.0], [libopkele-bugs@klever.net]) |
2 | AC_CONFIG_SRCDIR([include/opkele/opkele-config.h]) | 2 | AC_CONFIG_SRCDIR([include/opkele/opkele-config.h]) |
3 | AC_CONFIG_HEADERS([config.h include/opkele/acconfig.h]) | 3 | AC_CONFIG_HEADERS([config.h include/opkele/acconfig.h]) |
4 | AM_INIT_AUTOMAKE([dist-bzip2]) | 4 | AM_INIT_AUTOMAKE([dist-bzip2]) |
5 | 5 | ||
6 | AC_PROG_INSTALL | 6 | AC_PROG_INSTALL |
7 | AC_PROG_CXX | 7 | AC_PROG_CXX |
8 | AC_PROG_CC | 8 | AC_PROG_CC |
9 | AC_PROG_LIBTOOL | 9 | AC_PROG_LIBTOOL |
10 | PKG_PROG_PKG_CONFIG | 10 | PKG_PROG_PKG_CONFIG |
11 | 11 | ||
12 | AC_HEADER_STDC | 12 | AC_HEADER_STDC |
13 | 13 | ||
14 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | 14 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) |
15 | 15 | ||
16 | AC_MSG_CHECKING([for source tree version]) | 16 | AC_MSG_CHECKING([for source tree version]) |
17 | if headrev=$(cd $srcdir && git rev-parse --verify HEAD 2>/dev/null) ; then | 17 | if headrev=$(cd $srcdir && git rev-parse --verify HEAD 2>/dev/null) ; then |
@@ -48,32 +48,67 @@ case "$tr1_mem" in | |||
48 | $tr1_mem_std || AC_MSG_ERROR([std implementation requested, but not found]) | 48 | $tr1_mem_std || AC_MSG_ERROR([std implementation requested, but not found]) |
49 | OPKELE_TR1_MEM_NS=std::tr1 | 49 | OPKELE_TR1_MEM_NS=std::tr1 |
50 | OPKELE_TR1_MEM_HEADER=tr1/memory | 50 | OPKELE_TR1_MEM_HEADER=tr1/memory |
51 | ;; | 51 | ;; |
52 | boost) | 52 | boost) |
53 | $tr1_mem_boost || AC_MSG_ERROR([boost implementation requested, but not found]) | 53 | $tr1_mem_boost || AC_MSG_ERROR([boost implementation requested, but not found]) |
54 | OPKELE_TR1_MEM_NS=boost | 54 | OPKELE_TR1_MEM_NS=boost |
55 | OPKELE_TR1_MEM_HEADER=boost/shared_ptr.hpp | 55 | OPKELE_TR1_MEM_HEADER=boost/shared_ptr.hpp |
56 | ;; | 56 | ;; |
57 | *) | 57 | *) |
58 | AC_MSG_ERROR([no shared_ptr<> implementation found]) | 58 | AC_MSG_ERROR([no shared_ptr<> implementation found]) |
59 | ;; | 59 | ;; |
60 | esac | 60 | esac |
61 | AC_SUBST([OPKELE_TR1_MEM_NS]) | 61 | AC_SUBST([OPKELE_TR1_MEM_NS]) |
62 | AC_SUBST([OPKELE_TR1_MEM_HEADER]) | 62 | AC_SUBST([OPKELE_TR1_MEM_HEADER]) |
63 | 63 | ||
64 | AC_MSG_CHECKING([for deprecated attribute support]) | ||
65 | AC_COMPILE_IFELSE([ | ||
66 | int __attribute__((deprecated)) deprecated_function(); | ||
67 | ],[ | ||
68 | AC_MSG_RESULT([yes]) | ||
69 | AC_DEFINE([OPKELE_DEPRECATE],[__attribute__((deprecated))],[deprecated function attribute]) | ||
70 | ],[ | ||
71 | AC_MSG_RESULT([no]) | ||
72 | AC_DEFINE([OPKELE_DEPRECATE],,[deprecated function attribute]) | ||
73 | ] | ||
74 | ) | ||
75 | |||
76 | AC_LANG_PUSH([C++]) | ||
77 | AC_MSG_CHECKING([for abi::__cxa_demangle]) | ||
78 | AC_COMPILE_IFELSE([ | ||
79 | #include <typeinfo> | ||
80 | using namespace std; | ||
81 | #include <cxxabi.h> | ||
82 | int main(int c,char **v) { | ||
83 | int dstat; | ||
84 | char *demangled = abi::__cxa_demangle(typeid(dstat).name(),0,0,&dstat); | ||
85 | return 0; | ||
86 | } | ||
87 | ],[ | ||
88 | AC_MSG_RESULT([yes]) | ||
89 | AC_DEFINE([HAVE_DEMANGLE],,[defined if abi::__cxa_demangle is available]) | ||
90 | ],[ | ||
91 | AC_MSG_RESULT([no]) | ||
92 | ] | ||
93 | ) | ||
94 | AC_LANG_POP([C++]) | ||
95 | |||
96 | |||
97 | |||
98 | |||
64 | PKG_CHECK_MODULES([OPENSSL],[openssl],,[ | 99 | PKG_CHECK_MODULES([OPENSSL],[openssl],,[ |
65 | AC_MSG_ERROR([no openssl library found. get one from http://www.openssl.org/]) | 100 | AC_MSG_ERROR([no openssl library found. get one from http://www.openssl.org/]) |
66 | ]) | 101 | ]) |
67 | 102 | ||
68 | WANT_KONFORKA="yes" | 103 | WANT_KONFORKA="yes" |
69 | AC_ARG_ENABLE([konforka], | 104 | AC_ARG_ENABLE([konforka], |
70 | AC_HELP_STRING([--disable-konforka],[do not use konforka library (default: use if found)]), | 105 | AC_HELP_STRING([--disable-konforka],[do not use konforka library (default: use if found)]), |
71 | [ | 106 | [ |
72 | test "${enableval}" = "no" && WANT_KONFORKA="no" | 107 | test "${enableval}" = "no" && WANT_KONFORKA="no" |
73 | ] | 108 | ] |
74 | ) | 109 | ) |
75 | if test "${WANT_KONFORKA}" = "yes" ; then | 110 | if test "${WANT_KONFORKA}" = "yes" ; then |
76 | PKG_CHECK_MODULES([KONFORKA],[konforka],[ | 111 | PKG_CHECK_MODULES([KONFORKA],[konforka],[ |
77 | AC_SUBST([KONFORKA_CFLAGS]) | 112 | AC_SUBST([KONFORKA_CFLAGS]) |
78 | AC_SUBST([KONFORKA_LIBS]) | 113 | AC_SUBST([KONFORKA_LIBS]) |
79 | AC_DEFINE([HAVE_KONFORKA],,[defined in presence of konforka library]) | 114 | AC_DEFINE([HAVE_KONFORKA],,[defined in presence of konforka library]) |
@@ -124,32 +159,39 @@ AC_CHECK_HEADER([tidy.h],[ | |||
124 | AC_MSG_ERROR([no required htmltidy library found. get one from http://tidy.sourceforge.net/]) | 159 | AC_MSG_ERROR([no required htmltidy library found. get one from http://tidy.sourceforge.net/]) |
125 | ]) | 160 | ]) |
126 | ],[ | 161 | ],[ |
127 | AC_MSG_ERROR([no required htmltidy library found. get one from http://tidy.sourceforge.net/]) | 162 | AC_MSG_ERROR([no required htmltidy library found. get one from http://tidy.sourceforge.net/]) |
128 | ]) | 163 | ]) |
129 | 164 | ||
130 | if test -n "$PCRE_LIBS" -a -n "$PCRE_CFLAGS" ; then | 165 | if test -n "$PCRE_LIBS" -a -n "$PCRE_CFLAGS" ; then |
131 | AC_SUBST([PCRE_CFLAGS]) | 166 | AC_SUBST([PCRE_CFLAGS]) |
132 | AC_SUBST([PCRE_LIBS]) | 167 | AC_SUBST([PCRE_LIBS]) |
133 | : | 168 | : |
134 | else | 169 | else |
135 | PKG_CHECK_MODULES([PCRE],[libpcre],,[ | 170 | PKG_CHECK_MODULES([PCRE],[libpcre],,[ |
136 | AC_MSG_ERROR([no libpcre found, go get it at http://www.pcre.org/]) | 171 | AC_MSG_ERROR([no libpcre found, go get it at http://www.pcre.org/]) |
137 | ]) | 172 | ]) |
138 | fi | 173 | fi |
139 | 174 | ||
175 | PKG_CHECK_MODULES([SQLITE3],[sqlite3],[have_sqlite3=true],[have_sqlite3=false]) | ||
176 | AM_CONDITIONAL([HAVE_SQLITE3],[$have_sqlite3]) | ||
177 | PKG_CHECK_MODULES([KINGATE],[kingate-plaincgi],[have_kingate=true],[have_kingate=false]) | ||
178 | AM_CONDITIONAL([HAVE_KINGATE],[$have_kingate]) | ||
179 | PKG_CHECK_MODULES([UUID],[uuid],[have_uuid=true],[have_uuid=false]) | ||
180 | AM_CONDITIONAL([HAVE_UUID],[$have_uuid]) | ||
181 | |||
140 | curl_ssl_verify_host="true" | 182 | curl_ssl_verify_host="true" |
141 | AC_ARG_ENABLE([ssl-verify-host], | 183 | AC_ARG_ENABLE([ssl-verify-host], |
142 | AC_HELP_STRING([--disable-ssl-verify-host],[disable cURL cert/host relationships verification]), | 184 | AC_HELP_STRING([--disable-ssl-verify-host],[disable cURL cert/host relationships verification]), |
143 | [ test "${enableval}" = "no" && curl_ssl_verify_host="false" ] | 185 | [ test "${enableval}" = "no" && curl_ssl_verify_host="false" ] |
144 | ) | 186 | ) |
145 | ${curl_ssl_verify_host} || AC_DEFINE([DISABLE_CURL_SSL_VERIFYHOST],,[defined if cURL is not to verify cert/host]) | 187 | ${curl_ssl_verify_host} || AC_DEFINE([DISABLE_CURL_SSL_VERIFYHOST],,[defined if cURL is not to verify cert/host]) |
146 | 188 | ||
147 | curl_ssl_verify_peer="true" | 189 | curl_ssl_verify_peer="true" |
148 | AC_ARG_ENABLE([ssl-verify-peer], | 190 | AC_ARG_ENABLE([ssl-verify-peer], |
149 | AC_HELP_STRING([--disable-ssl-verify-peer],[disable cURL cert validity verification]), | 191 | AC_HELP_STRING([--disable-ssl-verify-peer],[disable cURL cert validity verification]), |
150 | [ test "${enableval}" = "no" && curl_ssl_verify_peer="false" ] | 192 | [ test "${enableval}" = "no" && curl_ssl_verify_peer="false" ] |
151 | ) | 193 | ) |
152 | ${curl_ssl_verify_peer} || AC_DEFINE([DISABLE_CURL_SSL_VERIFYPEER],,[defined if cURL is not to verify cert validity]) | 194 | ${curl_ssl_verify_peer} || AC_DEFINE([DISABLE_CURL_SSL_VERIFYPEER],,[defined if cURL is not to verify cert validity]) |
153 | 195 | ||
154 | postels_law=true | 196 | postels_law=true |
155 | AC_ARG_ENABLE([postels-law], | 197 | AC_ARG_ENABLE([postels-law], |
@@ -177,35 +219,35 @@ if $nitpick ; then | |||
177 | CFLAGS="$CFLAGS $C_NITPICK" | 219 | CFLAGS="$CFLAGS $C_NITPICK" |
178 | CXXFLAGS="$CXXFLAGS $CXX_NITPICK" | 220 | CXXFLAGS="$CXXFLAGS $CXX_NITPICK" |
179 | fi | 221 | fi |
180 | 222 | ||
181 | ndebug=true | 223 | ndebug=true |
182 | AC_ARG_ENABLE([debug], | 224 | AC_ARG_ENABLE([debug], |
183 | AC_HELP_STRING([--enable-debug],[enable debugging code]), | 225 | AC_HELP_STRING([--enable-debug],[enable debugging code]), |
184 | [ test "$enableval" = "no" || ndebug=false ] | 226 | [ test "$enableval" = "no" || ndebug=false ] |
185 | ) | 227 | ) |
186 | if $ndebug ; then | 228 | if $ndebug ; then |
187 | CPPFLAGS_DEBUG="-DNDEBUG" | 229 | CPPFLAGS_DEBUG="-DNDEBUG" |
188 | else | 230 | else |
189 | CPPFLAGS_DEBUG="" | 231 | CPPFLAGS_DEBUG="" |
190 | fi | 232 | fi |
191 | AC_SUBST([CPPFLAGS_DEBUG]) | 233 | AC_SUBST([CPPFLAGS_DEBUG]) |
192 | 234 | ||
193 | xri_proxy_url="http://beta.xri.net/" | 235 | xri_proxy_url="https://xri.net/" |
194 | AC_MSG_CHECKING([for XRI resolver proxy]) | 236 | AC_MSG_CHECKING([for XRI resolver proxy]) |
195 | AC_ARG_ENABLE([xri-proxy], | 237 | AC_ARG_ENABLE([xri-proxy], |
196 | AC_HELP_STRING([--with-xri-proxy=url],[set xri proxy for use when resolving xri identities, default is http://xr_proxy_url]), | 238 | AC_HELP_STRING([--with-xri-proxy=url],[set xri proxy for use when resolving xri identities, default is https://xri.net/]), |
197 | [ xri_proxy_url="$withval" ] | 239 | [ xri_proxy_url="$withval" ] |
198 | ) | 240 | ) |
199 | AC_MSG_RESULT([$xri_proxy_url]) | 241 | AC_MSG_RESULT([$xri_proxy_url]) |
200 | AC_DEFINE_UNQUOTED([XRI_PROXY_URL],["$xri_proxy_url"],[XRI proxy resolver URL]) | 242 | AC_DEFINE_UNQUOTED([XRI_PROXY_URL],["$xri_proxy_url"],[XRI proxy resolver URL]) |
201 | 243 | ||
202 | AC_CONFIG_FILES([ | 244 | AC_CONFIG_FILES([ |
203 | Makefile | 245 | Makefile |
204 | libopkele.pc | 246 | libopkele.pc |
205 | Doxyfile | 247 | Doxyfile |
206 | include/Makefile | 248 | include/Makefile |
207 | include/opkele/tr1-mem.h | 249 | include/opkele/tr1-mem.h |
208 | lib/Makefile | 250 | lib/Makefile |
209 | test/Makefile | 251 | test/Makefile |
210 | ]) | 252 | ]) |
211 | AC_OUTPUT | 253 | AC_OUTPUT |