Commit 5e76433e authored by Benoît Minisini's avatar Benoît Minisini

[CONFIGURATION]

* NEW: Do not use deprecated autoconf macros anymore.
* NEW: The version information is now located in the 'version.m4' file in
  the source root directory.


git-svn-id: svn://localhost/gambas/trunk@6230 867c0c6c-44f3-4631-809d-bfa615b0a4ec
parent 17229584
......@@ -6,6 +6,9 @@
/* Name of the component */
#define __COMPONENT gb.test
/* Name of the component with points replaced by dashes */
#define __COMPONENT_DASH gb-test
/* Name of the component with points replaced by underscore */
#define __COMPONENT_UNDERSCORE gb_test
......
dnl ---- configure.ac for __COMPONENT
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-__COMPONENT_DASH, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(__COMPONENT)
AC_PROG_LIBTOOL
......
......@@ -64,23 +64,22 @@ AC_DEFUN([GB_PRINT_MESSAGES],
AC_DEFUN([GB_INIT_AUTOMAKE],
[
AM_INIT_AUTOMAKE($1, 3.5.90)
AM_INIT_AUTOMAKE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
##AM_SILENT_RULES([yes])
AC_CONFIG_HEADER([config.h])
AC_PREFIX_DEFAULT(/usr)
GAMBAS_VERSION=3
GAMBAS_MINOR_VERSION=5
GAMBAS_VERSION=GB_VERSION_MAJOR
GAMBAS_MINOR_VERSION=GB_VERSION_MINOR
AC_SUBST(GAMBAS_VERSION)
AC_SUBST(GAMBAS_MINOR_VERSION)
AC_DEFINE(GAMBAS_VERSION, 3, Gambas version)
AC_DEFINE(GAMBAS_MINOR_VERSION, 5, Gambas minor version)
AC_DEFINE(GAMBAS_VERSION, GB_VERSION_MAJOR, Gambas version)
AC_DEFINE(GAMBAS_MINOR_VERSION, GB_VERSION_MINOR, Gambas minor version)
AC_DEFINE(GAMBAS_VERSION_STRING, "3", Gambas version string)
AC_DEFINE(GAMBAS_FULL_VERSION_STRING, "3.5", Gambas full version string)
AC_DEFINE(GAMBAS_VERSION_STRING, "GB_VERSION_MAJOR", Gambas version string)
AC_DEFINE(GAMBAS_FULL_VERSION_STRING, "GB_VERSION_MAJOR.GB_VERSION_MINOR", Gambas full version string)
AC_DEFINE(GAMBAS_FULL_VERSION, 0x03050090, [Full Gambas version])
AC_DEFINE(GAMBAS_PCODE_VERSION, 0x03050000, [Gambas bytecode version])
......@@ -123,11 +122,12 @@ AC_DEFUN([GB_CONFIG_SUBDIRS],
AC_DEFUN([GB_INIT_SHORT],
[
AC_CONFIG_SRCDIR([configure.ac])
AM_MAINTAINER_MODE
COMPONENT=$1
GB_INIT_AUTOMAKE(gambas3-`echo $COMPONENT | sed s/"\."/"-"/g`)
GB_INIT_AUTOMAKE
AC_CANONICAL_HOST
......
......@@ -2,7 +2,8 @@ dnl ---- configure.ac for Gambas development environment
dnl ---- Initialization
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-ide, GB_VERSION, GB_MAIL, [], GB_URL)
GB_INIT_SHORT(ide)
dnl ---- Check for Portland scripts
......
dnl ---------------------------------------------------
dnl
dnl configure.in for components written in Gambas
dnl (c) Benoît Minisini 2000-2005
dnl
dnl ----------------------------------------------------
dnl ---- configure.ac for Gambas components written in Gambas
dnl ---- Initialization
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-comp, GB_VERSION, GB_MAIL, [], GB_URL)
GB_INIT_SHORT(comp)
dnl ---- Create makefiles
......
......@@ -5,7 +5,9 @@ dnl ****************************************************************************
dnl ---- Initialization
AC_INIT(configure.ac)
m4_include([version.m4])
AC_INIT(gambas3, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SUBDIRS(main)
......
dnl ---- configure.ac for examples
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-examples, GB_VERSION, GB_MAIL, [], GB_URL)
GB_INIT_SHORT(examples)
dnl ---- Create makefiles
......
dnl ---- configure.ac for gb.cairo
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-cairo, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.cairo)
AC_PROG_LIBTOOL
......
dnl ---- Initialization
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-compress-bzlib2, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.compress.bzlib2)
AC_PROG_LIBTOOL
......
dnl ---- Initialization
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-compress-zlib, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.compress.zlib)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.crypt
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-crypt, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.crypt)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.db.mysql driver
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-db-mysql, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.db.mysql)
LT_INIT
AC_PROG_LIBTOOL
dnl LT_INIT
GB_COMPONENT(
mysql, MYSQL, gb.db.mysql, [src],
......
dnl ****************************************************************************
dnl configure.ac for gb.db.odbc driver
dnl (c) Benoît Minisini 2000-2005
dnl ****************************************************************************
dnl ---- configure.ac for gb.db.odbc driver
dnl ---- Initialization
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-db-odbc, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.db.odbc)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.db.postgresql driver
dnl ---- Initialization
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-db-postgresql, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.db.postgresql)
AC_PROG_LIBTOOL
......
dnl ****************************************************************************
dnl configure.ac for gb.db.sqlite driver
dnl (c) Benoît Minisini 2000-2005
dnl ****************************************************************************
dnl ---- configure.ac for gb.db.sqlite2 driver
dnl ---- Initialization
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-db-sqlite2, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.db.sqlite2)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.db.sqlite
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-db-sqlite3, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.db.sqlite3)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.dbus
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-dbus, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.dbus)
AC_PROG_LIBTOOL
GB_COMPONENT_PKG_CONFIG(
dbus, DBUS, gb.dbus, [src],
dbus-1)
......
dnl ---- configure.ac for gb.desktop
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-desktop, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.desktop)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.gmp
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-gmp, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.gmp)
AC_PROG_LIBTOOL
GB_COMPONENT(
gmp,
GMP,
......
dnl ---- configure.ac for gb.gsl
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-gsl, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.gsl)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.gtk component
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-gtk, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.gtk)
AC_PROG_LIBTOOL
......
......@@ -134,6 +134,9 @@ static bool init_painting(GB_PAINT *d, cairo_surface_t *target, double w, double
}
cairo_set_line_width(CONTEXT(d), 1.0);
/*cairo_set_line_join(CONTEXT(d), CAIRO_LINE_JOIN_MITER);
cairo_set_miter_limit(CONTEXT(d), 10.0);
cairo_set_line_cap(CONTEXT(d), CAIRO_LINE_CAP_BUTT);*/
dx->font = NULL;
dx->font_stack = NULL;
......
dnl ---- configure.ac for gb.gtk3 component
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-gtk3, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.gtk3)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.httpd
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-httpd, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
dnl AC_CANONICAL_SYSTEM
dnl AC_PROG_CC
GB_INIT(gb.httpd)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.image.imlib
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-image-imlib, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.image.imlib)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.image.io
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-image-io, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.image.io)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.jit
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-jit, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.jit)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.xml
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-libxml, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.libxml)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.media
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-media, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.media)
AC_PROG_LIBTOOL
GB_COMPONENT_PKG_CONFIG(
media, MEDIA, gb.media, [src],
gstreamer-1.0 gstreamer-video-1.0
......
dnl ---- configure.ac for gb.mime
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-mime, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.mime)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.ncurses
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-ncurses, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.ncurses)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.net.curl
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-net-curl, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.net.curl)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.net.smtp
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-net-smtp, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.net.smtp)
GB_INIT(gb.net.smtp)
AC_PROG_LIBTOOL
GB_COMPONENT_PKG_CONFIG(
......
dnl ---- configure.ac for gb.net
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-net, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.net)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.openal
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-openal, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.openal)
AC_PROG_LIBTOOL
GB_COMPONENT_PKG_CONFIG(
openal,
OPENAL,
......
dnl ---- configure.ac for gb.opengl
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-opengl, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.opengl)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.openssl
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-openssl, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.openssl)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.pcre
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-pcre, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.pcre)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.pdf
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-pdf, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.pdf)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.qt
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-qt4, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.qt4)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.sdl
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-sdl-sound, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.sdl.sound)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.sdl
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-sdl, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.sdl)
GB_INIT(gb.sdl)
AC_PROG_LIBTOOL
GB_CHECK_XWINDOW
dnl TODO: add a version test in GB_COMPONENT!
......
dnl ---- configure.ac for gb.v4l
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-v4l, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.v4l)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for gb.xml
AC_INIT(configure.ac)
m4_include([../version.m4])
AC_INIT(gambas3-gb-xml, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.xml)
AC_PROG_LIBTOOL
......
dnl ---- configure.ac for main programs
AC_INIT
AC_CONFIG_SRCDIR([configure.ac])
m4_include([../version.m4])
AC_INIT(gambas3-main, GB_VERSION, GB_MAIL, [], GB_URL)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(main)
GB_MATH_FUNC
LT_INIT
......
This diff is collapsed.
## Package version and e-mail for bugs are defined here
m4_define([GB_VERSION], [3.5.90])
m4_define([GB_MAIL], [gambas@users.sourceforge.net])
m4_define([GB_URL], [http://gambas.sourceforge.net])
m4_define([GB_VERSION_MAJOR], [3])
m4_define([GB_VERSION_MINOR], [5])
m4_define([GB_VERSION_RELEASE], [90])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment