Changeset 8841 for trunk/psLib/configure.ac
- Timestamp:
- Sep 19, 2006, 2:18:12 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/configure.ac (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r8789 r8841 29 29 30 30 SRCPATH='${top_srcdir}/src' 31 SRCDIRS="sys astro db fft fits imageops jpeg math mathtypes types xml"31 SRCDIRS="sys astro db fft fits imageops jpeg math mathtypes types" dnl xml 32 32 # escape two escapes at this level so \\ gets passed to the shell and \ to perl 33 33 SRCINC=`echo "${SRCDIRS=}" | ${PERL} -pe "s|(\w+)|-I\\\\${SRCPATH=}/\1|g"` … … 39 39 AC_PROG_MAKE_SET 40 40 41 dnl handle debugbuilding41 dnl handle optimized building 42 42 AC_ARG_ENABLE(optimize, 43 43 [AS_HELP_STRING(--enable-optimize,enable compiler optimization)], 44 44 [AC_MSG_RESULT(compile optimization enabled) 45 CFLAGS="${CFLAGS=} -O2"], 45 CFLAGS="${CFLAGS=} -O2" 46 PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DPS_NO_TRACE"], 46 47 [AC_MSG_RESULT([compile optimization disabled]) 47 48 CFLAGS="${CFLAGS=} -O0 -g"] … … 69 70 PSLIB_CFLAGS="${PSLIB_CFLAGS=} -DPS_NO_TRACE"] 70 71 ) 72 73 dnl build tests at the same time as the source code 74 AC_ARG_ENABLE(tests, 75 [AS_HELP_STRING(--enable-tests,build tests at same time as source)], 76 [AC_MSG_RESULT(test building enabled) 77 tests=true], 78 [tests=false]) 79 AM_CONDITIONAL(BUILD_TESTS, test x$tests = xtrue) 71 80 72 81 AC_LANG(C) … … 303 312 304 313 dnl ------------------- XML2 options --------------------- 305 AC_ARG_WITH(xml2-config,306 [AS_HELP_STRING(--with-xml2-config=FILE,Specify location of xml2-config.)],307 [XML_CONFIG=$withval],308 [XML_CONFIG=`which xml2-config`])309 AC_CHECK_FILE($XML_CONFIG,[],310 [AC_MSG_ERROR([GNOME XML C parser is required. Obtain it at http://www.xmlsoft.org or use --with-xml2-config to specify location.])])311 312 AC_MSG_CHECKING([xml2 version])313 XML_VERSION=`xml2-config --version`314 XML_VERSION_major=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+).*|\1|'`315 XML_VERSION_minor=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+)\.(\d+).*|\2|'`316 dnl First test the minimum version of 2.6317 if test $XML_VERSION_major -lt 2 || ( test $XML_VERSION_major -eq 2 && test $XML_VERSION_minor -lt 6 )318 then319 AC_MSG_ERROR([requires libxml2 2.6.0 or greater, found $XML_VERSION. Install newer version or use --with-xml2-config to specify another location.])320 else321 AC_MSG_RESULT([$XML_VERSION... yes])322 fi323 324 AC_MSG_CHECKING([xml2 cflags])325 XML_CFLAGS="`${XML_CONFIG} --cflags`"326 AC_MSG_RESULT([${XML_CFLAGS}])327 328 AC_MSG_CHECKING([xml2 ldflags])329 XML_LDFLAGS="`${XML_CONFIG} --libs`"330 AC_MSG_RESULT([${XML_LDFLAGS}])331 332 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${XML_CFLAGS}"333 PSLIB_LIBS="${PSLIB_LIBS=} ${XML_LDFLAGS}"334 335 AC_SUBST([XML_CFLAGS])314 dnl AC_ARG_WITH(xml2-config, 315 dnl [AS_HELP_STRING(--with-xml2-config=FILE,Specify location of xml2-config.)], 316 dnl [XML_CONFIG=$withval], 317 dnl [XML_CONFIG=`which xml2-config`]) 318 dnl AC_CHECK_FILE($XML_CONFIG,[], 319 dnl [AC_MSG_ERROR([GNOME XML C parser is required. Obtain it at http://www.xmlsoft.org or use --with-xml2-config to specify location.])]) 320 dnl 321 dnl AC_MSG_CHECKING([xml2 version]) 322 dnl XML_VERSION=`xml2-config --version` 323 dnl XML_VERSION_major=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+).*|\1|'` 324 dnl XML_VERSION_minor=`echo $XML_VERSION | ${PERL} -pe 's|^(\d+)\.(\d+).*|\2|'` 325 dnl dnl First test the minimum version of 2.6 326 dnl if test $XML_VERSION_major -lt 2 || ( test $XML_VERSION_major -eq 2 && test $XML_VERSION_minor -lt 6 ) 327 dnl then 328 dnl AC_MSG_ERROR([requires libxml2 2.6.0 or greater, found $XML_VERSION. Install newer version or use --with-xml2-config to specify another location.]) 329 dnl else 330 dnl AC_MSG_RESULT([$XML_VERSION... yes]) 331 dnl fi 332 dnl 333 dnl AC_MSG_CHECKING([xml2 cflags]) 334 dnl XML_CFLAGS="`${XML_CONFIG} --cflags`" 335 dnl AC_MSG_RESULT([${XML_CFLAGS}]) 336 dnl 337 dnl AC_MSG_CHECKING([xml2 ldflags]) 338 dnl XML_LDFLAGS="`${XML_CONFIG} --libs`" 339 dnl AC_MSG_RESULT([${XML_LDFLAGS}]) 340 dnl 341 dnl PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${XML_CFLAGS}" 342 dnl PSLIB_LIBS="${PSLIB_LIBS=} ${XML_LDFLAGS}" 343 dnl 344 dnl AC_SUBST([XML_CFLAGS]) 336 345 337 346 dnl ------------------- SWIG options --------------------- … … 376 385 AC_CHECK_PROG(doxygen,[doxygen],[true],[false]) 377 386 AM_CONDITIONAL(DOXYGEN, test x$doxygen = xtrue) 387 378 388 379 389 dnl ------- restore CFLAGS / LDFLAGS (tests done) -------- … … 402 412 src/mathtypes/Makefile 403 413 src/types/Makefile 404 src/xml/Makefile405 414 test/Makefile 406 415 test/sys/Makefile … … 414 423 test/mathtypes/Makefile 415 424 test/types/Makefile 416 test/xml/Makefile417 425 test/FullUnitTest 418 426 test/pstap/Makefile … … 424 432 Doxyfile 425 433 ]) 434 dnl src/xml/Makefile 435 dnl test/xml/Makefile 436 426 437 427 438 #if test "$SWIG_REQ" == "yes"
Note:
See TracChangeset
for help on using the changeset viewer.
