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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 578 - (show annotations)
Tue Jun 10 23:27:40 2008 UTC (12 years, 5 months ago) by norman.x.gray
File size: 4010 byte(s)
Adjustments for WD 1.10 tag and release
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, wd-1.10, norman@astro.gla.ac.uk)
7 AC_SUBST(RELEASEDATE, '2008 June 12') dnl ...as words
8 dnl Date is yyyy-mm-dd: ISO-8601/W3CDTF (appears in, eg, dc:created range)
9 AC_SUBST(RELEASEDATEN, 2008-06-12) dnl ...as yyyy-mm-dd
10
11 RELEASEDATENX=`echo $RELEASEDATEN | sed 's/-//g'`
12
13 dnl Distribution URI for document -- no trailing slash
14 dnl The URI is the one agreed with Bruno Rino (ie, it's not arbitrary!)
15 AC_SUBST(DOCURI, [http://www.ivoa.net/Documents/WD/Semantics/Vocabularies-$RELEASEDATENX])
16 dnl Distribution URI for vocabulary files
17 dnl For release versions, uncomment the following line...
18 AC_SUBST(BASEURI, [http://www.ivoa.net/rdf/Vocabularies])
19 dnl ...and for editors' drafts, uncomment the following line...
20 dnl AC_SUBST(BASEURI, [http://www.astro.gla.ac.uk/users/norman/ivoa/vocabularies/rdf])
21
22 dnl Issues list is currently not at the DOCURI
23 AC_SUBST(ISSUESLIST, 'http://www.astro.gla.ac.uk/users/norman/ivoa/vocabularies/issues')
24 dnl AC_SUBST(ISSUESLIST, $DOCURI/issues)
25
26 dnl The root file name of the distribution
27 AC_SUBST(DISTNAME, [vocabularies-$RELEASEDATENX])
28
29 # Standard checks
30 AC_PROG_LN_S
31
32 # rapper can translate between RDF serialisations
33 # (part of Raptor: http://librdf.org/raptor/)
34 AC_PATH_PROGS(RAPPER, rapper)
35 AC_PATH_PROGS(PYTHON, python)
36 AC_PATH_PROGS(TAR, tar)
37 AC_PATH_PROGS(BIBTEX, bibtex)
38
39 AC_ARG_VAR(PYTHONPATH,
40 [path to python libraries (for cwm and redland-bindings)])
41 AC_MSG_CHECKING([for RDF.py (redland-bindings)])
42 if python -c 'import RDF' >/dev/null 2>&1; then
43 AC_MSG_RESULT([OK])
44 else
45 AC_MSG_WARN([Couldn't find RDF.py in PYTHONPATH])
46 fi
47
48 dnl Handle --with-xsltproc[=path] and --with-saxon[=jarfile] options
49 process_xslt_with=xsltproc
50 AC_ARG_WITH([xsltproc],
51 [AS_HELP_STRING([--with-xsltproc],
52 [choose a non-default xsltproc executable])],
53 [dnl --with-xsltproc option given (as 'yes' if no option value)
54 if test "$with_xsltproc" = yes; then
55 AC_PATH_PROG(XSLTPROC, xsltproc)
56 else
57 AC_CHECK_FILE($with_xsltproc,
58 [AC_SUBST(XSLTPROC, $with_xsltproc)],
59 [AC_MSG_ERROR([Can't find file $with_xsltproc])])
60 fi],
61 [dnl no --with-xsltproc option given -- default
62 AC_PATH_PROG(XSLTPROC, xsltproc)])
63 AC_ARG_WITH([saxon],
64 [AS_HELP_STRING([--with-saxon],
65 [process XSLT using the named Saxon8 jar file])],
66 [if test "$with_saxon" = "yes"; then
67 AC_SUBST(SAXONJAR, [saxon8.jar])
68 else
69 AC_CHECK_FILE($with_saxon,
70 [],
71 [AC_MSG_WARN([The jar file $with_saxon does not exist])])
72 AC_SUBST(SAXONJAR, $with_saxon)
73 fi
74 process_xslt_with=saxon])
75
76 dnl Now add the conditionals
77 if test $process_xslt_with = saxon; then
78 AC_MSG_NOTICE([XSL transforms using Saxon])
79 AC_SUBST(USE_SAXON, [])
80 AC_SUBST(USE_XSLTPROC, [#])
81 else
82 AC_MSG_NOTICE([XSL transforms using xsltproc])
83 AC_SUBST(USE_SAXON, [#])
84 AC_SUBST(USE_XSLTPROC, [])
85 fi
86
87
88 # CWM will almost certainly have to be overridden on the command-line
89 # This appears to need the CVS version of cwm, available from
90 # <http://www.w3.org/2000/10/swap/doc/cwm.html> (the 1.0.0 `release'
91 # version seems to barf on @base directives in N3/Turtle files. That
92 # page points to other tools which can do similar work, but it's
93 # possible that the rules in src/code/checkHierarchy.n3 are specific to cwm.
94 #
95 # The default will work only if cwm is installed in a standard Python
96 # way (unknown to Norman), and the 'cwm' command is on the path (more details?).
97 test -n "$CWM" || CWM=cwm
98 AC_ARG_VAR(CWM, [invocation of the cwm script, eg 'python /path/to/cwm.py'])
99
100 AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile src/README
101 src/AAkeys/Makefile
102 src/AVM/Makefile
103 src/UCD/Makefile
104 src/IVOAT/Makefile
105 src/IAUT93/Makefile])
106
107 AC_OUTPUT

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