summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-12-09 01:19:51 (GMT)
committerAnas Nashif <anas.nashif@intel.com>2012-12-09 01:19:51 (GMT)
commitb96cfb396f21b82a5c1be53d093198b5b028c08b (patch)
tree03735dff1b6bfd8f1ba6f7a9b812231c6af2fc9f /configure.ac
downloadcantarell-fonts-b96cfb396f21b82a5c1be53d093198b5b028c08b.zip
cantarell-fonts-b96cfb396f21b82a5c1be53d093198b5b028c08b.tar.gz
cantarell-fonts-b96cfb396f21b82a5c1be53d093198b5b028c08b.tar.bz2
Imported Upstream version 0.0.11upstream/0.0.11
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac69
1 files changed, 69 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..7957346
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,69 @@
+dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.53)
+
+AC_INIT([cantarell-fonts], [0.0.11],
+ [http://bugzilla.gnome.org/enter_bug.cgi?product=cantarell-fonts])
+
+AM_INIT_AUTOMAKE([1.9 tar-ustar foreign dist-bzip2 no-dist-gzip])
+
+AC_ARG_ENABLE(source-rebuild,
+ AS_HELP_STRING([--enable-source-rebuild], [Rebuild from source using fontforge]),,
+ enable_source_rebuild=no)
+AM_CONDITIONAL(SOURCE_REBUILD, test x$enable_source_rebuild != xno)
+
+PKG_PROG_PKG_CONFIG([0.19])
+AC_PROG_SED
+
+# Workaround to make aclocal get the right flags
+AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
+
+AC_ARG_WITH([configdir],
+ [AC_HELP_STRING([--with-configdir=DIR],
+ [Use DIR to store fontconfig configuration files [default=DATADIR/fontconfig/conf.avail]])],
+ [configdir="$withval"],
+ [configdir=yes])
+
+case "$configdir" in
+no|yes)
+ configdir='${datadir}'/fontconfig/conf.avail
+ ;;
+*)
+ ;;
+esac
+
+CONFIGDIR=${configdir}
+AC_SUBST(CONFIGDIR)
+
+AC_ARG_WITH([fontdir],
+ [AC_HELP_STRING([--with-fontdir=DIR],
+ [Use DIR to store font files [default=DATADIR/fonts/cantarell]])],
+ [fontdir="$withval"],
+ [fontdir=yes])
+
+case "$fontdir" in
+no|yes)
+ fontdir='${datadir}'/fonts/cantarell
+ ;;
+*)
+ ;;
+esac
+
+FONTDIR=${fontdir}
+AC_SUBST(FONTDIR)
+
+AC_CONFIG_FILES([
+Makefile
+fontconfig/Makefile
+src/Makefile
+otf/Makefile
+scripts/Makefile
+])
+
+AC_OUTPUT
+
+echo "
+ $PACKAGE $VERSION
+ ===============
+
+ rebuild via fontforge: ${enable_source_rebuild}
+"