Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/ncbi-tools++/files/
Date: Mon, 23 Jun 2014 20:39:02
Message-Id: 1403555909.cb7af5375a7fbfdfaeddf149fed723aa81e1827e.mmokrejs@gentoo
1 commit: cb7af5375a7fbfdfaeddf149fed723aa81e1827e
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Mon Jun 23 20:38:29 2014 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Mon Jun 23 20:38:29 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=cb7af537
7
8 dropped the duplicate part from the patch
9
10 ---
11 .../files/ncbi-tools++-12.0.0-configure.patch | 1660 --------------------
12 1 file changed, 1660 deletions(-)
13
14 diff --git a/sci-biology/ncbi-tools++/files/ncbi-tools++-12.0.0-configure.patch b/sci-biology/ncbi-tools++/files/ncbi-tools++-12.0.0-configure.patch
15 index 0d4bd39..4c77991 100644
16 --- a/sci-biology/ncbi-tools++/files/ncbi-tools++-12.0.0-configure.patch
17 +++ b/sci-biology/ncbi-tools++/files/ncbi-tools++-12.0.0-configure.patch
18 @@ -1,1663 +1,3 @@
19 ---- ncbi_cxx--12_0_0/src/build-system/configure.ac.ori 2014-06-23 17:35:47.000000000 +0200
20 -+++ ncbi_cxx--12_0_0/src/build-system/configure.ac 2014-06-23 17:36:41.000000000 +0200
21 -@@ -1,5 +1,5 @@
22 - #############################################################################
23 --# $Id: configure.ac 398256 2013-05-03 19:14:07Z rafanovi $
24 -+# $Id$
25 - # Derived from configure.in version 1.173.
26 - # ==========================================================================
27 - #
28 -@@ -38,7 +38,7 @@
29 - #
30 - #############################################################################
31 -
32 --AC_PREREQ(2.59)
33 -+AC_PREREQ(2.60)
34 -
35 - dnl Early setup, most crucially for locking. The diversion magic lets
36 - dnl this occur before AC_INIT, which already interferes with other
37 -@@ -71,7 +71,7 @@
38 - python, perl, jni, sqlite3, mimetic, sge, icu, sp, expat,
39 - sablot, libxml, libxslt, libexslt, xerces, xalan, zorba,
40 - oechem, muparser, hdf5, gif, jpeg, png, tiff, xpm,
41 -- magic, curl],
42 -+ magic, curl, gsoap, mongodb],
43 - [if test "${[with_]X-no}" != "no"; then
44 - AC_MSG_ERROR([incompatible options: --with-]X[ but --without-3psw])
45 - else
46 -@@ -143,6 +143,8 @@
47 - [ --with-bin-release build executables suitable for public release])
48 - AC_ARG_WITH(mt,
49 - [ --with-mt compile in a MultiThread-safe manner])
50 -+AC_ARG_WITH(openmp,
51 -+ [ --with-openmp enable OpenMP extensions for all projects])
52 - AC_ARG_WITH(64,
53 - [ --with-64 compile to 64-bit code])
54 - AC_ARG_WITH(universal,
55 -@@ -220,11 +222,15 @@
56 -
57 - ## NCBI packages
58 - AC_ARG_WITH(ncbi-c,
59 -+ [ --with-ncbi-c=DIR use NCBI C Toolkit installation in DIR])
60 -+AC_ARG_WITH(ncbi-c2,
61 - [ --without-ncbi-c do not use NCBI C Toolkit])
62 - AC_ARG_WITH(sss,
63 -+ [ --with-sss=DIR use NCBI SSS installation in DIR])
64 -+AC_ARG_WITH(sss2,
65 - [ --without-sss do not use NCBI SSS libraries])
66 - AC_ARG_WITH(sssutils,
67 -- [ --without-sssutils do not use NCBI SSS UTIL library])
68 -+ [ --without-utils do not use NCBI SSS UTIL library])
69 - AC_ARG_WITH(sssdb,
70 - [ --without-sssdb do not use NCBI SSS DB library])
71 - AC_ARG_WITH(included-sss,
72 -@@ -439,6 +445,14 @@
73 - [ --with-mimetic=DIR use libmimetic installation in DIR])
74 - AC_ARG_WITH(mimetic2,
75 - [ --without-mimetic do not use libmimetic])
76 -+AC_ARG_WITH(gsoap,
77 -+ [ --with-gsoap=DIR use gSOAP++ installation in DIR])
78 -+AC_ARG_WITH(gsoap2,
79 -+ [ --without-gsoap do not use gSOAP++])
80 -+AC_ARG_WITH(mongodb,
81 -+ [ --with-mongodb=DIR use MongoDB installation in DIR])
82 -+AC_ARG_WITH(mongodb2,
83 -+ [ --without-mongodb do not use MongoDB])
84 - AC_ARG_WITH(3psw,
85 - [ --with-3psw=std:netopt favor standard (system) builds of the above pkgs.])
86 - AC_ARG_WITH(3psw2,
87 -@@ -479,24 +493,28 @@
88 - [***** See also HTML documentation in ./doc/index.html *****])
89 -
90 -
91 -+AC_DIVERT_PUSH(PARSE_ARGS)
92 -+dnl As of Autoconf 2.60, this needs to run too early for config.log,
93 -+dnl to which AC_MSG_ERROR normally copies its output, to be available.
94 -+m4_rename([AS_MESSAGE_LOG_FD], [NCBI_ORIG_ASMLFD])
95 - #### Check the passed arguments against the list of available ones
96 - x_with_list="\
97 - debug max-debug symbols optimization profiling tcheck dll static static-exe \
98 - plugin-auto-load bundles bin-release mt 64 universal exe runpath hard-runpath \
99 --lfs limited-linker \
100 -+lfs limited-linker openmp \
101 - autodep suffix hostspec version execopy bincopy lib-rebuilds lib-rebuilds=ask \
102 - deactivation makefile-auto-update projects flat-makefile configure-dialog \
103 - check ncbi-public strip pch caution ccache distcc \
104 - ncbi-c wxwidgets wxwidgets-ucs fastcgi sss sssdb sssutils included-sss \
105 - geo included-geo \
106 - z bz2 lzo pcre gcrypt gnutls openssl krb5 sybase sybase-local sybase-new \
107 --ftds mysql orbacus odbc freetype ftgl opengl mesa glut glew glew-mx \
108 -+ftds mysql orbacus freetype ftgl opengl mesa glut glew glew-mx \
109 - bdb python perl jni sqlite3 icu boost boost-tag \
110 - sp expat sablot libxml libxslt libexslt xerces xalan zorba \
111 - oechem sge muparser hdf5 \
112 --gif jpeg tiff png xpm magic curl mimetic 3psw \
113 -+gif jpeg tiff png xpm magic curl mimetic gsoap mongodb 3psw \
114 - local-lbsm ncbi-crypt connext \
115 --serial objects dbapi app ctools gui algo internal gbench x"
116 -+serial objects dbapi app ctools gui algo internal gbench"
117 -
118 - changequote(, )dnl
119 - x_with_list=`echo "$x_with_list" | sed 's/\([^ ][^ ]*\)/--with-\1 --without-\1/g'`
120 -@@ -522,7 +540,6 @@
121 - case "$x_arg" in
122 - --with-extra-action= | --exec-prefix= | --with-projects= | --srcdir= \
123 - | --cache-file= | --build= | --host= | --target= | --with-runpath= \
124 -- | --mandir= | --infodir= | --datadir= | --sysconfdir= | --localstatedir= \
125 - | --with-relative-runpath= | --x-includes= | --x-libraries= )
126 - AC_MSG_ERROR([$x_arg: requires value; use --help to show usage])
127 - ;;
128 -@@ -533,12 +550,11 @@
129 - | --with-universal=* | --with-tcheck=* \
130 - | --cache-file=* | --build=* | --host=* | --prefix=* | --exec-prefix=* \
131 - | --libdir=* | --bindir=* | --includedir=* | --srcdir=* \
132 -- | --mandir=* | --infodir=* | --datadir=* | --sysconfdir=* | --localstatedir=* \
133 - | [[A-Z]*=*] \
134 - | --with-z=* | --with-bz2=* | --with-lzo=* \
135 -- | --with-pcre=* \
136 -+ | --with-pcre=* | --with-ncbi-c=* | --with-sss=* \
137 - | --with-gcrypt=* | --with-gnutls=* | --with-openssl=* \
138 -- | --with-krb5=* | --with-curl=* \
139 -+ | --with-krb5=* | --with-curl=* | --with-gsoap=* | --with-mongodb=* \
140 - | --with-sybase-local=* | --with-wxwidgets=* | --with-mimetic=* \
141 - | --with-ftds=* | --with-mysql=* | --with-fastcgi=* \
142 - | --with-sqlite3=* | --with-expat=* | --with-sablot=* \
143 -@@ -552,7 +568,7 @@
144 - | --with-muparser=* | --with-hdf5=* | --with-jni=* | --with-magic=* \
145 - | --x-includes=* | --x-libraries=* | --with-3psw=* \
146 - | --target=* | --with-runpath=* | --with-relative-runpath=* \
147 -- | --no-create | --no-recursion)
148 -+ | --help | --no-create | --no-recursion)
149 - ;;
150 -
151 - * )
152 -@@ -560,6 +576,8 @@
153 - ;;
154 - esac
155 - done
156 -+m4_rename([NCBI_ORIG_ASMLFD], [AS_MESSAGE_LOG_FD])
157 -+AC_DIVERT_POP
158 -
159 -
160 - if test "$with_gbench" = "yes" ; then
161 -@@ -604,6 +622,13 @@
162 - : ${with_optimization=no}
163 - fi
164 -
165 -+if test "$with_openmp" = yes; then
166 -+ if test "$with_mt" = no; then
167 -+ AC_MSG_ERROR([incompatible options: --without-mt but --with-openmp])
168 -+ fi
169 -+ : ${with_mt=yes}
170 -+fi
171 -+
172 - #### Check for special options
173 - if test "$with_extra_action" = "yes" ; then
174 - AC_MSG_ERROR([--with-extra-action must have a value after =])
175 -@@ -649,15 +674,10 @@
176 - *\ -O* | *\ -xO* ) skip_fast_flags=yes ;;
177 - esac
178 - fi
179 --if test -n "$with_projects"; then
180 -- case "$with_projects" in
181 -- /* ) abs_projects=$with_projects ;;
182 -- yes) abs_projects=$srcdir/projects ;;
183 -- * ) abs_projects=$srcdir/$with_projects ;;
184 -- esac
185 -- test -r "$abs_projects" || \
186 -- AC_MSG_ERROR([unable to read requested projects file "$abs_projects".])
187 --fi
188 -+# Generally save any originally specified flags.
189 -+USER_CFLAGS=$CFLAGS
190 -+USER_CXXFLAGS=$CXXFLAGS
191 -+USER_LDFLAGS=$LDFLAGS
192 -
193 - #### Always define this
194 - AC_DEFINE(NCBI_CXX_TOOLKIT, 1, [This is the NCBI C++ Toolkit.])
195 -@@ -675,6 +695,23 @@
196 - #### Make some provisions for traditional operation
197 - AC_PROG_INSTALL
198 -
199 -+#### Point ICC at a suitable GCC version ASAP.
200 -+case "/$CXX" in
201 -+ */icpc )
202 -+ if test -d /usr/local/gcc; then
203 -+ case "`$CXX -dumpversion`:$host_cpu" in
204 -+ *:i?86) v=4.4.5 ;;
205 -+ ?.* | 1[[01]].* ) v=4.0.1 ;;
206 -+ *) v=4.4.2 ;;
207 -+ esac
208 -+ gcc=/usr/local/gcc/$v/bin/gcc
209 -+ if test -x $gcc; then
210 -+ CC="$CC -gcc-name=$gcc"
211 -+ CXX="$CXX -gcc-name=$gcc"
212 -+ fi
213 -+ fi
214 -+ ;;
215 -+esac
216 -
217 - #### C and C++ compilers
218 - AC_LANG(C++)
219 -@@ -987,6 +1024,30 @@
220 - ;;
221 - * ) NCBIATOMIC_LIB=xncbi ;;
222 - esac
223 -+ case "$compiler" in
224 -+ GCC )
225 -+ if $CC -v | grep clang >/dev/null; then
226 -+ :
227 -+ # Will allegedly support -openmp at some point, but as of 3.4,
228 -+ # just parses it as specifying an output filename: -o penmp.
229 -+ else
230 -+ case "$compiler_version" in
231 -+ [[123]]?? | 4[[01]]? ) ;;
232 -+ * ) : ${OPENMP_FLAGS=-fopenmp} ;;
233 -+ esac
234 -+ fi
235 -+ ;;
236 -+ ICC )
237 -+ : ${OPENMP_FLAGS=-openmp}
238 -+ ;;
239 -+ WorkShop* )
240 -+ : ${OPENMP_FLAGS=-xopenmp=parallel}
241 -+ ;;
242 -+ esac
243 -+ if test "$with_openmp" = yes; then
244 -+ MT_FLAG="$MT_FLAG $OPENMP_FLAGS"
245 -+ OPENMP_FLAGS=
246 -+ fi
247 - mt_sfx="MT"
248 - NCBI_FEATURE(MT)
249 - else
250 -@@ -994,6 +1055,7 @@
251 - MT_FLAG=
252 - THREAD_LIBS=
253 - NCBIATOMIC_LIB=
254 -+ OPENMP_FLAGS=
255 - mt_sfx=""
256 - fi
257 - MT_SFX="${mt_sfx}"
258 -@@ -1006,6 +1068,9 @@
259 - APP_LDFLAGS=
260 - DLL_LDFLAGS=
261 -
262 -+### Should go before any test compiler runs
263 -+AC_GNU_SOURCE
264 -+
265 - case "$host_os:$compiler" in
266 - darwin*:GCC )
267 - AC_CACHE_CHECK([whether $CC supports -Wl,-rpath],
268 -@@ -1047,6 +1112,47 @@
269 - ;;
270 - esac
271 -
272 -+case "$compiler:$compiler_version" in
273 -+ GCC:4[[0-6]]? | ICC:1[[01]]?? )
274 -+ ncbi_cv_prog_cxx_11=no
275 -+ ncbi_cv_prog_c_99=no
276 -+ ;;
277 -+ ICC:* )
278 -+ ncbi_cv_prog_c_99='-std=gnu99 -fgnu89-inline'
279 -+ ;;
280 -+esac
281 -+
282 -+AC_CACHE_CHECK([how to enable C++ '11 features in $CXX],
283 -+ ncbi_cv_prog_cxx_11,
284 -+ [orig_CXX=$CXX
285 -+ ncbi_cv_prog_cxx_11=no
286 -+ for x in -std=gnu++11 -std=gnu++0x; do
287 -+ CXX="$orig_CXX $x"
288 -+ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
289 -+ [ncbi_cv_prog_cxx_11=$x])
290 -+ test "x$ncbi_cv_prog_cxx_11" = "xno" || break
291 -+ done
292 -+ CXX=$orig_CXX])
293 -+test "$ncbi_cv_prog_cxx_11" = no || CXX="$CXX $ncbi_cv_prog_cxx_11"
294 -+
295 -+AC_LANG_PUSH(C)
296 -+AC_CACHE_CHECK([how to enable C '11 or at least '99 features in $CC],
297 -+ ncbi_cv_prog_c_99,
298 -+ [orig_CC=$CC
299 -+ ncbi_cv_prog_c_99=no
300 -+ for x in -xc99=all "-std=gnu11 -fgnu89-inline" \
301 -+ "-std=gnu1x -fgnu89-inline" \
302 -+ "-std=gnu99 -fgnu89-inline" \
303 -+ "-std=gnu9x -fgnu89-inline"; do
304 -+ CC="$orig_CC $x"
305 -+ AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
306 -+ [ncbi_cv_prog_c_99=$x])
307 -+ test "x$ncbi_cv_prog_c_99" = "xno" || break
308 -+ done
309 -+ CC=$orig_CC])
310 -+AC_LANG_POP(C)
311 -+test "$ncbi_cv_prog_c_99" = no || CC="$CC $ncbi_cv_prog_c_99"
312 -+
313 - #### Provide default environment setup for known platforms/compilers
314 - DEPFLAGS="-M"
315 - DEPFLAGS_POST="" # Needed for VisualAge
316 -@@ -1059,7 +1165,15 @@
317 - ;;
318 -
319 - solaris*:GCC )
320 -- CPPFLAGS="-D_XOPEN_SOURCE=500 $CPPFLAGS"
321 -+ # On Solaris, GCC defaults to setting _XOPEN_SOURCE (to 500) only
322 -+ # in C++ mode. Set it for C code as well to ensure consistent
323 -+ # header behavior, taking care to match the C standard version
324 -+ # (as enforced by <sys/feature_tests.h>).
325 -+ case "$ncbi_cv_prog_c_99" in
326 -+ no) CC="$CC -D_XOPEN_SOURCE=500" ;;
327 -+ *) CC="$CC -D_XOPEN_SOURCE=600" ;;
328 -+ esac
329 -+
330 - STRIP="@:"
331 - ;;
332 -
333 -@@ -1202,11 +1316,19 @@
334 - LDFLAGS="-flat_namespace $LDFLAGS"
335 -
336 - if test "$with_ncbi_public" = yes; then
337 -+ sdks='/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk'
338 -+ case "$host_os" in
339 -+ darwin?.* | darwin10.* ) # Mac OS X 10.6.x or older
340 - TARGET='-mmacosx-version-min=10.5'
341 -- sdks='/Developer/SDKs/MacOSX10.6.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk'
342 -+ sdks="/Developer/SDKs/MacOSX10.6.sdk"
343 - if test "$with_64:${with_universal-no}" != "yes:no"; then
344 - sdks="/Developer/SDKs/MacOSX10.5.sdk $sdks"
345 - fi
346 -+ ;;
347 -+ * )
348 -+ TARGET='-mmacosx-version-min=10.7'
349 -+ ;;
350 -+ esac
351 - for sdk in $sdks; do
352 - if test -d "$sdk"; then
353 - TARGET="-isysroot $sdk $TARGET"
354 -@@ -1487,8 +1609,8 @@
355 - ;;
356 - GCC:* )
357 - DEF_FAST_FLAGS="-O3 -finline-functions -fstrict-aliasing"
358 -- case "$host_os" in
359 -- freebsd* ) ;;
360 -+ case "$host_os:$host_cpu:$compiler_version" in
361 -+ freebsd* | solaris*:*86*:* | *:4[[5-9]]? | *:[[5-9]]?? ) ;;
362 - * ) DEF_FAST_FLAGS="$DEF_FAST_FLAGS -ffast-math" ;;
363 - esac
364 - if test "$with_profiling" != "yes"; then
365 -@@ -1587,13 +1709,9 @@
366 - solaris* )
367 - CONF_f_runpath="-R"
368 - ;;
369 -- linux*:GCC | *bsd*:GCC | cygwin*:GCC | osf*:GCC )
370 -+ linux*:[[GI]]CC | *bsd*:GCC | cygwin*:GCC | osf*:GCC )
371 - CONF_f_runpath="-Wl,-rpath,"
372 - ;;
373 -- linux*:ICC )
374 -- # trying to use "-Wl,-rpath," here sends "ld" to endless 100% CPU loop
375 -- CONF_f_runpath="-Xlinker -rpath -Xlinker "
376 -- ;;
377 - irix*:* | linux*:KCC | *:Compaq )
378 - CONF_f_runpath="-rpath "
379 - ;;
380 -@@ -1697,8 +1815,11 @@
381 - LINK="$LINK -Kc++"
382 - ;;
383 - ICC:1???:* )
384 -- APP_LDFLAGS="-static-intel $APP_LDFLAGS"
385 -- DLL_LDFLAGS="-static-intel -nodefaultlibs $DLL_LDFLAGS"
386 -+ # Suppress "warning #10237: -lcilkrts linked in dynamically, static
387 -+ # library not available" which is not a problem in practice due to
388 -+ # as-needed linkage.
389 -+ APP_LDFLAGS="-static-intel -diag-disable 10237 $APP_LDFLAGS"
390 -+ DLL_LDFLAGS="-static-intel -diag-disable 10237 -nodefaultlibs $DLL_LDFLAGS"
391 - # Redundant for apps, but necessary for plugins to be adequately
392 - # self-contained, at least on 32-bit Linux.
393 - LIBS="$LIBS -lstdc++"
394 -@@ -1817,18 +1938,6 @@
395 -
396 - #### Intel compiler:: common flags and definitions
397 - if test "$compiler" = "ICC" ; then
398 -- if test -d /usr/local/gcc; then
399 -- case "$compiler_version:$HOST_CPU" in
400 -- *:i?86) v=4.4.5 ;;
401 -- ???:* | 1[[01]]??:* ) v=4.0.1 ;;
402 -- *) v=4.4.2 ;;
403 -- esac
404 -- gcc=/usr/local/gcc/$v/bin/gcc
405 -- if test -x $gcc; then
406 -- CC="$CC -gcc-name=$gcc"
407 -- CXX="$CXX -gcc-name=$gcc"
408 -- fi
409 -- fi
410 - if test -n "$icc_license" ; then
411 - icc_CC="$CC"
412 - icc_CXX="$CXX"
413 -@@ -2073,6 +2182,7 @@
414 - fi
415 -
416 - AC_PATH_PROG(TOUCH, touch, [], /bin:/usr/bin:$PATH)
417 -+dnl AC_PATH_PROG(GREP, grep)
418 - AC_PROG_EGREP
419 - AC_MSG_CHECKING([how to run $EGREP quietly])
420 - if test -z "`echo foo | $EGREP -q fo+ 2>>config.log || echo $?`"; then
421 -@@ -2086,6 +2196,16 @@
422 -
423 - AC_CHECK_PROG(VALGRIND_PATH, valgrind, valgrind)
424 -
425 -+AC_PATH_PROG(LDD, ldd)
426 -+if test -n "$LDD"; then
427 -+ AC_MSG_CHECKING([whether $LDD accepts -r])
428 -+ if $LDD -r /bin/ls >/dev/null 2>&1; then
429 -+ AC_MSG_RESULT(yes)
430 -+ LDD_R="$LDD -r"
431 -+ else
432 -+ AC_MSG_RESULT(no)
433 -+ fi
434 -+fi
435 -
436 - #### Check if "${build_root}" is defined; provide a default one
437 - if test -n "${with_build_root}" ; then
438 -@@ -2170,9 +2290,6 @@
439 - fi
440 -
441 -
442 --### Should go before any test compiler runs
443 --AC_GNU_SOURCE
444 --
445 - #### Determine whether this is implicitly a 64-bit platform
446 - AC_TYPE_SIZE_T
447 - if test "${with_universal-no}" = "no"; then
448 -@@ -2342,7 +2459,7 @@
449 - fi
450 - ;;
451 - *:ICC )
452 -- runpath="$runpath -Xlinker -rpath-link -Xlinker \$(libdir)"
453 -+ runpath="$runpath -Wl,-rpath-link,\$(libdir)"
454 - ;;
455 - esac
456 - elif test "$with_runpath" = "yes" -o "$with_dll" != "no" ; then
457 -@@ -2658,15 +2775,30 @@
458 - dbgrx1="$wsrx-g[^cx$wschars]*$wsrx"
459 - dbgrx2="$wsrx-gx*coff[0-9+]*$wsrx"
460 - optrx="$wsrx-x*O[0-9s]*$wsrx"
461 -+ NDEB_CFLAGS=` echo " $CFLAGS " | sed "s/$dbgrx1/ /g; s/$dbgrx2/ /g"`
462 -+ NDEB_CXXFLAGS=`echo " $CXXFLAGS " | sed "s/$dbgrx1/ /g; s/$dbgrx2/ /g"`
463 -+ NDEB_LDFLAGS=` echo " $LDFLAGS " | sed "s/$dbgrx1/ /g; s/$dbgrx2/ /g"`
464 - if test "$with_symbols" = "no" ; then
465 -- CFLAGS=` echo " $CFLAGS " | sed "s/$dbgrx1/ /g; s/$dbgrx2/ /g"`
466 -- CXXFLAGS=`echo " $CXXFLAGS " | sed "s/$dbgrx1/ /g; s/$dbgrx2/ /g"`
467 -- LDFLAGS=` echo " $LDFLAGS " | sed "s/$dbgrx1/ /g; s/$dbgrx2/ /g"`
468 -+ CFLAGS=$NDEB_CFLAGS
469 -+ CXXFLAGS=$NDEB_CXXFLAGS
470 -+ LDFLAGS=$NDEB_LDFLAGS
471 - else
472 - echo " $CFLAGS " | $EGREP_Q "$dbgrx1|$dbgrx2" || CFLAGS="$CFLAGS -g"
473 - echo " $CXXFLAGS "| $EGREP_Q "$dbgrx1|$dbgrx2" || CXXFLAGS="$CXXFLAGS -g"
474 - echo " $LDFLAGS " | $EGREP_Q "$dbgrx1|$dbgrx2" || LDFLAGS="$LDFLAGS -g"
475 - STRIP="@:"
476 -+ case "$compiler:$compiler_version" in
477 -+ GCC:4[89]? | GCC:[5-9]? | GCC:???? )
478 -+ # GCC 4.8 defaults to DWARF 4, which Totalview for one
479 -+ # can't handle; roll back to version 3 by default.
480 -+ echo " $USER_CFLAGS " | $EGREP_Q "$dbgrx1|$dbgrx2" || \
481 -+ CFLAGS="$NDEB_CFLAGS -gdwarf-3"
482 -+ echo " $USER_CXXFLAGS " | $EGREP_Q "$dbgrx1|$dbgrx2" || \
483 -+ CXXFLAGS="$NDEB_CXXFLAGS -gdwarf-3"
484 -+ echo " $USER_LDFLAGS " | $EGREP_Q "$dbgrx1|$dbgrx2" || \
485 -+ LDFLAGS="$NDEB_LDFLAGS -gdwarf-3"
486 -+ ;;
487 -+ esac
488 - fi
489 -
490 - NOPT_CFLAGS=` echo " $CFLAGS " | sed "s/$optrx/ /g"`
491 -@@ -3024,9 +3156,9 @@
492 - ### Check for other standard library functions
493 -
494 - AC_FUNC_VPRINTF
495 --AC_CHECK_FUNCS(euidaccess atoll basename lchown fseeko getpagesize \
496 -- getpass getpassphrase getpwuid getrusage gettimeofday \
497 -- getuid memrchr readpassphrase readv usleep \
498 -+AC_CHECK_FUNCS(euidaccess atoll basename lchown fseeko getgrouplist \
499 -+ getpagesize getpass getpassphrase getpwuid getrusage \
500 -+ gettimeofday getuid memrchr readpassphrase readv usleep \
501 - asprintf vasprintf vsnprintf select statfs statvfs \
502 - strcasecmp strlcat strlcpy strdup strndup strtok_r \
503 - sysmp timegm utimes lutimes writev)
504 -@@ -3253,17 +3385,6 @@
505 - fi
506 -
507 -
508 --AC_CACHE_CHECK([for std::is_sorted<> in <algorithm>], ncbi_cv_func_is_sorted,
509 -- [AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
510 -- [[#include <algorithm>]],
511 -- [[int a[2]; return std::is_sorted(a, a+2) ? 0 : 1;]])],
512 -- [ncbi_cv_func_is_sorted=yes], [ncbi_cv_func_is_sorted=no])])
513 --if test "$ncbi_cv_func_is_sorted" = yes; then
514 -- AC_DEFINE(HAVE_IS_SORTED, 1,
515 -- [Define to 1 if <algorithm> supplies `std::is_sorted<>'.])
516 --fi
517 --
518 --
519 -
520 - AC_CACHE_CHECK([for SysV semaphores], ncbi_cv_sys_semaphores,
521 - AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <sys/types.h>
522 -@@ -3400,7 +3521,7 @@
523 - AC_CACHE_CHECK([whether the C compiler supports C99 restrict],
524 - ncbi_cv_c_restrict,
525 - [ncbi_cv_c_restrict=no
526 -- for restrict in restrict __restrict__ __restrict; do
527 -+ for restrict in __restrict__ __restrict restrict; do
528 - test "$ncbi_cv_c_restrict" = "no" || break
529 - AC_COMPILE_IFELSE([AC_LANG_SOURCE([void f(int * $restrict p);])],
530 - [ncbi_cv_c_restrict=$restrict], [])
531 -@@ -3420,7 +3541,7 @@
532 - AC_CACHE_CHECK([whether the C++ compiler supports C99 restrict],
533 - ncbi_cv_cxx_restrict,
534 - [ncbi_cv_cxx_restrict=no
535 -- for restrict in restrict __restrict__ __restrict; do
536 -+ for restrict in __restrict__ __restrict restrict; do
537 - test "$ncbi_cv_cxx_restrict" = "no" || break
538 - AC_COMPILE_IFELSE([AC_LANG_SOURCE([void f(int * $restrict p);])],
539 - [ncbi_cv_cxx_restrict=$restrict], [])
540 -@@ -3525,14 +3646,6 @@
541 - unaligned addresses.])
542 - fi
543 -
544 --AC_CACHE_CHECK([whether $CXX supports C++0x nullptr], ncbi_cv_cxx_nullptr,
545 -- [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[void * p = nullptr;]])],
546 -- [ncbi_cv_cxx_nullptr=yes], [ncbi_cv_cxx_nullptr=no])])
547 --if test "$ncbi_cv_cxx_nullptr" = yes; then
548 -- AC_DEFINE(HAVE_NULLPTR, 1,
549 -- [Define to 1 if your C++ compiler supports the C++0x `nullptr' keyword.])
550 --fi
551 --
552 - ### Check for the availability of other packages
553 - ### --------------------------------------------
554 -
555 -@@ -3630,7 +3743,16 @@
556 - dnl NCBI_CHECK_LIBS(FUSE, fuse, fuse_loop)
557 - AC_SEARCH_LIBS(fuse_loop, fuse, [NCBI_PACKAGE(FUSE)])
558 - LIBS=$orig_LIBS
559 -+# Temporarily drop OpenMP flags for this test, as some toolchains count
560 -+# its support library's indirect use of librt when building applications
561 -+# but not when building shared libraries with --no-undefined.
562 -+orig_CXXFLAGS=$CXXFLAGS
563 -+orig_LDFLAGS=$LDFLAGS
564 -+CXXFLAGS=`echo $CXXFLAGS | sed -e 's/[[^ ]]*openmp[[^ ]]*//g'`
565 -+LDFLAGS=`echo $LDFLAGS | sed -e 's/[[^ ]]*openmp[[^ ]]*//g'`
566 - NCBI_CHECK_LIBS(RT, rt posix4, clock_gettime)
567 -+CXXFLAGS=$orig_CXXFLAGS
568 -+LDFLAGS=$orig_LDFLAGS
569 - NCBI_CHECK_LIBS(DEMANGLE, demangle, cplus_demangle)
570 - # Add to (orig_)LIBS if present for the sake of corelib and the
571 - # following call to AC_CHECK_FUNCS.
572 -@@ -3734,7 +3856,6 @@
573 - NCBI_PACKAGE(LocalBZ2)
574 - fi
575 -
576 --: ${LZO_PATH=$NCBI/lzo2}
577 - if test -d "$LZO_PATH"; then
578 - NCBI_FIX_DIR(LZO_PATH)
579 - fi
580 -@@ -3767,7 +3888,7 @@
581 - ## SSL/TLS libraries
582 - case "$with_gcrypt" in
583 - no ) ac_cv_path_LIBGCRYPT_CONFIG=no ;;
584 -- yes | '' ) : ${GCRYPT_PATH=$NCBI/gcrypt} ;;
585 -+ yes | '' ) ;;
586 - * ) GCRYPT_PATH=$with_gcrypt ;;
587 - esac
588 - if test -d "$GCRYPT_PATH"; then
589 -@@ -3802,13 +3923,16 @@
590 -
591 - case "$with_gnutls" in
592 - no ) ac_cv_path_LIBGNUTLS_CONFIG=no ;;
593 -- yes | '' ) : ${GNUTLS_PATH=$NCBI/gnutls} ;;
594 -+ yes | '' ) ;;
595 - * ) GNUTLS_PATH=$with_gnutls ;;
596 - esac
597 - if test -d "$GNUTLS_PATH"; then
598 - NCBI_FIX_DIR(GNUTLS_PATH)
599 -+ gnutls_config_path=${GNUTLS_BIN-$GNUTLS_PATH/${compiler_vpfx}${DEBUG_SFX}${mt_sfx}${bit64_sfx}/bin}:$GNUTLS_PATH/bin${bit64_sfx}:$GNUTLS_PATH/bin
600 -+else
601 -+ gnutls_config_path=$PATH
602 - fi
603 --AC_PATH_PROG(LIBGNUTLS_CONFIG, libgnutls-config, [], [${GNUTLS_BIN-$GNUTLS_PATH/${compiler_vpfx}${DEBUG_SFX}${mt_sfx}${bit64_sfx}/bin}:$GNUTLS_PATH/bin${bit64_sfx}:$GNUTLS_PATH/bin:$PATH])
604 -+AC_PATH_PROG(LIBGNUTLS_CONFIG, libgnutls-config, [], [$gnutls_config_path])
605 -
606 - if test "x$with_gnutls" != xno; then
607 - if test -x "$LIBGNUTLS_CONFIG"; then
608 -@@ -3817,7 +3941,7 @@
609 - test "x$p" = "x/usr" || GNUTLS_PATH=$p
610 - fi
611 - else
612 -- LIBGNUTLS_CONFIG="eval PKG_CONFIG_PATH=\"$GNUTLS_PATH/lib/pkgconfig\" pkg-config gnutls"
613 -+ LIBGNUTLS_CONFIG="eval PKG_CONFIG_PATH=\"$GNUTLS_PATH/lib/pkgconfig\" pkg-config gnutls --static"
614 - $LIBGNUTLS_CONFIG --exists >/dev/null 2>&1 || LIBGNUTLS_CONFIG=no
615 - fi
616 - case "$LIBGNUTLS_CONFIG" in
617 -@@ -3846,6 +3970,10 @@
618 - $GNUTLS_CONFIG_LIBS $GCRYPT_LIBS)
619 - if test "x$with_gnutls" != xno -a -n "$GNUTLS_CONFIG_LIBS"; then
620 - NCBI_RPATHIFY_OUTPUT(GNUTLS_LIBS, [echo $GNUTLS_CONFIG_LIBS], [$no_usr_lib])
621 -+ # Conservatively build against gcrypt if available even when gnutls
622 -+ # uses nettle instead, because gcrypt needs explicit initialization
623 -+ # to be thread-safe, but gnutls's headers don't indicate which
624 -+ # underlying crypto library it's actually using.
625 - case "$GNUTLS_INCLUDE" in
626 - *$GCRYPT_INCLUDE* ) ;;
627 - * ) GNUTLS_INCLUDE="$GNUTLS_INCLUDE $GCRYPT_INCLUDE" ;;
628 -@@ -4108,7 +4236,8 @@
629 - SYBASE_DBLIBS="$SYBASE_LPATH $SYBASE_DBLIBS"
630 - SYBASE_DLLS="$SYBASE_DLLLIST"
631 -
632 -- AC_CACHE_CHECK([for Sybase in $SYBASE_PATH], ncbi_cv_lib_sybase,
633 -+ AC_CACHE_CHECK([for Sybase${SYBASE_PATH:+ in $SYBASE_PATH}],
634 -+ ncbi_cv_lib_sybase,
635 - [CPPFLAGS="$SYBASE_INCLUDE $orig_CPPFLAGS"
636 - LIBS="$SYBASE_LIBS $SYBASE_DLLS $SYBASE_NETWORK_LIBS $DL_LIBS $orig_LIBS"
637 - AC_LINK_IFELSE([AC_LANG_PROGRAM(
638 -@@ -4216,7 +4345,8 @@
639 - AC_MSG_NOTICE([Using bundled FreeTDS (version $ftds_ver) from $FTDS_PATH])
640 - else
641 - FTDS_LIBS="$FTDS_CTLIBS"
642 -- AC_CACHE_CHECK([for FreeTDS in $FTDS_PATH], ncbi_cv_lib_freetds,
643 -+ AC_CACHE_CHECK([for FreeTDS${FTDS_PATH:+ in $FTDS_PATH}],
644 -+ ncbi_cv_lib_freetds,
645 - [CPPFLAGS="$FTDS_INCLUDE $orig_CPPFLAGS"
646 - LIBS="$FTDS_LIBS $NETWORK_LIBS $orig_LIBS"
647 - AC_LINK_IFELSE([AC_LANG_PROGRAM(
648 -@@ -4281,7 +4411,7 @@
649 - # Kill off single quotes, due to later requoting
650 - : ${MYSQL_INCLUDE=`$mysql_config --include | tr -d \'`}
651 - NCBI_RPATHIFY_OUTPUT_COND(MYSQL_LIBS, $mysql_config --libs${mt_sfx:+_r},
652 -- [s/'//g; ])
653 -+ [s/'//g; $no_usr_lib])
654 - AC_CACHE_CHECK([whether MySQL works], ncbi_cv_lib_mysql,
655 - [CPPFLAGS="$MYSQL_INCLUDE $orig_CPPFLAGS"
656 - LIBS="$MYSQL_LIBS $orig_LIBS"
657 -@@ -4310,7 +4440,6 @@
658 - if test "$with_bdb" != "no" ; then
659 - case "$with_bdb" in
660 - yes | "" )
661 -- : ${BERKELEYDB_PATH:="$NCBI/BerkeleyDB"}
662 - ;;
663 - */*)
664 - BERKELEYDB_PATH=$with_bdb
665 -@@ -4351,7 +4480,8 @@
666 - else
667 - BERKELEYDB_STATIC_LIBS=${BERKELEYDB_LIBS}
668 - fi
669 -- AC_CACHE_CHECK([for Berkeley DB libraries in $BERKELEYDB_PATH],
670 -+ AC_CACHE_CHECK(
671 -+ [for Berkeley DB libraries${BERKELEYDB_PATH:+ in $BERKELEYDB_PATH}],
672 - ncbi_cv_lib_berkeley_db,
673 - [CPPFLAGS="$BERKELEYDB_INCLUDE $orig_CPPFLAGS"
674 - LIBS="$BERKELEYDB_LIBS $orig_LIBS"
675 -@@ -4450,7 +4580,8 @@
676 - NCBI_RPATHIFY(ODBC_LIBS, ${ODBC_LIBPATH}, [ -lodbc -lodbcinst])
677 - CPPFLAGS="$ODBC_INCLUDE $orig_CPPFLAGS"
678 - LIBS="$ODBC_LIBS $orig_LIBS"
679 -- AC_CACHE_CHECK([for ODBC libraries in $ODBC_PATH], ncbi_cv_lib_odbc,
680 -+ AC_CACHE_CHECK([for ODBC libraries${ODBC_PATH:+ in $ODBC_PATH}],
681 -+ ncbi_cv_lib_odbc,
682 - [AC_LINK_IFELSE([AC_LANG_PROGRAM(
683 - [[#include <sql.h>]],
684 - [[SQLHDBC hdbc; SQLCHAR* cp = (SQLCHAR*) "x";
685 -@@ -4542,7 +4673,7 @@
686 - AC_PATH_PROG(PERL, perl, [], [$PERL_PATH/bin:$PATH])
687 - if test -x "$PERL"; then
688 - PERL_ARCHLIB=`$PERL -MConfig -e 'print \$Config{archlibexp};'`
689 -- PERL_FLAGS=`$PERL -MConfig -e 'print \$Config{cppflags};'`
690 -+ PERL_FLAGS=`$PERL -MConfig -e 'print join " ", grep /^-[[DI]]/, split /\\s+/, \$Config{cppflags};'`
691 - PERL_INCLUDE="-I$PERL_ARCHLIB/CORE $PERL_FLAGS"
692 - PERL_DEPS=`$PERL -MConfig -e 'print \$Config{libs};'`
693 - NCBI_RPATHIFY(PERL_LIBS, $PERL_ARCHLIB/CORE, [ -lperl $PERL_DEPS])
694 -@@ -4603,9 +4734,7 @@
695 -
696 - ## Boost
697 - if test "$with_boost" != "no"; then
698 -- if test "${with_boost-yes}" = yes; then
699 -- : ${BOOST_PATH=$NCBI/boost}
700 -- else
701 -+ if test "${with_boost-yes}" != yes; then
702 - BOOST_PATH=$with_boost
703 - fi
704 - if test -d "$BOOST_PATH"; then
705 -@@ -4644,17 +4773,22 @@
706 - if test -d `echo $BOOST_INCLUDE | sed -e 's/^-I//'`/boost-${ncbi_cv_lib_boost_version}/boost; then
707 - BOOST_INCLUDE=$BOOST_INCLUDE/boost-${ncbi_cv_lib_boost_version}
708 - fi
709 -- case "$ncbi_compiler" in
710 -- MIPSPRO)
711 -+ case "$compiler:$ncbi_compiler_ver" in
712 -+ MIPSpro*)
713 - BOOST_INCLUDE="$BOOST_INCLUDE $BOOST_INCLUDE/boost/compatibility/cpp_c_headers"
714 - ;;
715 -- WORKSHOP)
716 -+ WorkShop*)
717 - # Boost.Test's macros yield a *lot* of spurious "should not initialize
718 - # a non-const reference with a temporary" warnings, to the point of
719 - # overwhelming the compiler in some cases; turn them off altogether
720 - # when using Boost at all.
721 - BOOST_INCLUDE="$BOOST_INCLUDE -erroff=reftotemp"
722 - ;;
723 -+ GCC*:4[[7-9]]* | GCC*:5*)
724 -+ # Some portions of Boost also have a lot of "unused" typedefs
725 -+ # from concept checking.
726 -+ BOOST_INCLUDE="$BOOST_INCLUDE -Wno-unused-local-typedefs"
727 -+ ;;
728 - esac
729 - case "$ncbi_cv_lib_boost_version" in
730 - 0_* | 1_[[0-9]] | 1_[[0-9]]_* | 1_[[0-2]][[0-9]] | 1_[[0-2]][[0-9]]_* ) ;;
731 -@@ -4666,7 +4800,7 @@
732 - fi
733 - with_boost=no
734 - ;;
735 -- 1_3[[5-9]] | 1_3[[5-9]]_* | 1_4* | 1_5[[0-2]] | 1_5[[0-2]]_* ) ;;
736 -+ 1_3[[5-9]] | 1_3[[5-9]]_* | 1_4* | 1_5[[0-3]] | 1_5[[0-3]]_* ) ;;
737 - '' ) with_boost=no ;;
738 - * )
739 - AC_MSG_WARN(
740 -@@ -4751,7 +4885,9 @@
741 - BOOST_REGEX_STATIC_LIBS=$BOOST_REGEX_LIBS
742 - fi
743 -
744 -- AC_CACHE_CHECK([for Boost.Regex in $BOOST_PATH], ncbi_cv_lib_boost_regex,
745 -+ in_path=${BOOST_PATH:+ in $BOOST_PATH}
746 -+
747 -+ AC_CACHE_CHECK([for Boost.Regex$in_path], ncbi_cv_lib_boost_regex,
748 - CPPFLAGS="$BOOST_INCLUDE $orig_CPPFLAGS"
749 - LIBS="$BOOST_LIBPATH $BOOST_REGEX_LIBS $RT_LIBS $orig_LIBS"
750 - [AC_LINK_IFELSE(
751 -@@ -4759,7 +4895,7 @@
752 - [[throw boost::regex_error(boost::regex_constants::error_stack);]])],
753 - [ncbi_cv_lib_boost_regex=yes], [ncbi_cv_lib_boost_regex=no])])
754 -
755 -- AC_CACHE_CHECK([for Boost.Spirit in $BOOST_PATH], ncbi_cv_lib_boost_spirit,
756 -+ AC_CACHE_CHECK([for Boost.Spirit$in_path], ncbi_cv_lib_boost_spirit,
757 - CPPFLAGS="$BOOST_INCLUDE $orig_CPPFLAGS"
758 - LIBS="$RT_LIBS $orig_LIBS"
759 - [AC_LINK_IFELSE(
760 -@@ -4774,7 +4910,7 @@
761 - BOOST_SYSTEM_STATIC_LIBS=$BOOST_SYSTEM_LIBS
762 - fi
763 -
764 -- AC_CACHE_CHECK([for Boost.System in $BOOST_PATH], ncbi_cv_lib_boost_system,
765 -+ AC_CACHE_CHECK([for Boost.System$in_path], ncbi_cv_lib_boost_system,
766 - CPPFLAGS="$BOOST_INCLUDE $orig_CPPFLAGS"
767 - LIBS="$BOOST_LIBPATH $BOOST_SYSTEM_LIBS $RT_LIBS $orig_LIBS"
768 - [AC_LINK_IFELSE(
769 -@@ -4785,6 +4921,24 @@
770 - BOOST_SYSTEM_LIBS=
771 - BOOST_SYSTEM_STATIC_LIBS=])])
772 -
773 -+ boost_fs_lib=-lboost_filesystem${BOOST_TAG}
774 -+ if test -f "$BOOST_LIBPATH_/libboost_filesystem${BOOST_TAG}-static.a"; then
775 -+ boost_fs_static_lib=-lboost_filesystem${BOOST_TAG}-static
776 -+ else
777 -+ boost_fs_static_lib=$boost_fs_lib
778 -+ fi
779 -+ BOOST_FILESYSTEM_LIBS="$boost_fs_lib $BOOST_SYSTEM_LIBS"
780 -+ BOOST_FILESYSTEM_STATIC_LIBS="$boost_fs_static_lib $BOOST_SYSTEM_STATIC_LIBS"
781 -+
782 -+ AC_CACHE_CHECK([for Boost.Filesystem$in_path], ncbi_cv_lib_boost_filesystem,
783 -+ CPPFLAGS="$BOOST_INCLUDE $orig_CPPFLAGS"
784 -+ LIBS="$BOOST_LIBPATH $BOOST_FILESYSTEM_LIBS $RT_LIBS $orig_LIBS"
785 -+ [AC_LINK_IFELSE(
786 -+ [AC_LANG_PROGRAM([[#include <boost/filesystem.hpp>]],
787 -+ [[return boost::filesystem::portable_name("foo");]])],
788 -+ [ncbi_cv_lib_boost_filesystem=yes],
789 -+ [ncbi_cv_lib_boost_filesystem=no])])
790 -+
791 - BOOST_TEST_PEM_LIBS=-lboost_prg_exec_monitor${BOOST_TAG}
792 - if test -f "$BOOST_LIBPATH_/libboost_prg_exec_monitor${BOOST_TAG}-static.a"; then
793 - BOOST_TEST_PEM_STATIC_LIBS=-lboost_prg_exec_monitor${BOOST_TAG}-static
794 -@@ -4813,7 +4967,7 @@
795 - BOOST_TEST_TEM_LIBS=$BOOST_TEST_TEM_STATIC_LIBS
796 - BOOST_TEST_UTF_LIBS=$BOOST_TEST_UTF_STATIC_LIBS
797 -
798 -- AC_CACHE_CHECK([for Boost.Test in $BOOST_PATH], ncbi_cv_lib_boost_test,
799 -+ AC_CACHE_CHECK([for Boost.Test$in_path], ncbi_cv_lib_boost_test,
800 - CPPFLAGS="$BOOST_INCLUDE $orig_CPPFLAGS"
801 - LIBS="$RT_LIBS $orig_LIBS"
802 - found=
803 -@@ -4853,7 +5007,7 @@
804 - BOOST_THREAD_STATIC_LIBS=$BOOST_THREAD_LIBS
805 - fi
806 -
807 -- AC_CACHE_CHECK([for Boost.Threads in $BOOST_PATH], ncbi_cv_lib_boost_thread,
808 -+ AC_CACHE_CHECK([for Boost.Threads$in_path], ncbi_cv_lib_boost_thread,
809 - CPPFLAGS="$BOOST_INCLUDE $orig_CPPFLAGS"
810 - LIBS="$BOOST_LIBPATH $BOOST_THREAD_LIBS $RT_LIBS $orig_LIBS"
811 - [AC_LINK_IFELSE(
812 -@@ -4864,12 +5018,25 @@
813 - BOOST_INCLUDE=
814 - BOOST_LIBPATH=
815 - BOOST_TAG=
816 -+ ncbi_cv_lib_boost_filesystem=no
817 - ncbi_cv_lib_boost_regex=no
818 - ncbi_cv_lib_boost_spirit=no
819 -+ ncbi_cv_lib_boost_system=no
820 - ncbi_cv_lib_boost_test=no
821 - ncbi_cv_lib_boost_thread=no
822 - fi
823 -
824 -+if test "$ncbi_cv_lib_boost_filesystem" != "no"; then
825 -+ dnl AC_DEFINE(HAVE_BOOST_FILESYSTEM, 1,
826 -+ dnl [Define to 1 if the `Boost.Filesystem' library is available.])
827 -+ NCBI_PACKAGE(Boost.Filesystem)
828 -+else
829 -+ boost_fs_lib=
830 -+ boost_fs_static_lib=
831 -+ BOOST_FILESYSTEM_LIBS=
832 -+ BOOST_FILESYSTEM_STATIC_LIBS=
833 -+fi
834 -+
835 - if test "$ncbi_cv_lib_boost_regex" != "no"; then
836 - AC_DEFINE(HAVE_BOOST_REGEX, 1,
837 - [Define to 1 if the `Boost.Regex' library is available.])
838 -@@ -4927,7 +5094,10 @@
839 -
840 - ## NCBI C Toolkit
841 - if test "$with_ncbi_c" != "no" ; then
842 -- NCBI_C_PATH=${NCBI_C_PATH:="$NCBI"}
843 -+ if test "${with_ncbi_c-yes}" != yes; then
844 -+ NCBI_C_PATH=$with_ncbi_c
845 -+ fi
846 -+ : ${NCBI_C_PATH="$NCBI"}
847 - if test "$ncbi_compiler" = ICC -a -d "$NCBI_C_PATH/ncbi_icc"; then
848 - NCBI_C_PATH=$NCBI_C_PATH/ncbi_icc
849 - fi
850 -@@ -4949,7 +5119,8 @@
851 - NCBI_C_ncbi="-lncbi"
852 - fi
853 - NCBI_C_LIBPATH="-L$NCBI_C_LIBPATH"
854 -- AC_CACHE_CHECK([for the NCBI C toolkit in $NCBI_C_PATH], ncbi_cv_lib_ctools,
855 -+ AC_CACHE_CHECK([for the NCBI C toolkit${NCBI_C_PATH:+ in $NCBI_C_PATH}],
856 -+ ncbi_cv_lib_ctools,
857 - [CPPFLAGS="$NCBI_C_INCLUDE $orig_CPPFLAGS"
858 - LIBS="$NCBI_C_LIBPATH $NCBI_C_ncbi $NETWORK_LIBS $orig_LIBS"
859 - AC_LINK_IFELSE([AC_LANG_PROGRAM(
860 -@@ -5000,11 +5171,7 @@
861 -
862 - ## OpenGL
863 - if test "$with_opengl" != "no"; then
864 -- if test "${with_opengl-yes}" = yes; then
865 -- if test -d $NCBI/MesaGL; then
866 -- : ${OPENGL_PATH=$NCBI/MesaGL}
867 -- fi
868 -- else
869 -+ if test "${with_opengl-yes}" != yes; then
870 - OPENGL_PATH=$with_opengl
871 - fi
872 - if test -d "$OPENGL_PATH"; then
873 -@@ -5101,7 +5268,6 @@
874 - else
875 - OSMESA_STATIC_LIBS=$OSMESA_LIBS
876 - fi
877 -- : ${GLUT_PATH=$NCBI/glut}
878 - if test "$with_glut" != "no"; then
879 - if test "${with_glut-yes}" != "yes"; then
880 - GLUT_PATH=$with_glut
881 -@@ -5121,7 +5287,6 @@
882 - NCBI_MISSING_PACKAGE(glut)
883 - fi
884 - fi
885 -- : ${GLEW_PATH=$NCBI/glew}
886 - if test "$with_glew" != "no"; then
887 - if test "${with_glew-yes}" != "yes"; then
888 - GLEW_PATH=$with_glew
889 -@@ -5214,7 +5379,7 @@
890 - : ${with_wxwidgets_ucs=no}
891 - if test "$with_wxwidgets" != "no" ; then
892 - case "$with_wxwidgets" in
893 -- yes | "" ) : ${WXWIDGETS_PATH=$NCBI/wxwidgets} ;;
894 -+ yes | "" ) ;;
895 - * ) WXWIDGETS_PATH=$with_wxwidgets ;;
896 - esac
897 - if test -d "$WXWIDGETS_PATH/${compiler_vpfx}${DEBUG_SFX}${mt_sfx}${bit64_sfx}/lib" \
898 -@@ -5283,12 +5448,13 @@
899 - libsed=$basesed
900 - ;;
901 - esac
902 -- AC_CACHE_CHECK([for wxWidgets in $WXWIDGETS_ARCH_PATH],
903 -+ AC_CACHE_CHECK(
904 -+ [for wxWidgets${WXWIDGETS_ARCH_PATH:+ in $WXWIDGETS_ARCH_PATH}],
905 - ncbi_cv_lib_wxwidgets,
906 - [if test -x "$wxconf" ; then
907 - WXWIDGETS_INCLUDE="$baseflags `"$wxconf" $wxcfflags --cflags`"
908 - NCBI_RPATHIFY_OUTPUT(WXWIDGETS_LIBS, ["$wxconf" $wxcfflags --libs],
909 -- [$libsed; ])
910 -+ [$libsed; s/ -lm / /g;])
911 -
912 - CPPFLAGS="$WXWIDGETS_INCLUDE $orig_CPPFLAGS"
913 - LIBS="$WXWIDGETS_LIBS $orig_LIBS"
914 -@@ -5315,12 +5481,12 @@
915 - else
916 - NCBI_PACKAGE(wxWidgets)
917 - case "`"$wxconf" $wxcfflags --version`" in
918 -- 2.[[89]].* | 2.[[0-9]][[0-9]]* )
919 -- NCBI_PACKAGE(wx2.8)
920 -- wxlibs=std,richtext,aui
921 -+ 1.* | 2.[[0-7]].*)
922 -+ wxlibs=std
923 - ;;
924 - *)
925 -- wxlibs=std
926 -+ NCBI_PACKAGE(wx2.8)
927 -+ wxlibs=std,richtext,aui,propgrid
928 - ;;
929 - esac
930 - # The "yes" may have been cached; get the actual settings again if needed
931 -@@ -5328,9 +5494,9 @@
932 - WXWIDGETS_INCLUDE="$baseflags `"$wxconf" $wxcfflags --cflags`"
933 - fi
934 - NCBI_RPATHIFY_OUTPUT(WXWIDGETS_LIBS, [$wxconf $wxcfflags --libs $wxlibs],
935 -- [$libsed; ])
936 -+ [$libsed; s/ -lm / /g;])
937 - WXWIDGETS_STATIC_LIBS=`"$wxconf" $wxcfflags --libs --static $wxlibs \
938 -- 2>/dev/null | sed -e "$basesed"`
939 -+ 2>/dev/null | sed -e "$basesed; s/ -lm / /g;"`
940 - if test -n "$WXWIDGETS_STATIC_LIBS"; then
941 - # Allow direct use of underlying libraries with strict linkers
942 - WXWIDGETS_LIBS="$WXWIDGETS_LIBS `echo $WXWIDGETS_STATIC_LIBS | sed -e 's/.*\.a *//'`"
943 -@@ -5350,7 +5516,7 @@
944 - ## In-house Fast-CGI library
945 - if test "$with_fastcgi" != "no" ; then
946 - case "$with_fastcgi" in
947 -- yes | "" ) : ${FASTCGI_PATH:="$NCBI/fcgi-current"} ;;
948 -+ yes | "" ) ;;
949 - */* ) FASTCGI_PATH=$with_fastcgi ;;
950 - * ) FASTCGI_PATH=$NCBI/fcgi-${with_fastcgi} ;;
951 - esac
952 -@@ -5366,7 +5532,8 @@
953 - NCBI_RPATHIFY(FASTCGI_LIBS, $FASTCGI_LIBDIR, [ -lfcgi $NETWORK_LIBS])
954 - FASTCGI_OBJS="fcgibuf"
955 - LIBS="$FASTCGI_LIBS $orig_LIBS"
956 -- AC_CACHE_CHECK([for FastCGI libraries in $FASTCGI_PATH], ncbi_cv_lib_fcgi,
957 -+ AC_CACHE_CHECK([for FastCGI libraries${FASTCGI_PATH:+ in $FASTCGI_PATH}],
958 -+ ncbi_cv_lib_fcgi,
959 - [CPPFLAGS="$FASTCGI_INCLUDE $orig_CPPFLAGS"
960 - AC_LINK_IFELSE([AC_LANG_PROGRAM(
961 - [[#include <fcgiapp.h>]],
962 -@@ -5416,7 +5583,11 @@
963 - else
964 - with_included_sss=no
965 - fi
966 -+ if test "${with_sss-yes}" = yes; then
967 - NCBI_SSS_PATH=${NCBI_SSS_PATH:="$NCBI/sss/BUILD"}
968 -+ else
969 -+ NCBI_SSS_PATH=$with_sss
970 -+ fi
971 - NCBI_SSS_INCLUDE=${NCBI_SSS_INCLUDE:="$NCBI_SSS_PATH/include"}
972 - if test -z "$NCBI_SSS_LIBPATH" ; then
973 - NCBI_SSS_LIBPATH="${NCBI_SSS_PATH}/lib/${compiler_vpfx}${DEBUG_SFX}${bit64_sfx}"
974 -@@ -5424,7 +5595,8 @@
975 - NCBI_SSS_LIBPATH="${NCBI_SSS_LIBPATH}mt"
976 - fi
977 - fi
978 -- AC_MSG_CHECKING([for NCBI SSS directories in $NCBI_SSS_PATH])
979 -+ AC_MSG_CHECKING(
980 -+ [for NCBI SSS directories${NCBI_SSS_PATH:+ in $NCBI_SSS_PATH}])
981 - if test "$with_included_sss" = "yes"; then
982 - AC_MSG_RESULT([yes]) # duh
983 - elif test ! -d "${NCBI_SSS_LIBPATH}" -o ! -d "${NCBI_SSS_INCLUDE}" ; then
984 -@@ -5510,7 +5682,6 @@
985 -
986 - # SP
987 - if test "$with_sp" != "no" ; then
988 -- SP_PATH=${SP_PATH:="$NCBI/SP"}
989 - if test -n "$SP_INCLUDE"; then
990 - SP_GENERIC="$SP_INCLUDE/../generic"
991 - else
992 -@@ -5520,7 +5691,7 @@
993 - if test -z "$SP_LIBPATH" ; then
994 - SP_LIBPATH="${SP_PATH}/${compiler_vpfx}${DEBUG_SFX}${mt_sfx}${bit64_sfx}"
995 - fi
996 -- AC_MSG_CHECKING([for SP directories in $SP_PATH])
997 -+ AC_MSG_CHECKING([for SP directories${SP_PATH:+ in $SP_PATH}])
998 - if test ! -d "${SP_LIBPATH}" -o ! -d "${SP_INCLUDE}" ; then
999 - AC_MSG_RESULT([no])
1000 - NCBI_MISSING_PACKAGE(sp)
1001 -@@ -5558,19 +5729,13 @@
1002 -
1003 -
1004 - ## ORBacus CORBA
1005 --if test "${with_orbacus:-yes}" = yes; then
1006 -- if test -d $NCBI/corba/${compiler_vpfx}Release${bit64_sfx}MT; then
1007 -- : ${ORBACUS_PATH=$NCBI/corba/${compiler_vpfx}Release${bit64_sfx}MT}
1008 -- else
1009 -- : ${ORBACUS_PATH=$NCBI/corba/OB-4.0.1}
1010 -- fi
1011 --elif test "$with_orbacus" != no; then
1012 -+if test "$with_orbacus" != no; then
1013 -+ if test "$with_orbacus" != yes; then
1014 - ORBACUS_PATH=$with_orbacus
1015 - fi
1016 - if test -d "$ORBACUS_PATH"; then
1017 - NCBI_FIX_DIR(ORBACUS_PATH)
1018 - fi
1019 --if test "$with_orbacus" != no; then
1020 - fullpath=${ORBACUS_PATH}/${DEBUG_SFX}${mt_sfx}${bit64_sfx}
1021 - if test -f ${fullpath}/inc/OB/Config.h ; then
1022 - : ${ORBACUS_INCLUDE="-I$ORBACUS_PATH/include -I$fullpath/inc"}
1023 -@@ -5594,7 +5759,8 @@
1024 - LIBIMR=
1025 - ;;
1026 - esac
1027 -- AC_CACHE_CHECK([for ORBacus in $ORBACUS_PATH], ncbi_cv_lib_orbacus,
1028 -+ AC_CACHE_CHECK([for ORBacus${ORBACUS_PATH:+ in $ORBACUS_PATH}],
1029 -+ ncbi_cv_lib_orbacus,
1030 - [CPPFLAGS="$ORBACUS_INCLUDE $orig_CPPFLAGS"
1031 - LIBS="$ORBACUS_LIBPATH $LIBOB $NETWORK_LIBS $DL_LIBS $orig_LIBS"
1032 - AC_LINK_IFELSE([AC_LANG_PROGRAM(
1033 -@@ -5633,7 +5799,7 @@
1034 -
1035 - if test "$with_icu" != "no" ; then
1036 - case "$with_icu" in
1037 -- yes | "" ) : ${ICU_PATH=$NCBI/icu} ;;
1038 -+ yes | "" ) ;;
1039 - * ) ICU_PATH=$with_icu ;;
1040 - esac
1041 - if test -d "$ICU_PATH/${compiler_vpfx}${DEBUG_SFX}${bit64_sfx}${mt_sfx}/lib" \
1042 -@@ -5648,7 +5814,8 @@
1043 - ICU_BINPATH=${ICU_BINPATH:="$ICU_ARCH_PATH/bin"}
1044 - ICU_LIBPATH=${ICU_LIBPATH:="$ICU_ARCH_PATH/lib"}
1045 - ICU_INCLUDE=
1046 -- AC_CACHE_CHECK([for ICU in $ICU_ARCH_PATH], ncbi_cv_lib_icu,
1047 -+ AC_CACHE_CHECK([for ICU${ICU_ARCH_PATH:+ in $ICU_ARCH_PATH}],
1048 -+ ncbi_cv_lib_icu,
1049 - [ICU_CONFIG=`$ICU_BINPATH/icu-config --bindir 2>/dev/null`/icu-config
1050 - if test -x "$ICU_CONFIG" ; then
1051 - ICU_INCLUDE=`$ICU_CONFIG --cppflags-searchpath`
1052 -@@ -5690,9 +5857,6 @@
1053 -
1054 -
1055 - ### XML/XSL libraries
1056 --if test -d "$NCBI/expat/include"; then
1057 -- : ${EXPAT_PATH=$NCBI/expat}
1058 --fi
1059 - NCBI_CHECK_THIRD_PARTY_LIB(expat,
1060 - AC_LANG_PROGRAM([#include <expat.h>],
1061 - [XML_Parser parser = XML_ParserCreate("utf-8");]))
1062 -@@ -5701,7 +5865,6 @@
1063 - else
1064 - EXPAT_STATIC_LIBS=${EXPAT_LIBS}
1065 - fi
1066 --: ${SABLOT_PATH=$NCBI/Sablot}
1067 - vpath="$SABLOT_PATH/${compiler_vpfx}build"
1068 - test -d "$vpath" && SABLOT_PATH=$vpath
1069 - if test -d "$SABLOT_PATH"; then
1070 -@@ -5718,7 +5881,6 @@
1071 - SABLOT_STATIC_LIBS=${SABLOT_LIBS}
1072 - fi
1073 -
1074 --: ${LIBXML_PATH=$NCBI/libxml}
1075 - # test -d "$LIBXML_PATH" || LIBXML_PATH=`xml2-config --prefix 2>/dev/null`
1076 - if test "$with_libxml" != "no"; then
1077 - case "$with_libxml" in
1078 -@@ -5813,7 +5975,6 @@
1079 - LIBEXSLT_STATIC_LIBS=${LIBEXSLT_LIBS}
1080 - fi
1081 -
1082 --: ${XERCES_PATH=$NCBI/xerces}
1083 - if test "$with_xerces" != no; then
1084 - if test "${with_xerces-yes}" != yes; then
1085 - XERCES_PATH=$with_xerces
1086 -@@ -5838,7 +5999,7 @@
1087 - NCBI_FIX_DIR(XERCES_LIBPATH)
1088 - fi
1089 - fi
1090 -- if test -d $XERCES_PATH; then
1091 -+ if test -d "$XERCES_PATH"; then
1092 - in_path=" in $XERCES_PATH"
1093 - : ${XERCES_INCLUDE=-I$XERCES_PATH/include}
1094 - : ${XERCES_LIBPATH=$XERCES_PATH/lib}
1095 -@@ -5875,7 +6036,6 @@
1096 - XERCES_STATIC_LIBS=
1097 - fi
1098 -
1099 --: ${XALAN_PATH=$NCBI/xalan}
1100 - if test "$with_xalan" != no; then
1101 - if test "${with_xalan-yes}" != yes; then
1102 - XALAN_PATH=$with_xalan
1103 -@@ -5900,7 +6060,7 @@
1104 - NCBI_FIX_DIR(XALAN_LIBPATH)
1105 - fi
1106 - fi
1107 -- if test -d $XALAN_PATH; then
1108 -+ if test -d "$XALAN_PATH"; then
1109 - in_path=" in $XALAN_PATH"
1110 - : ${XALAN_INCLUDE=-I$XALAN_PATH/include}
1111 - : ${XALAN_LIBPATH=$XALAN_PATH/lib}
1112 -@@ -5937,7 +6097,6 @@
1113 -
1114 - test -d SunWS_cache && rm -r SunWS_cache
1115 -
1116 --: ${ZORBA_PATH=$NCBI/zorba}
1117 - if test "$with_zorba" != no; then
1118 - if test "${with_zorba-yes}" != yes; then
1119 - ZORBA_PATH=$with_zorba
1120 -@@ -5967,7 +6126,7 @@
1121 - ZORBA_PATH=`$ZORBA_CONFIG --prefix`
1122 - : ${ZORBA_INCLUDE=`$ZORBA_CONFIG --cppflags`}
1123 - fi
1124 -- if test -d $ZORBA_PATH; then
1125 -+ if test -d "$ZORBA_PATH"; then
1126 - in_path=" in $ZORBA_PATH"
1127 - : ${ZORBA_INCLUDE=-I$ZORBA_PATH/include}
1128 - : ${ZORBA_LIBPATH=$ZORBA_PATH/lib}
1129 -@@ -6010,7 +6169,7 @@
1130 -
1131 - ### SQLite
1132 - case "$with_sqlite3" in
1133 -- yes | '' ) : ${SQLITE3_PATH=$NCBI/sqlite3} ;;
1134 -+ yes | '' ) ;;
1135 - * ) SQLITE3_PATH=$with_sqlite3 ;;
1136 - esac
1137 -
1138 -@@ -6048,7 +6207,6 @@
1139 - ### OEChem
1140 - # somewhat kludgish, as we now wanto to add in oeiupac and oedepict,
1141 - # which depend on oechem....
1142 --: ${OECHEM_PATH=$NCBI/oechem}
1143 - NCBI_CHECK_THIRD_PARTY_LIB(oechem,
1144 - AC_LANG_PROGRAM([#include <oechem.h>],
1145 - [OEChem::OEMol mol; OEChem::OEConfBase* c = mol.GetActive();]),
1146 -@@ -6091,7 +6249,7 @@
1147 -
1148 - ### muParser
1149 - case "$with_muparser" in
1150 -- yes | '' ) : ${MUPARSER_PATH=$NCBI/muParser} ;;
1151 -+ yes | '' ) ;;
1152 - * ) MUPARSER_PATH=$with_muparser ;;
1153 - esac
1154 -
1155 -@@ -6111,7 +6269,7 @@
1156 -
1157 - ### hdf5
1158 - case "$with_hdf5" in
1159 -- yes | '' ) : ${HDF5_PATH=$NCBI/hdf5} ;;
1160 -+ yes | '' ) ;;
1161 - * ) HDF5_PATH=$with_hdf5 ;;
1162 - esac
1163 -
1164 -@@ -6176,7 +6334,7 @@
1165 - GIF_LIBS=$UNGIF_LIBS
1166 - fi
1167 -
1168 --test -n "$x_libraries" && : ${XPM_PATH=`dirname "$x_libraries"`}
1169 -+case "$x_libraries" in */*) : ${XPM_PATH=`dirname "$x_libraries"`} ;; esac
1170 - NCBI_CHECK_THIRD_PARTY_LIB(Xpm,
1171 - AC_LANG_PROGRAM([#include <X11/xpm.h>],
1172 - [XpmImage image; XpmInfo info;
1173 -@@ -6241,7 +6399,7 @@
1174 - fi
1175 -
1176 - case "$with_ftgl" in
1177 -- yes | '' ) : ${FTGL_PATH=$NCBI/ftgl} ;;
1178 -+ yes | '' ) ;;
1179 - * ) FTGL_PATH=$with_ftgl ;;
1180 - esac
1181 -
1182 -@@ -6268,7 +6426,7 @@
1183 -
1184 - # Mimetic
1185 - case "$with_mimetic" in
1186 -- yes | '' ) : ${MIMETIC_PATH=$NCBI/mimetic} ;;
1187 -+ yes | '' ) ;;
1188 - * ) MIMETIC_PATH=$with_mimetic ;;
1189 - esac
1190 - if test -d "$MIMETIC_PATH"; then
1191 -@@ -6293,6 +6451,88 @@
1192 - [mimetic::MimeEntity me;])])
1193 -
1194 -
1195 -+# gSOAP++
1196 -+case "$with_gsoap" in
1197 -+ yes | '' ) ;;
1198 -+ * ) GSOAP_PATH=$with_gsoap ;;
1199 -+esac
1200 -+if test -d "$GSOAP_PATH"; then
1201 -+ NCBI_FIX_DIR(GSOAP_PATH)
1202 -+fi
1203 -+for d in "$GSOAP_LIBDIR" \
1204 -+ "$GSOAP_PATH/${compiler_vpfx}${DEBUG_SFX}${mt_sfx}${bit64_sfx}/lib" \
1205 -+ "$GSOAP_PATH/${compiler_pfx}${DEBUG_SFX}${mt_sfx}${bit64_sfx}/lib" \
1206 -+ "$GSOAP_PATH/lib${bit64_sfx}" \
1207 -+ "$GSOAP_PATH/${compiler_vpfx}${DEBUG_SFX}${mt_sfx}/lib" \
1208 -+ "$GSOAP_PATH/${compiler_pfx}${DEBUG_SFX}${mt_sfx}/lib" \
1209 -+ "$GSOAP_PATH/lib"; do
1210 -+ if test -d "$d"; then
1211 -+ GSOAP_LIBDIR=$d
1212 -+ NCBI_FIX_DIR(GSOAP_LIBDIR)
1213 -+ break
1214 -+ fi
1215 -+done
1216 -+NCBI_RPATHIFY(GSOAP_LIBPATH, $GSOAP_LIBDIR)
1217 -+
1218 -+: ${GSOAP_BINDIR=`dirname "$GSOAP_LIBDIR"`/bin}
1219 -+AC_PATH_PROG(GSOAP_SOAPCPP2, soapcpp2, [], $GSOAP_BINDIR:$PATH)
1220 -+AC_PATH_PROG(GSOAP_WSDL2H, wsdl2h, [], $GSOAP_BINDIR:$PATH)
1221 -+
1222 -+NCBI_CHECK_THIRD_PARTY_LIB_EX(gsoap, GSOAP, gsoapssl++,
1223 -+ [AC_LANG_PROGRAM([#include <stdsoap2.h>
1224 -+ SOAP_FMAC3 const char** SOAP_FMAC4 soap_faultcode(struct soap*)
1225 -+ { return NULL; }
1226 -+ SOAP_FMAC3 const char** SOAP_FMAC4 soap_faultsubcode(struct soap*)
1227 -+ { return NULL; }
1228 -+ SOAP_FMAC3 const char** SOAP_FMAC4 soap_faultstring(struct soap*)
1229 -+ { return NULL; }
1230 -+ SOAP_FMAC3 const char** SOAP_FMAC4 soap_faultdetail(struct soap*)
1231 -+ { return NULL; }
1232 -+ SOAP_FMAC3 const char* SOAP_FMAC4 soap_check_faultsubcode(struct soap*)
1233 -+ { return NULL; }
1234 -+ SOAP_FMAC3 const char* SOAP_FMAC4 soap_check_faultdetail(struct soap*)
1235 -+ { return NULL; }
1236 -+ SOAP_FMAC3 void SOAP_FMAC4 soap_serializeheader(struct soap*) { }
1237 -+ SOAP_FMAC3 int SOAP_FMAC4 soap_putheader(struct soap*) { return 0; }
1238 -+ SOAP_FMAC3 int SOAP_FMAC4 soap_getheader(struct soap*) { return 0; }
1239 -+ SOAP_FMAC3 void SOAP_FMAC4 soap_serializefault(struct soap*) { }
1240 -+ SOAP_FMAC3 int SOAP_FMAC4 soap_putfault(struct soap*) { return 0; }
1241 -+ SOAP_FMAC3 int SOAP_FMAC4 soap_getfault(struct soap*) { return 0; }],
1242 -+ [soap s;])],
1243 -+ $OPENSSL_LIBS $Z_LIBS)
1244 -+
1245 -+case "$with_sqlite3" in
1246 -+ yes | '' ) ;;
1247 -+ * ) SQLITE3_PATH=$with_sqlite3 ;;
1248 -+esac
1249 -+
1250 -+
1251 -+# MongoDB
1252 -+if test -d "$MONGODB_PATH"; then
1253 -+ NCBI_FIX_DIR(MONGODB_PATH)
1254 -+fi
1255 -+if test -d $MONGODB_PATH/lib${bit64_sfx}; then
1256 -+ MONGODB_LIBDIR=$MONGODB_PATH/lib${bit64_sfx}
1257 -+else
1258 -+ MONGODB_LIBDIR=$MONGODB_PATH/lib
1259 -+fi
1260 -+# need Boost rpath
1261 -+NCBI_RPATHIFY(MONGODB_LIBPATH, $MONGODB_LIBDIR)
1262 -+NCBI_CHECK_THIRD_PARTY_LIB_EX(mongodb, MONGODB, mongoclient,
1263 -+ [AC_LANG_PROGRAM([#include <mongo/client/dbclient.h>],
1264 -+ [std::vector<mongo::HostAndPort> v;
1265 -+ mongo::DBClientReplicaSet client("foo", v);
1266 -+ client.connect();])],
1267 -+ [$BOOST_LIBPATH $boost_fs_lib $BOOST_THREAD_LIBS], [],
1268 -+ [$BOOST_INCLUDE])
1269 -+# MongoDB's own library is normally static, but its supporting Boost
1270 -+# libraries might not be by default.
1271 -+if test -n "$MONGODB_LIBS"; then
1272 -+ MONGODB_STATIC_LIBS="$MONGODB_LIBPATH -lmongodb $BOOST_LIBPATH $boost_fs_static_lib $BOOST_THREAD_STATIC_LIBS"
1273 -+else
1274 -+ MONGODB_STATIC_LIBS=
1275 -+fi
1276 -+
1277 - ### Restore original compiler/linker flags
1278 - LIBS="$orig_LIBS"
1279 - CPPFLAGS="$orig_CPPFLAGS"
1280 -@@ -6499,16 +6739,6 @@
1281 - fi
1282 -
1283 -
1284 --## Sequence Read Archive SDK, which may be attached on either the
1285 --## public or the internal side
1286 --
1287 --if test -f "${real_srcdir}/src/sra/sdk/Makefile.sra_macros.mk"; then
1288 -- sra=sra
1289 --else
1290 -- sra=
1291 --fi
1292 --
1293 --
1294 - ## `internal' project cluster
1295 -
1296 - if test "$with_internal" = "no" \
1297 -@@ -6781,6 +7011,7 @@
1298 - AC_SUBST(C_LINK)
1299 - AC_SUBST(TAIL_N)
1300 - AC_SUBST(EGREP_Q)
1301 -+AC_SUBST(LDD_R)
1302 -
1303 - AC_SUBST(CFLAGS)
1304 - AC_SUBST(FAST_CFLAGS)
1305 -@@ -6829,7 +7060,6 @@
1306 - AC_SUBST(algo)
1307 - AC_SUBST(app)
1308 - AC_SUBST(internal)
1309 --AC_SUBST(sra)
1310 -
1311 - AC_SUBST(check)
1312 - AC_SUBST(CHECK_ARG)
1313 -@@ -6865,6 +7095,7 @@
1314 -
1315 - AC_SUBST(THREAD_LIBS)
1316 - AC_SUBST(NCBIATOMIC_LIB)
1317 -+AC_SUBST(OPENMP_FLAGS)
1318 - AC_SUBST(NETWORK_LIBS)
1319 - AC_SUBST(NETWORK_PURE_LIBS)
1320 - AC_SUBST(RESOLVER_LIBS)
1321 -@@ -6902,6 +7133,8 @@
1322 - AC_SUBST(BOOST_INCLUDE)
1323 - AC_SUBST(BOOST_LIBPATH)
1324 - AC_SUBST(BOOST_TAG)
1325 -+AC_SUBST(BOOST_FILESYSTEM_LIBS)
1326 -+AC_SUBST(BOOST_FILESYSTEM_STATIC_LIBS)
1327 - AC_SUBST(BOOST_REGEX_LIBS)
1328 - AC_SUBST(BOOST_REGEX_STATIC_LIBS)
1329 - AC_SUBST(BOOST_SYSTEM_LIBS)
1330 -@@ -6968,6 +7201,8 @@
1331 - AC_SUBST(SQLITE3_STATIC_LIBS)
1332 - AC_SUBST(FREETYPE_INCLUDE)
1333 - AC_SUBST(FREETYPE_LIBS)
1334 -+AC_SUBST(GSOAP_PATH)
1335 -+AC_SUBST(MONGODB_STATIC_LIBS)
1336 - AC_SUBST(ncbi_xreader_pubseqos)
1337 - AC_SUBST(ncbi_xreader_pubseqos2)
1338 - AC_SUBST(UNLESS_PUBSEQOS)
1339 -@@ -7194,7 +7429,9 @@
1340 -
1341 - cat << EOCONF
1342 - ===============================================================================
1343 --NCBI C++ Toolkit documentation: doc/index.html, doc/config.html#ref_Running
1344 -+NCBI C++ Toolkit documentation:
1345 -+ Online: http://www.ncbi.nlm.nih.gov/toolkit/doc/book/
1346 -+ Local: ./doc/public/index.html
1347 - For the available configuration flags run: ./configure --help
1348 -
1349 - CFLAGS = $CFLAGS
1350 ---- ncbi_cxx--12_0_0/src/build-system/aclocal.m4.ori 2014-06-23 17:36:18.000000000 +0200
1351 -+++ ncbi_cxx--12_0_0/src/build-system/aclocal.m4 2014-06-23 17:36:59.000000000 +0200
1352 -@@ -1,126 +1,45 @@
1353 --# Hacked up in various ways, since Autoconf's version doesn't quite
1354 --# suit our (unusual) conventions. (Originally from status.m4)
1355 --m4_define([_AC_SRCPATHS],
1356 --[#ac_builddir=. # Useless!
1357 --ac_builddir=$builddir
1358 --dnl Base source directories on path to *input* file.
1359 --if test -n "$ac_file_in"; then
1360 -- ac_dir_in=`AS_DIRNAME(["$ac_file_in"])`
1361 -+# Autoconf's _AC_SRCDIRS (from status.m4; historically _AC_SRCPATHS)
1362 -+# doesn't quite suit the C++ Toolkit's conventions; tweak it accordingly.
1363 -+m4_copy([_AC_SRCDIRS], [NCBI_ORIG__AC_SRCDIRS])
1364 -+m4_define([_AC_SRCDIRS],
1365 -+[# Base source directories on path to *input* file.
1366 -+if test -n "$ac_f"; then
1367 -+ ac_dir_in=`AS_DIRNAME(["$ac_f"])`
1368 - else
1369 - ac_dir_in=$1
1370 - fi
1371 -
1372 --if test $ac_dir_in != .; then
1373 -- ac_dir_suffix=`echo $ac_dir_in | sed 's,^\.[[\\/]],,'`
1374 -- # A "../" for each directory in $ac_dir_suffix.
1375 -- ac_top_builddir=../`echo "$ac_dir_suffix" | sed 's,/[[^\\/]]*,../,g'`
1376 --else
1377 -- ac_dir_suffix= ac_top_builddir=
1378 --fi
1379 -+NCBI_ORIG__AC_SRCDIRS(["$ac_dir_in"])
1380 -
1381 --case $srcdir in
1382 -- .) # No --srcdir option. We are building in place.
1383 -- ac_srcdir=.
1384 -- if test -z "$ac_top_builddir"; then
1385 -- ac_top_srcdir=.
1386 -- else
1387 -- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1388 -- fi ;;
1389 -- [[\\/]]* | ?:[[\\/]]* ) # Absolute path.
1390 -- ac_srcdir=$srcdir/$ac_dir_suffix;
1391 -- ac_top_srcdir=$srcdir ;;
1392 -- *) # Relative path.
1393 -- ac_srcdir=$ac_top_builddir$srcdir/$ac_dir_suffix
1394 -- ac_top_srcdir=$ac_top_builddir$srcdir ;;
1395 --esac
1396 --# Do not use `cd foo && pwd` to compute absolute paths, because
1397 --# the directories may not exist.
1398 --AS_SET_CATFILE([ac_abs_builddir], [$builddir], [$1])
1399 --AS_SET_CATFILE([ac_abs_top_builddir],
1400 -- [$ac_abs_builddir], [${ac_top_builddir}.])
1401 - AS_SET_CATFILE([ac_abs_top_srcdir], [$ac_dir_in], [$real_srcdir])
1402 --AS_SET_CATFILE([ac_abs_srcdir], [$ac_abs_top_srcdir], [$ac_dir_suffix])
1403 --])# _AC_SRCPATHS
1404 --
1405 -+ac_builddir=$builddir
1406 -+])
1407 -
1408 --# Copied from autoconf 2.59 (m4sh.m4), but rearranged to make bash a
1409 --# last resort due to issues with sourcing .bashrc.
1410 --m4_define([_AS_LINENO_PREPARE],
1411 --[_AS_LINENO_WORKS || {
1412 -- # Find who we are. Look in the path if we contain no path at all
1413 -- # relative or not.
1414 -- case $[0] in
1415 -- *[[\\/]]* ) as_myself=$[0] ;;
1416 -- *) _AS_PATH_WALK([],
1417 -- [test -r "$as_dir/$[0]" && as_myself=$as_dir/$[0] && break])
1418 -- ;;
1419 -- esac
1420 -- # We did not find ourselves, most probably we were run as `sh COMMAND'
1421 -- # in which case we are not to be found in the path.
1422 -- if test "x$as_myself" = x; then
1423 -- as_myself=$[0]
1424 -- fi
1425 -- if test ! -f "$as_myself"; then
1426 -- AS_ERROR([cannot find myself; rerun with an absolute path])
1427 -- fi
1428 -- case $CONFIG_SHELL in
1429 -- '')
1430 -- AS_UNSET(ZSH_VERSION)
1431 -- for as_base in sh ksh sh5 bash; do
1432 -- _AS_PATH_WALK([/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH],
1433 -- [case $as_dir in
1434 -- /*)
1435 -- if ("$as_dir/$as_base" -c \
1436 -- 'test -z "$ZSH_VERSION" && { _AS_LINENO_WORKS; }') 2>/dev/null
1437 -- then
1438 -- AS_UNSET(BASH_ENV)
1439 -- AS_UNSET(ENV)
1440 -- CONFIG_SHELL=$as_dir/$as_base
1441 -- export CONFIG_SHELL
1442 -- exec "$CONFIG_SHELL" "$[0]" ${1+"$[@]"}
1443 -- fi;;
1444 -- esac
1445 -- done]);;
1446 -- esac
1447 -
1448 -- # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
1449 -- # uniformly replaced by the line number. The first 'sed' inserts a
1450 -- # line-number line before each line; the second 'sed' does the real
1451 -- # work. The second script uses 'N' to pair each line-number line
1452 -- # with the numbered line, and appends trailing '-' during
1453 -- # substitution so that $LINENO is not a special case at line end.
1454 -- # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1455 -- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
1456 -- sed '=' <$as_myself |
1457 -- sed '
1458 -- N
1459 -- s,$,-,
1460 -- : loop
1461 -- s,^\([['$as_cr_digits']]*\)\(.*\)[[$]]LINENO\([[^'$as_cr_alnum'_]]\),\1\2\1\3,
1462 -- t loop
1463 -- s,-$,,
1464 -- s,^[['$as_cr_digits']]*\n,,
1465 -- ' >$as_me.lineno &&
1466 -- chmod +x $as_me.lineno ||
1467 -- AS_ERROR([cannot create $as_me.lineno; rerun with a POSIX shell])
1468 --
1469 -- # Don't try to exec as it changes $[0], causing all sort of problems
1470 -- # (the dirname of $[0] is not the place where we might find the
1471 -- # original and so on. Autoconf is especially sensible to this).
1472 -- . ./$as_me.lineno
1473 -- # Exit status is that of the last command.
1474 -- exit
1475 --}
1476 --])# _AS_LINENO_PREPARE
1477 -+# _AS_DETECT_BETTER_SHELL and its helper _AS_RUN (from m4sh.m4; both
1478 -+# historically part of _AS_LINENO_PREPARE) also need tweaking, to make
1479 -+# bash a last resort due to issues with sourcing .bashrc while entirely
1480 -+# avoiding zsh, which passes itself off as ksh on some systems but runs
1481 -+# parent shells' exit handlers from subshells, resulting in premature
1482 -+# cleanup of temporary files (notably confdefs.h).
1483 -+m4_copy([_AS_DETECT_BETTER_SHELL], [NCBI_ORIG__AS_DETECT_BETTER_SHELL])
1484 -+m4_copy([_AS_RUN], [NCBI_ORIG___AS_RUN])
1485 -+
1486 -+m4_define([_AS_DETECT_BETTER_SHELL],
1487 -+ [patsubst(m4_defn([NCBI_ORIG__AS_DETECT_BETTER_SHELL]),
1488 -+ [sh bash ksh sh5], [sh ksh sh5 bash])])
1489 -+m4_define([_AS_RUN],
1490 -+[m4_divert_once([M4SH-SANITIZE], [AS_UNSET(ZSH_VERSION)])dnl
1491 -+NCBI_ORIG___AS_RUN([test -z "${ZSH_VERSION+set}" || exit $?; $1], [$2])])
1492 -
1493 -
1494 - # One more hack: suppress PACKAGE_*, as we don't use them and some
1495 - # third-party libraries expose their corresponding settings, leading
1496 - # to preprocessor warnings.
1497 --m4_define([NCBI_ORIG_ACDU], m4_defn([AC_DEFINE_UNQUOTED]))
1498 -+m4_copy([AC_DEFINE_UNQUOTED], [NCBI_ORIG_AC_DEFINE_UNQUOTED])
1499 - m4_define([AC_DEFINE_UNQUOTED],
1500 - [ifelse(m4_substr([$1], 0, 8), [PACKAGE_], [],
1501 -- [NCBI_ORIG_ACDU($@)])])
1502 -+ [NCBI_ORIG_AC_DEFINE_UNQUOTED($@)])])
1503 -
1504 -
1505 - AC_DEFUN(NCBI_FIX_DIR,
1506 -@@ -158,7 +77,7 @@
1507 - AC_MSG_WARN([Proceeding without questions per --without-caution]) ;;
1508 - * )
1509 - echo "$1 [[y/N]]"
1510 -- read answer
1511 -+ read answer <& AS_ORIGINAL_STDIN_FD
1512 - case "$answer" in
1513 - [[Yy]]* ) AC_MSG_WARN([Proceeding at your own risk...]) ;;
1514 - * ) AC_MSG_ERROR([Configuration has been canceled by user.]) ;;
1515 ---- ncbi_cxx--12_0_0/src/build-system/config.h.in.ori 2014-06-23 17:38:56.000000000 +0200
1516 -+++ ncbi_cxx--12_0_0/src/build-system/config.h.in 2014-06-23 17:39:04.000000000 +0200
1517 -@@ -98,6 +98,9 @@
1518 - /* Define to 1 if you have the `getaddrinfo' function. */
1519 - #undef HAVE_GETADDRINFO
1520 -
1521 -+/* Define to 1 if you have the `getgrouplist' function. */
1522 -+#undef HAVE_GETGROUPLIST
1523 -+
1524 - /* If you have the `gethostbyaddr_r' function, define to the number of
1525 - arguments it takes (normally 7 or 8). */
1526 - #undef HAVE_GETHOSTBYADDR_R
1527 -@@ -176,9 +179,6 @@
1528 - /* Define to 1 if you have `ios(_base)::register_callback'. */
1529 - #undef HAVE_IOS_REGISTER_CALLBACK
1530 -
1531 --/* Define to 1 if <algorithm> supplies `std::is_sorted<>'. */
1532 --#undef HAVE_IS_SORTED
1533 --
1534 - /* Define to 1 if you have the `lchown' function. */
1535 - #undef HAVE_LCHOWN
1536 -
1537 -@@ -234,6 +234,9 @@
1538 - /* Define to 1 if libgnutls is available. */
1539 - #undef HAVE_LIBGNUTLS
1540 -
1541 -+/* Define to 1 if libgsoapssl++ is available. */
1542 -+#undef HAVE_LIBGSOAP
1543 -+
1544 - /* Define to 1 if libhdf5_cpp is available. */
1545 - #undef HAVE_LIBHDF5
1546 -
1547 -@@ -260,6 +263,9 @@
1548 - /* Define to 1 if libmimetic is available. */
1549 - #undef HAVE_LIBMIMETIC
1550 -
1551 -+/* Define to 1 if libmongoclient is available. */
1552 -+#undef HAVE_LIBMONGODB
1553 -+
1554 - /* Define to 1 if libmuparser is available. */
1555 - #undef HAVE_LIBMUPARSER
1556 -
1557 -@@ -382,9 +388,6 @@
1558 - /* Define to 1 if `min'/`max' templates are not implemented. */
1559 - #undef HAVE_NO_MINMAX_TEMPLATE
1560 -
1561 --/* Define to 1 if your C++ compiler supports the C++0x `nullptr' keyword. */
1562 --#undef HAVE_NULLPTR
1563 --
1564 - /* Define to 1 if ODBC libraries are available. */
1565 - #undef HAVE_ODBC
1566 -
1567 -@@ -799,37 +802,37 @@
1568 - by a signal. */
1569 - #undef SELECT_UPDATES_TIMEOUT
1570 -
1571 --/* The size of a `char', as computed by sizeof. */
1572 -+/* The size of `char', as computed by sizeof. */
1573 - #undef SIZEOF_CHAR
1574 -
1575 --/* The size of a `double', as computed by sizeof. */
1576 -+/* The size of `double', as computed by sizeof. */
1577 - #undef SIZEOF_DOUBLE
1578 -
1579 --/* The size of a `float', as computed by sizeof. */
1580 -+/* The size of `float', as computed by sizeof. */
1581 - #undef SIZEOF_FLOAT
1582 -
1583 --/* The size of a `int', as computed by sizeof. */
1584 -+/* The size of `int', as computed by sizeof. */
1585 - #undef SIZEOF_INT
1586 -
1587 --/* The size of a `long', as computed by sizeof. */
1588 -+/* The size of `long', as computed by sizeof. */
1589 - #undef SIZEOF_LONG
1590 -
1591 --/* The size of a `long double', as computed by sizeof. */
1592 -+/* The size of `long double', as computed by sizeof. */
1593 - #undef SIZEOF_LONG_DOUBLE
1594 -
1595 --/* The size of a `long long', as computed by sizeof. */
1596 -+/* The size of `long long', as computed by sizeof. */
1597 - #undef SIZEOF_LONG_LONG
1598 -
1599 --/* The size of a `short', as computed by sizeof. */
1600 -+/* The size of `short', as computed by sizeof. */
1601 - #undef SIZEOF_SHORT
1602 -
1603 --/* The size of a `size_t', as computed by sizeof. */
1604 -+/* The size of `size_t', as computed by sizeof. */
1605 - #undef SIZEOF_SIZE_T
1606 -
1607 --/* The size of a `void*', as computed by sizeof. */
1608 -+/* The size of `void*', as computed by sizeof. */
1609 - #undef SIZEOF_VOIDP
1610 -
1611 --/* The size of a `__int64', as computed by sizeof. */
1612 -+/* The size of `__int64', as computed by sizeof. */
1613 - #undef SIZEOF___INT64
1614 -
1615 - /* Define to 1 if the stack grows down. */
1616 -@@ -870,5 +873,5 @@
1617 - /* Define to empty if `const' does not conform to ANSI C. */
1618 - #undef const
1619 -
1620 --/* Define to `unsigned' if <sys/types.h> does not define. */
1621 -+/* Define to `unsigned int' if <sys/types.h> does not define. */
1622 - #undef size_t
1623 ---- ncbi_cxx--12_0_0/include/common/config/ncbiconf_xcode.h.ori 2014-06-23 17:40:40.000000000 +0200
1624 -+++ ncbi_cxx--12_0_0/include/common/config/ncbiconf_xcode.h 2014-06-23 17:40:57.000000000 +0200
1625 -@@ -1,4 +1,4 @@
1626 --/* $Id: ncbiconf_xcode.h 361821 2012-05-04 14:28:13Z ucko $
1627 -+/* $Id$
1628 - * By Vlad Lebedev, NCBI (lebedev@××××××××××××.gov)
1629 - *
1630 - * Mac OS X - xCode Build
1631 -@@ -258,9 +258,6 @@
1632 - /* Define to 1 if you have `ios(_base)::register_callback'. */
1633 - #define HAVE_IOS_REGISTER_CALLBACK 1
1634 -
1635 --/* Define to 1 if <algorithm> supplies `std::is_sorted<>'. */
1636 --/* #undef HAVE_IS_SORTED */
1637 --
1638 - /* Define to 1 if you have the `lchown' function. */
1639 - /* #undef HAVE_LCHOWN */
1640 -
1641 -@@ -358,6 +355,9 @@
1642 - /* Define to 1 if you have the `lutimes' function. */
1643 - /* #undef HAVE_LUTIMES */
1644 -
1645 -+/* Define to 1 if you have the `madvise' function. */
1646 -+#define HAVE_MADVISE 1
1647 -+
1648 - /* Define to 1 if you have the <malloc.h> header file. */
1649 - /* #undef HAVE_MALLOC_H */
1650 -
1651 -@@ -589,15 +589,15 @@
1652 - /* Define to 1 if you have the <windows.h> header file. */
1653 - /* #undef HAVE_WINDOWS_H */
1654 -
1655 -+/* Define to 1 if you have the `writev' function. */
1656 -+#define HAVE_WRITEV 1
1657 -+
1658 - /* Define to 1 if the system has the type `wstring'. */
1659 - #define HAVE_WSTRING 1
1660 -
1661 - /* Define to 1 if wxWidgets is available. */
1662 - /* #undef HAVE_WXWIDGETS */
1663 -
1664 --/* Define to 1 if nullptr keyword is available. */
1665 --/* #undef HAVE_NULLPTR */
1666 --
1667 - /* Define as const if the declaration of iconv() needs const. */
1668 - #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1050 /* MAC_OS_X_VERSION_10_5 */
1669 - # define ICONV_CONST
1670 -@@ -694,7 +694,7 @@
1671 - /* Define to empty if `const' does not conform to ANSI C. */
1672 - /* #undef const */
1673 -
1674 --/* Define to `unsigned' if <sys/types.h> does not define. */
1675 -+/* Define to `unsigned int' if <sys/types.h> does not define. */
1676 - /* #undef size_t */
1677 -
1678 - /*
1679 --- ncbi_cxx--12_0_0/src/build-system/configure.ori 2013-05-20 23:03:20.000000000 +0200
1680 +++ ncbi_cxx--12_0_0/src/build-system/configure 2014-06-23 22:22:50.000000000 +0200
1681 @@ -1,19 +1,13 @@