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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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