]> git.jsancho.org Git - guile-irrlicht.git/blobdiff - configure.ac
A lot of things
[guile-irrlicht.git] / configure.ac
index 9b85b9a50aad2dea3ea65f5a3ad06af237ff27a2..afdd3c34e92eb03ef0a3f613e9db18ff5df7afdf 100644 (file)
@@ -1,34 +1,45 @@
-# guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
-#
-# Copyright (C) 2020 Javier Sancho <jsf@jsancho.org>
-#
-# This file is part of guile-irrlicht.
-#
-# guile-irrlicht is free software; you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License as
-# published by the Free Software Foundation; either version 3 of the
-# License, or (at your option) any later version.
-#
-# guile-irrlicht is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with guile-irrlicht. If not, see
-# <http://www.gnu.org/licenses/>.
+define(GUILE_IRRLICHT_CONFIGURE_COPYRIGHT, [[
 
+guile-irrlicht --- GNU Guile bindings for Irrlicht Engine
+
+Copyright (C) 2020-2021 Javier Sancho <jsf@jsancho.org>
+
+This file is part of guile-irrlicht.
+
+guile-irrlicht is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 3 of the
+License, or (at your option) any later version.
+
+guile-irrlicht is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with guile-irrlicht. If not, see
+<http://www.gnu.org/licenses/>.
+
+]])
 
 AC_INIT([guile-irrlicht], [0.1], [jsf@jsancho.org])
-AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects])
-AC_CONFIG_MACRO_DIRS([m4])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])
+AC_COPYRIGHT(GUILE_IRRLICHT_CONFIGURE_COPYRIGHT)
+
+AM_INIT_AUTOMAKE([color-tests subdir-objects -Wall -Wno-portability foreign])
+AM_SILENT_RULES([yes])
 AM_PROG_AR
 AC_PROG_CXX
 LT_INIT
 
-PKG_CHECK_MODULES([GUILE], [guile-2.2])
+# Check for 'guile'
+PKG_CHECK_MODULES([GUILE], [guile-3.0],, [
+        PKG_CHECK_MODULES([GUILE], [guile-2.2])
+])
 GUILE_SITE_DIR
 
+# Check for 'irrlicht'
 AC_CHECK_LIB(
         [Irrlicht],
         [createDevice],
@@ -36,8 +47,7 @@ AC_CHECK_LIB(
         AC_MSG_ERROR([Missing Irrlicht lib. Try option --with-irrlicht-lib])
 )
 
-AC_CONFIG_FILES([
-        Makefile
-])
+AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])
 
 AC_OUTPUT