summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/bibtex/urlbst/configure.ac
blob: 8981ad569cc224bff72585b758223ea64c28aa5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
dnl  Process this file with autoconf to produce a configure script
AC_REVISION($Revision$)

AC_INIT(urlbst, 0.6-5, norman@astro.gla.ac.uk)
RELEASEDATE="2011 March 8"
AC_SUBST(RELEASEDATE)

AC_PREREQ(2.50)

AC_CONFIG_SRCDIR([urlbst.in])

AC_PATH_PROG(PERL, perl)


dnl  Add --with-eprints: tune default support for eprints
WITHEPRINTS=1
AC_SUBST(WITHEPRINTS)
EPRINTURL=http://arxiv.org/abs/
AC_SUBST(EPRINTURL)

dnl  Add --with-doi: tune default support for DOI fields
WITHDOIRESOLVER=1
AC_SUBST(WITHDOIRESOLVER)
DOIURL=http://dx.doi.org/
AC_SUBST(DOIURL)

dnl  Add --with-pubmed
WITHPUBMEDRESOLVER=1
AC_SUBST(WITHPUBMEDRESOLVER)
PUBMEDURL=http://www.ncbi.nlm.nih.gov/pubmed/
AC_SUBST(PUBMEDURL)

AC_ARG_WITH(eprints,
[  --with-eprints[[=url]]  Include eprint support by default, giving optional URL],
  if test "$withval" = "yes"; then
    WITHEPRINTS=1
  elif test "$withval" = "no"; then
    WITHEPRINTS=0
  else
    WITHEPRINTS=1
    EPRINTURL=$withval
  fi)

AC_ARG_WITH(doi,
[  --with-doi=[[=url]]     Include support for a DOI resolver by default, giving optional URL],
  if test "$withval" = yes; then
    WITHDOIRESOLVER=1
  elif test "$withval" = no; then
    WITHDOIRESOLVER=0
  else
    WITHDOIRESOLVER=1
    DOIURL=$withval
  fi)

AC_ARG_WITH(pubmed,
[  --with-pubmed=[[=url]]     Include support for a PUBMED resolver by default, giving optional URL],
  if test "$withval" = yes; then
    WITHPUBMEDRESOLVER=1
  elif test "$withval" = no; then
    WITHPUBMEDRESOLVER=0
  else
    WITHPUBMEDRESOLVER=1
    PUBMEDURL=$withval
  fi)


dnl  Add --with-href: set default support for hyperlinks
dnl  Default is to have no hyperlinks
WITHHREF=0
AC_SUBST(WITHHREF)

AC_ARG_WITH(href,
[  --with-href[[=int]]  Include eprint hyperlinks (0/1/2=none/hypertex/hyperref)],
  if test "$withval" = yes; then
    WITHHREF=2
  elif test "$withval" = no; then
    WITHHREF=0
  else
    WITHHREF=$withval
  fi)


AC_CONFIG_FILES(Makefile urlbst.tex urlbst.html)
AC_CONFIG_FILES(urlbst, [chmod +x urlbst])

AC_OUTPUT