/[volute]/trunk/projects/vocabularies/configure.ac
ViewVC logotype

Contents of /trunk/projects/vocabularies/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16 - (show annotations)
Fri Dec 7 13:45:23 2007 UTC (12 years, 11 months ago) by norman.x.gray
File size: 2662 byte(s)
Added --with-xsltproc and --with-saxon switches to the configure.ac
  script, to make it possible to swap between the two (there appear to
  be some currently unresolved problems with doc/structure.xslt and xsltproc)

1 dnl
2 dnl Configure script for IVOA SKOS vocabularies
3 dnl
4 dnl Process this file with autoconf to generate the configure script
5
6 AC_INIT(ivoa-vocabularies, 0.01, norman@astro.gla.ac.uk)
7 AC_SUBST(RELEASEDATE, '2007 December 6') dnl ...as words
8 AC_SUBST(RELEASEDATEN, 2007-12-06) dnl ...as yyyy-mm-dd
9 dnl Base URI for distribution -- no trailing slash
10 AC_SUBST(BASEURI, 'http://www.ivoa.net/Documents/ivoa-thesaurus-@PACKAGE_VERSION@')
11
12 # rapper can translate between RDF serialisations
13 # (part of Raptor: http://librdf.org/raptor/)
14 AC_PATH_PROGS(RAPPER, rapper)
15 AC_PATH_PROGS(PYTHON, python)
16 AC_PATH_PROGS(TAR, tar)
17
18 dnl Handle --with-xsltproc[=path] and --with-saxon[=jarfile] options
19 process_xslt_with=xsltproc
20 AC_ARG_WITH([xsltproc],
21 [AS_HELP_STRING([--with-xsltproc],
22 [choose a non-default xsltproc executable])],
23 [if test "$with_xsltproc" = yes; then with_xsltproc=xsltproc; fi
24 AC_PATH_PROG(XSLTPROC, $with_xsltproc)
25 process_xslt_with=xsltproc],
26 [AC_PATH_PROG(XSLTPROC, xsltproc)
27 process_xslt_with=xsltproc])
28 AC_ARG_WITH([saxon],
29 [AS_HELP_STRING([--with-saxon],
30 [process XSLT using the named Saxon8 jar file])],
31 [if test "$with_saxon" = "yes"; then
32 AC_SUBST(SAXONJAR, [saxon8.jar])
33 process_xslt_with=saxon
34 else
35 AC_CHECK_FILE($with_saxon,
36 [],
37 [AC_MSG_WARN([The jar file $with_saxon does not exist])])
38 AC_SUBST(SAXONJAR, $with_saxon)
39 process_xslt_with=saxon
40 fi])
41
42 dnl Now add the conditionals
43 if test $process_xslt_with = saxon; then
44 AC_MSG_NOTICE([XSL transforms using Saxon])
45 AC_SUBST(USE_SAXON, [])
46 AC_SUBST(USE_XSLTPROC, [#])
47 else
48 AC_MSG_NOTICE([XSL transforms using xsltproc])
49 AC_SUBST(USE_SAXON, [#])
50 AC_SUBST(USE_XSLTPROC, [])
51 fi
52
53
54 # CWM will almost certainly have to be overridden on the command-line
55 # This appears to need the CVS version of cwm, available from
56 # <http://www.w3.org/2000/10/swap/doc/cwm.html> (the 1.0.0 `release'
57 # version seems to barf on @base directives in N3/Turtle files. That
58 # page points to other tools which can do similar work, but it's
59 # possible that the rules in src/code/checkHierarchy.n3 are specific to cwm.
60 #
61 # The default will work only if cwm is installed in a standard Python
62 # way (unknown to Norman), and the 'cwm' command is on the path (more details?).
63 test -n "$CWM" || CWM=cwm
64 AC_ARG_VAR(CWM, [invocation of the cwm script, eg 'python /path/to/cwm.py'])
65
66 AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile src/README
67 src/AAkeys/Makefile
68 src/AOIM/Makefile
69 src/UCD/Makefile
70 src/IVOAT/Makefile])
71
72 AC_OUTPUT

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26