changelog
[platform/upstream/cantarell-fonts.git] / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.53)
3
4 AC_INIT([cantarell-fonts], [0.0.12],
5         [http://bugzilla.gnome.org/enter_bug.cgi?product=cantarell-fonts])
6
7 AM_INIT_AUTOMAKE([1.9 tar-ustar foreign dist-bzip2 no-dist-gzip])
8
9 AC_ARG_ENABLE(source-rebuild,
10             AS_HELP_STRING([--enable-source-rebuild], [Rebuild from source using fontforge]),,
11             enable_source_rebuild=no)
12 AM_CONDITIONAL(SOURCE_REBUILD, test x$enable_source_rebuild != xno)
13
14 PKG_PROG_PKG_CONFIG([0.19])
15 AC_PROG_SED
16
17 # Workaround to make aclocal get the right flags
18 AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
19
20 AC_ARG_WITH([configdir],
21             [AC_HELP_STRING([--with-configdir=DIR],
22             [Use DIR to store fontconfig configuration files [default=DATADIR/fontconfig/conf.avail]])],
23             [configdir="$withval"],
24             [configdir=yes])
25
26 case "$configdir" in
27 no|yes)
28     configdir='${datadir}'/fontconfig/conf.avail
29     ;;
30 *)
31     ;;
32 esac
33
34 CONFIGDIR=${configdir}
35 AC_SUBST(CONFIGDIR)
36
37 AC_ARG_WITH([fontdir],
38             [AC_HELP_STRING([--with-fontdir=DIR],
39             [Use DIR to store font files [default=DATADIR/fonts/cantarell]])],
40             [fontdir="$withval"],
41             [fontdir=yes])
42
43 case "$fontdir" in
44 no|yes)
45     fontdir='${datadir}'/fonts/cantarell
46     ;;
47 *)
48     ;;
49 esac
50
51 FONTDIR=${fontdir}
52 AC_SUBST(FONTDIR)
53
54 AC_CONFIG_FILES([
55 Makefile
56 fontconfig/Makefile
57 src/Makefile
58 otf/Makefile
59 scripts/Makefile
60 ])
61
62 AC_OUTPUT
63
64 echo "
65     $PACKAGE $VERSION
66     ===============
67
68     rebuild via fontforge: ${enable_source_rebuild}
69 "