2020-05-08 15:45:43 +02:00
|
|
|
dnl tinmop: an humble mastodon client
|
|
|
|
dnl Copyright (C) 2020 cage
|
|
|
|
|
|
|
|
dnl This program is free software: you can redistribute it and/or modify
|
|
|
|
dnl it under the terms of the GNU General Public License as published by
|
|
|
|
dnl the Free Software Foundation, either version 3 of the License, or
|
|
|
|
dnl (at your option) any later version.
|
|
|
|
|
|
|
|
dnl This program is distributed in the hope that it will be useful,
|
|
|
|
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
dnl GNU General Public License for more details.
|
|
|
|
|
|
|
|
dnl You should have received a copy of the GNU General Public License
|
|
|
|
dnl along with this program.
|
|
|
|
dnl If not, see [[http://www.gnu.org/licenses/][http://www.gnu.org/licenses/]].
|
|
|
|
|
2021-03-03 16:36:34 +01:00
|
|
|
AC_INIT([tinmop],[0.5.9],[https://notabug.org/cage/tinmop/],[tinmop])
|
2020-05-08 15:45:43 +02:00
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([-Wall foreign])
|
|
|
|
|
|
|
|
AM_GNU_GETTEXT([external])
|
|
|
|
|
2020-12-13 20:56:27 +01:00
|
|
|
AC_CHECK_LIB([ssl], [SSL_get_version], [], AC_MSG_ERROR([Can not find libssl.]))
|
2020-12-12 14:47:22 +01:00
|
|
|
|
2020-05-08 15:45:43 +02:00
|
|
|
AC_PATH_PROG([LISP_COMPILER],[sbcl],[no])
|
|
|
|
|
|
|
|
if test "$LISP_COMPILER" = "no" ; then
|
|
|
|
AC_MSG_ERROR([Can not find SBCL, Common Lisp compiler.])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_PATH_PROG([CURL],[curl],[no])
|
|
|
|
|
|
|
|
if test "$CURL" = "no" ; then
|
|
|
|
AC_MSG_ERROR([Can not find curl.])
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_PATH_PROG([GPG],[gpg],[no])
|
|
|
|
|
|
|
|
if test "$GPG" = "no" ; then
|
|
|
|
AC_MSG_ERROR([Can not find gpg, crypto software.])
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_PATH_PROG([BASH],[bash],[no])
|
|
|
|
|
|
|
|
if test "$BASH" = "no" ; then
|
|
|
|
AC_MSG_ERROR([Can not find bash shell.])
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
2021-02-26 20:19:44 +01:00
|
|
|
dnl autoconf has an automatic test for AWK
|
|
|
|
if test -z "${AWK}"; then
|
|
|
|
AC_MSG_ERROR([Can not find AWK.])
|
|
|
|
exit 1
|
2020-05-08 15:45:43 +02:00
|
|
|
fi
|
|
|
|
|
2020-05-11 21:01:42 +02:00
|
|
|
AC_PATH_PROGS([XDG_OPEN],[xdg-open open],[no])
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2020-05-11 21:01:42 +02:00
|
|
|
if test "$XDG_OPEN" = "no" ; then
|
2020-05-08 15:45:43 +02:00
|
|
|
AC_MSG_ERROR([Can not find xdg-open.])
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
AC_PATH_PROGS([OPENSSL],[openssl],[no])
|
|
|
|
|
|
|
|
if test "$OPENSSL" = "no" ; then
|
|
|
|
AC_MSG_ERROR([Can not find openssl binary.])
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
2020-05-08 15:45:43 +02:00
|
|
|
AC_PROG_MKDIR_P
|
|
|
|
|
|
|
|
dnl check sbcl version
|
2021-01-13 18:36:42 +01:00
|
|
|
SBCL_MIN_VERSION="1.4.16";
|
2021-02-26 20:19:44 +01:00
|
|
|
SBCL_VERSION=`${LISP_COMPILER} --version | ${AWK} -- '// {print $2}'`
|
2020-05-08 15:45:43 +02:00
|
|
|
|
2021-01-03 17:39:52 +01:00
|
|
|
CHECK_COMPILER_VERSION_P="yes"
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([check-sbcl-version], [AS_HELP_STRING([--disable-check-sbcl-version], [Disable checks for minimum supported SBCL version])], [], [])
|
|
|
|
|
|
|
|
if test "$enable_check_sbcl_version" = "yes" || test "$enable_check_sbcl_version" = "" ; then
|
2021-02-26 20:19:44 +01:00
|
|
|
SBCL_VERSION_OK=`echo "$SBCL_VERSION $SBCL_MIN_VERSION" | ${AWK} -f compare_version.awk`
|
2021-01-03 17:39:52 +01:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([if the compiler is too old])
|
2021-01-13 18:36:42 +01:00
|
|
|
AC_MSG_NOTICE([To Disable this tests use type './configure --disable-check-sbcl-version.])
|
2021-01-03 17:39:52 +01:00
|
|
|
|
|
|
|
if test "$SBCL_VERSION_OK" = "1" ; then
|
|
|
|
AC_MSG_ERROR([Lisp compiler too old, $SBCL_MIN_VERSION is the oldest supported.])
|
|
|
|
exit 1;
|
|
|
|
else
|
|
|
|
AC_MSG_RESULT([version is not too old])
|
|
|
|
fi
|
2020-05-08 15:45:43 +02:00
|
|
|
fi
|
|
|
|
|
2020-10-11 18:22:07 +02:00
|
|
|
AC_CONFIG_FILES([Makefile quick_quicklisp.sh po/Makefile.in src/config.lisp.in])
|
2020-05-08 15:45:43 +02:00
|
|
|
|
|
|
|
AC_OUTPUT
|