Skip to content
Snippets Groups Projects
configure.ac 3.03 KiB
Newer Older
Benedikt Meurer's avatar
Benedikt Meurer committed
dnl
dnl Copyright (c) 2002-2022
Benedikt Meurer's avatar
Benedikt Meurer committed
dnl         The Xfce development team. All rights reserved.
dnl
dnl Written for Xfce by Benedikt Meurer <benny@xfce.org>.
dnl

dnl ***************************
dnl *** Version information ***
dnl ***************************
Benedikt Meurer's avatar
Benedikt Meurer committed

Gaël Bonithon's avatar
Gaël Bonithon committed
XDT_VERSION_INIT([4.19.1], [git])
Benedikt Meurer's avatar
Benedikt Meurer committed

dnl # DO NOT MODIFY ANYTHING BELOW THIS LINE, UNLESS YOU KNOW WHAT
dnl # YOU ARE DOING.


dnl ***************************
dnl *** Initialize autoconf ***
dnl ***************************
AC_INIT([xfce4-dev-tools], [xdt_version],
        [https://gitlab.xfce.org/xfce/xfce4-dev-tools/])
Gaël Bonithon's avatar
Gaël Bonithon committed
AC_COPYRIGHT([Copyright (c) 2002-2024 The Xfce development team. All rights reserved.])
Harald Judt's avatar
Harald Judt committed
AC_CONFIG_MACRO_DIR([m4])
Harald Judt's avatar
Harald Judt committed
AC_REVISION([xdt_version_build])
Benedikt Meurer's avatar
Benedikt Meurer committed

dnl substitute version info
AC_SUBST([VERSION_MAJOR], [xdt_version_major])
AC_SUBST([VERSION_MINOR], [xdt_version_minor])
AC_SUBST([VERSION_MICRO], [xdt_version_micro])
VERSION_REVISION=ifelse(xdt_version_tag(), [git], [xdt_version_tag()-xdt_version_build()], [])
dnl ***************************
dnl *** Initialize automake ***
dnl ***************************
AM_INIT_AUTOMAKE([1.11 dist-bzip2 tar-ustar no-dist-gzip foreign])
AM_MAINTAINER_MODE()
Nick Schermer's avatar
Nick Schermer committed
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
Benedikt Meurer's avatar
Benedikt Meurer committed

dnl ********************************
dnl *** Check for basic programs ***
dnl ********************************
AC_PROG_CC()
AM_PROG_CC_C_O()
AC_PROG_INSTALL()
dnl **********************
dnl *** Check xsltproc ***
dnl **********************
AC_CHECK_PROG([XSLTPROC], [xsltproc],yes)
AS_IF([test x"$XSLTPROC" != x"yes"], [AC_MSG_ERROR([package 'xsltproc' missing])])

dnl **************************
dnl *** Initialize libtool ***
dnl **************************
LT_PREREQ([2.4])
Nick Schermer's avatar
Nick Schermer committed
LT_INIT([disable-static])
dnl ****************************************
dnl *** Check for host specific programs ***
dnl ****************************************
case "${host_os}" in
    freebsd*)
      AC_CHECK_PROGS(GSED, [gsed], no)
      AS_IF([test x"$GSED" = x"no"], [AC_MSG_ERROR([GNU sed (gsed) missing])])

      AC_CHECK_PROGS(GMAKE, [gmake], no)
      AS_IF([test x"$GMAKE" = x"no"], [AC_MSG_ERROR([GNU make (gmake) missing])])
      ;;
    *)
      GSED="sed"
      GMAKE="make"
      ;;
esac

AC_CHECK_PROGS(MESON, [meson], no)
AS_IF([test x"$MESON" = x"no"], [AC_MSG_ERROR([meson missing])])

AC_SUBST(GSED)
AC_SUBST(GMAKE)
AC_SUBST(MESON)
dnl ***************************************
dnl *** Check for standard header files ***
dnl ***************************************
AC_CHECK_HEADERS([libintl.h locale.h memory.h stdio.h stdlib.h string.h])

dnl ***********************************
dnl *** Check for required packages ***
dnl ***********************************
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.66.0])
Benedikt Meurer's avatar
Benedikt Meurer committed

dnl **********************
dnl *** Generate files ***
dnl **********************
AC_CONFIG_FILES([
Benedikt Meurer's avatar
Benedikt Meurer committed
Makefile
helpers/Makefile
Benedikt Meurer's avatar
Benedikt Meurer committed
m4macros/Makefile
scripts/Makefile
scripts/xdt-autogen
xdt-csource/Makefile
docs/Makefile
tests/Makefile
tests/data/Makefile
Benedikt Meurer's avatar
Benedikt Meurer committed
])
Benedikt Meurer's avatar
Benedikt Meurer committed

dnl vi:set ts=2 sw=2 et ai: