Commit graph

156 commits

Author SHA1 Message Date
Benoît Minisini
428ac95235 Fix configuration on Alpine.
[CONFIGURATION]
* BUG: Fix configuration on Alpine.
2023-08-04 14:02:17 +02:00
Benoît Minisini
8210240eb9 Support for e2k architecture.
[CONFIGURATION]
* NEW: Support for e2k architecture.

[INTERPRETER]
* NEW: Support for e2k architecture.
2023-08-04 13:39:55 +02:00
Bastian Germann
812ed5ef04 Substitute GB_CXXFLAGS_STD_CPP17
[CONFIGURATION]
* BUG: Substitute GB_CXXFLAGS_STD_CPP17
2023-01-23 15:31:20 +01:00
Benoît Minisini
47fd6ba080 Prevent autotools macro from erasing CFLAGS.
[CONFIGURATION]
* BUG: Prevent autotools macro from erasing CFLAGS.
2023-01-12 00:55:48 +01:00
Florian Weimer
22bf34222e C99 compatibility fixes for configure scripts
Define _GNU_SOURCE in the math tests so that exp10 can be found.
Include <stdio.h> for the puts function in the __progname check.
2023-01-02 08:20:04 +01:00
Benoît Minisini
2fabb443ac Make 'Makefile' more silent.
[CONFIGURATION]
* NEW: Make 'Makefile' more silent.
2022-10-08 10:21:21 +02:00
Benoît Minisini
415de7b257 Update configuration files to autoconf 2.71.
[CONFIGURATION]
* NEW: Update configuration files to autoconf 2.71.
2022-09-03 13:24:51 +02:00
Benoît Minisini
5f38763e86 Fix detection of C++11 and C++17 compilation flags.
[CONFIGURATION]
* BUG: Fix detection of C++11 and C++17 compilation flags.

[GB.FORM.HTMLVIEW]
* BUG: Fix use of C++11 compilation flags.
2022-05-27 16:54:36 +02:00
Helmut Grohne
cc50a31fbd Use the host architecture pkg-config
gambas3 fails to cross build from source, because it hard codes the
build architecture pkg-config in various places and thus fails finding
required components that are only installed for the host architecture.

Employ PKG_PROG_PKG_CONFIG to discover the host architecture pkg-config
and let the build proceed quite a bit further.

[GB.NCURSES]
* Use the host architecture pkg-config

[GB.PDF]
* Use the host architecture pkg-config

[GB.QT4]
* Use the host architecture pkg-config

[GB.QT5]
* Use the host architecture pkg-config
2022-03-31 22:40:31 +02:00
gambas
e54acd8c3b Use C++17 now to compile 'gb.pdf'.
[GB.PDF]
* BUG: Use C++17 now to compile 'gb.pdf'.
2022-02-07 21:50:33 +01:00
gambas
6565b5e131 Try again to support both webkit2gtk 4.0 and 4.1.
[GB.GTK3]
* BUG: Try again to support both webkit2gtk 4.0 and 4.1.
2021-10-08 16:39:20 +02:00
Laurent Carlier
82fbda28e8
Detect git/svn version with a macro instead of creating a header file 2021-03-31 09:26:49 +02:00
gambas
744f215e90 Use gcc option '-O2' instead of '-Os' by default, and add detection of 'aarch64' architecture.
[CONFIGURATION]
* OPT: Use gcc option '-O2' instead of '-Os' by default.
* NEW: Add detection of 'aarch64' architecture.
2020-11-28 20:43:54 +01:00
gambas
f5a806e2c0 Correctly disable 'gb.pdf' component if pkg-config fails.
[GB.PDF]
* BUG: Correctly disable 'gb.pdf' component if pkg-config fails.
2020-06-14 00:49:41 +02:00
Benoît Minisini
b7a9af45c6 Merge branch 'flags' into 'master'
Do not reset CFLAGS or CXXFLAGS

See merge request gambas/gambas!50
2019-02-15 15:07:14 +00:00
gambas
112eb14529 Fix a typo with 'libinotify' in 'acinclude.m4'.
[CONFIGURATION]
* BUG: Fix a typo with 'libinotify' in 'acinclude.m4'.
2018-11-24 19:57:12 +01:00
gambas
a8bd754627 Fix optional inotify library detection.
[CONFIGURATION]
* BUG: Fix optional inotify library detection.
2018-11-21 01:49:12 +01:00
gambas
bd8a5fc56e Optionally link to libnotify on non-Linux systems.
[CONFIGURATION]
* BUG: Optionally link to libnotify on non-Linux systems.
2018-11-21 00:11:42 +01:00
gambas
3e7d502bf0 Correctly detect PowerPC64 systems.
[CONFIGURATION]
* BUG: Correctly detect PowerPC64 systems.
2018-11-20 23:10:45 +01:00
bgermann
ee0b38be06 Do not reset CFLAGS or CXXFLAGS
Do not reset CFLAGS or CXXFLAGS so one can overwrite them.
2018-10-27 14:56:13 +02:00
gambas
efd0a26dea Really take into account configure disable flags!
[CONFIGURATION]
* BUG: Really take into account configure disable flags!
2018-10-01 17:18:53 +02:00
gambas
5c5eede209 Now configure should really fail only if a component is actually disabled.
[CONFIGURATION]
* BUG: Now configure should really fail only if a component is actually disabled.
2018-10-01 14:00:08 +02:00
gambas
f4b2bada0c Now configure should fail only if a component is actually disabled, not just because a library search fails.
[CONFIGURATION]
* BUG: Now configure should fail only if a component is actually disabled, not just because a library search fails.
2018-10-01 11:27:04 +02:00
gambas
5d1d758dd6 Move some macro calls to fix autoconf warnings.
[CONFIGURATION]
* BUG: Move some macro calls to fix autoconf warnings.
2018-10-01 10:55:43 +02:00
Benoît Minisini
e0ae589963 Merge branch 'cpp11test' into 'master'
Fix test of '-std=c++11' compilation flag

See merge request gambas/gambas!41
2018-09-29 09:34:53 +00:00
Benoît Minisini
0c67fc086a Merge branch 'alpine' into 'master'
Add musl-based alpine to CI

See merge request gambas/gambas!40
2018-09-29 09:19:44 +00:00
gambas
aa6b7825d8 Do not disable 'gb.crypt' if libcrypt is not found. Let's suppose it is located in the C system library, as on some systems based on musl and busybox.
[CONFIGURATION]
* NEW: Fix some messages

[GB.CRYPT]
* NEW: Do not disable the component if libcrypt is not found. Let's suppose it is located in the C system library, as on some systems.
2018-09-29 04:40:24 +02:00
gambas
a934f5c8bb If a component source directory includes more than one component, and if one of these components is disabled, the other keep being enabled.
[CONFIGURATION]
* BUG: If a component source directory includes more than one component, and if one of these components is disabled, the other keep being enabled.
2018-09-29 04:12:35 +02:00
bgermann
c809886f7b Fix test of '-std=c++11' compilation flag 2018-09-25 19:20:39 +02:00
bgermann
b417246ae2 Add musl-based alpine to CI 2018-09-15 23:52:45 +02:00
bgermann
828ef7531d Remove unnecessary freebsd case 2018-09-15 21:01:17 +02:00
bgermann
c77865b99c Merge two flag definition cases 2018-09-11 17:45:59 +02:00
gambas
a24dc9807f Fix test of '-std=c++11' compilation flag.
[CONFIGURATION]
* BUG: Fix test of '-std=c++11' compilation flag.
2018-09-01 20:21:27 +02:00
gambas
d3a145655a Fix compilation of gb.pdf on old gcc, by checking if the '-std=c++11' flag is available.
[INTERPRETER]
* NEW: Write the name of optional libraries in the warning message displayed when not found.

[GB.PDF]
* BUG: Fix compilation of gb.pdf on old gcc, by checking if the '-std=c++11' flag is available.
2018-09-01 20:05:44 +02:00
Laurent Carlier
a5a117fd33 Add a way to track configuration failures with CI
Disable it for main as it's expected.

=> GAMBAS_CONFIG_FAILURE=1 ./configure
.....
checking for gb.db.postgresql headers... no
configure: WARNING: Unable to find file: postgres.h
configure: WARNING: Unable to find file: pg_type.h
checking for gb.db.postgresql libraries... /usr/lib64/
configure: error: Failed to configure gb.db.postgresql
configure: error: ./configure failed for gb.db.postgresql
2018-06-12 16:27:31 +02:00
gambas
d552008415 Add a flag for enabling link time optimization, and disable it by default.
[CONFIGURATION]
* NEW: Add a flag for enabling link time optimization, and disable it by default.
2018-05-10 09:13:15 +02:00
gambas
14614f4e67 Check if the "-flto" link time optimzation flag is available.
[CONFIGURATION]
* BUG: Check if the "-flto" link time optimzation flag is available.
2018-05-08 18:44:31 +02:00
gambas
55c02a9642 Put all version compilation constants in 'version.m4'.
[CONFIGURATION]
* NEW: Put all version compilation constants in 'version.m4'.
2018-01-14 23:25:11 +01:00
Benoît Minisini
d42a49b57d [CONFIGURATION]
* NEW: Switch version to 3.10.90.

[GB.DB]
* NEW: Connection.TimeZone is new property that will allow to define the default timezone of dates stored in the database we are connected to. Not implemented yet.


git-svn-id: svn://localhost/gambas/trunk@8168 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-07-24 18:53:33 +00:00
Benoît Minisini
cbfcb9fb00 [INTERPRETER]
* BUG: Check if linking with 'librt' is needed to get monotonic clock.


git-svn-id: svn://localhost/gambas/trunk@8139 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-05-26 12:26:39 +00:00
Benoît Minisini
cfacf387ec [CONFIGURATION]
* NEW: Add a autoconf check for monotonic clock.

[INTERPRETER]
* BUG: Use a monotonic clock (if possible) to implement the WAIT instruction.


git-svn-id: svn://localhost/gambas/trunk@8138 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-05-26 00:20:40 +00:00
Benoît Minisini
45a12f36a8 [CONFIGURATION]
* NEW: Switch version to 3.9.90.


git-svn-id: svn://localhost/gambas/trunk@7859 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-08-20 16:23:39 +00:00
Benoît Minisini
f57d3273fe [CONFIGURATION]
* NEW: Support for Haiku operating system.
* BUG: Add explicit dependencies on 'x11' and 'gl' pkg-config packages.

[GB.FORM]
* NEW: MaskBox: Use unicode large spaces instead of ASCII smal spaces.

[GB.UTIL.WEB]
* BUG: Fix collection generation in JSON.Encode().

[GB.WEB.FORM]
* NEW: WebImage: Add the Border property.
* NEW: WebImage: Image property now can be an absolute path.
* BUG: WebButton: Workaround Firefox not supporting flex on buttons.
* BUG: WebComboBox: Enabled property is now taken into account.
* BUG: WebUploadArea: The file name now keeps the uploaded file extension.


git-svn-id: svn://localhost/gambas/trunk@7786 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-24 16:18:48 +00:00
Benoît Minisini
c1eb854159 [CONFIGURATION]
* NEW: Detect the fstatat() system function.

[INTERPRETER]
* OPT: Dir() and RDir() are now 10-30% faster by using fstatat() and assuming that directories with just two hard links have no child directories (each sub-directory having one hard-link to its parent directory through the ".." entry).


git-svn-id: svn://localhost/gambas/trunk@7610 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-02-21 15:48:40 +00:00
Benoît Minisini
5dbb6e7cc4 [CONFIGURATION]
* NEW: Remove "-march=native" compilation flag to see if it prevent arm gcc from crashing.


git-svn-id: svn://localhost/gambas/trunk@7554 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-01-05 04:03:36 +00:00
Benoît Minisini
b9b46f3873 [CONFIGURATION]
* NEW: Add "-march=native" to the compilation flags. Maybe it could speed up then interpretrer a bit?

[DEVELOPMENT ENVIRONMENT]
* NEW: Connection editor: Update layout.
* NEW: Form editor: Clicking on the master selection selects the parent control.

[WEB SITE MAKER]
* NEW: Update for 3.8.4 version.

[GB.DB]
* BUG: Default values are now correctly taken into account by database templates.

[GB.DB.SQLITE3]
* BUG: Fix a possible uninitialized allocation of columns names.

[GB.UTIL]
* NEW: Class.Stat() class name argument now allows "../" in the name to search for classes in parent components.

[GB.WEB]
* NEW: Request.Language returns the main language requested by the HTTP client. This value can be directly assigned to System.Language.
* NEW: Session.Size returns the size of the session file in bytes.

[GB.WEB.FORM]
* NEW: Automatic management of favicon. The application favicon must be a file named "favicon.png" in the ".public" directory.
* NEW: The Align class for alignment constants.
* NEW: WebControl: Any control can raise a Message event now.
* NEW: The Message boxes now raise the "Message" event of the WebControl that opened the message box. If the event is not handled, then the event is raised by the WebForm of the control.
* NEW: The Select class for selection mode constants.
* BUG: WebComboBox: Define the default event.
* NEW: WebContainer: Indent is a new property that allows to add a left padding to the container.
* NEW: WebContainer: Extra children (those created after initialization) are now recreated with their event observer and event name, provided that the event observer is another WebControl.
* NEW: WebContainer: DeleteChildren() is a new method that deletes all container children.
* NEW: WebExpander: New container that implements an expander.
* NEW: WebForm: Teh application language now automatically switches to the language requested by the HTTP client.
* BUG: WebForm: Show() and ShowModal() method now raise the Open event.
* NEW: WebLabel: Add the Border property to the property list.
* NEW: WebLabel: Newlines in label text are automatically replaced by "<br>".
* NEW: WebTable: New control that implements an HTML table with automatic scrollbars. It gets its data through a Data event, and only displays the first hundred elements by default. A button allows to increase the number of displayed elements.
  The 'Mode' property allows to define the selection mode. When rows are selectable, an extra columns is added, with radion buttons on single selection mode, and checkboxes on multiple selection mode. The indexes of selected rows is returned by
  the 'Selection' property.
* BUG: Many fixes in the default stylesheet.


git-svn-id: svn://localhost/gambas/trunk@7536 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-12-27 18:16:32 +00:00
Benoît Minisini
e37683ccf5 [CONFIGURATION]
* NEW: Switch to 3.8.90 version.


git-svn-id: svn://localhost/gambas/trunk@7238 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-08-25 13:24:08 +00:00
Benoît Minisini
8f0de5ec88 [CONFIGURATION]
* NEW: Switch to 3.8 version.


git-svn-id: svn://localhost/gambas/trunk@7194 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-07-30 16:27:04 +00:00
Benoît Minisini
edd0eb77f1 [CONFIGURATION]
* NEW: Switch to version 3.7.90.


git-svn-id: svn://localhost/gambas/trunk@6988 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-15 04:28:57 +00:00
Benoît Minisini
c81e550df2 [CONFIGURATION]
* BUG: Do not use the AC_LIBLTDL_CONVENIENCE macro. It is deprecated and
  now useless.

[DEVELOPMENT ENVIRONMENT]
* OPT: Farm client: Load the SoftwareBox information only when it is 
  actually displayed.
  
[WEBSITE MAKER]
* NEW: Switch to 3.7.0 version.

[GB.FORM]
* NEW: Completion: The poup list now follows its top-level window when it 
  moves.


git-svn-id: svn://localhost/gambas/trunk@6987 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-03-14 20:10:05 +00:00