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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 711 - (hide annotations)
Tue Jul 22 20:51:08 2008 UTC (12 years, 6 months ago) by norman.x.gray
File size: 4635 byte(s)
Version-numbering tweaks, mandated by Bruno

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

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