2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- configure.ac for main programs
|
|
|
|
|
2014-04-05 23:22:43 +02:00
|
|
|
m4_include([../version.m4])
|
2022-09-03 13:24:51 +02:00
|
|
|
AC_INIT([gambas3-main],[GB_VERSION],[GB_MAIL],[],[GB_URL])
|
2009-08-17 00:07:48 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2014-04-05 23:22:43 +02:00
|
|
|
|
2022-09-03 13:24:51 +02:00
|
|
|
GB_INIT([main])
|
2021-03-31 09:26:49 +02:00
|
|
|
GB_TRUNK_VERSION
|
2010-08-31 10:54:51 +02:00
|
|
|
GB_MATH_FUNC
|
2022-09-03 13:24:51 +02:00
|
|
|
LT_INIT([dlopen win32-dll])
|
2023-01-10 21:55:25 +01:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
AM_PROG_CC_C_O
|
|
|
|
|
2023-01-10 21:55:25 +01:00
|
|
|
CFLAGS=$gb_save_cflags
|
|
|
|
CXXFLAGS=$gb_save_cxxflags
|
|
|
|
|
2018-06-12 16:27:31 +02:00
|
|
|
if test "x${GAMBAS_CONFIG_FAILURE}" != "x"; then
|
|
|
|
SAVE_GAMBAS_CONFIG_FAILURE=${GAMBAS_CONFIG_FAILURE}
|
|
|
|
GAMBAS_CONFIG_FAILURE=''
|
|
|
|
fi
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- Check for internationalization library
|
|
|
|
|
2023-08-04 14:43:22 +02:00
|
|
|
if test "x$GB_INTL_LIB" != x; then
|
2023-08-04 13:39:55 +02:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_COMPONENT(
|
2012-05-18 03:19:15 +02:00
|
|
|
intl, INTL, libintl, [],
|
2009-07-07 13:53:20 +02:00
|
|
|
[GB_FIND(libintl.h, /opt/local /usr/local /usr, include)],
|
|
|
|
[GB_FIND(libintl.$SHLIBEXT, /opt/local /usr/local /usr /, lib)],
|
2007-12-30 17:41:49 +01:00
|
|
|
[-lintl],
|
|
|
|
[],
|
2018-09-01 20:05:44 +02:00
|
|
|
[Cannot find 'libintl' library. It may be located inside the system C library, so you can ignore that warning...])
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2023-08-04 13:39:55 +02:00
|
|
|
fi
|
|
|
|
|
2012-06-09 16:03:58 +02:00
|
|
|
dnl ---- Remove DISABLED file that could have been generated before
|
|
|
|
|
2018-10-01 14:00:08 +02:00
|
|
|
rm -f FAILED DISABLED DISABLED.*
|
2012-06-09 16:03:58 +02:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- Check for charset conversion library
|
|
|
|
|
2023-08-04 14:43:22 +02:00
|
|
|
if test "x$GB_ICONV_LIB" != x; then
|
2023-08-04 13:39:55 +02:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_COMPONENT(
|
2012-05-18 03:19:15 +02:00
|
|
|
conv, CONV, libiconv, [],
|
2009-07-07 13:53:20 +02:00
|
|
|
[GB_FIND(iconv.h, /opt/local /usr/local /usr, include)],
|
|
|
|
[GB_FIND(libiconv.$SHLIBEXT, /opt/local /usr/local /usr, lib)],
|
2007-12-30 17:41:49 +01:00
|
|
|
[-liconv],
|
|
|
|
[],
|
2018-09-29 04:40:24 +02:00
|
|
|
[Cannot find 'libiconv' library. It may be merged inside the system C library, so you can ignore that warning...])
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2023-08-04 13:39:55 +02:00
|
|
|
fi
|
|
|
|
|
2012-06-09 16:03:58 +02:00
|
|
|
dnl ---- Remove DISABLED file that could have been generated before
|
|
|
|
|
2018-10-01 14:00:08 +02:00
|
|
|
rm -f FAILED DISABLED DISABLED.*
|
2012-06-09 16:03:58 +02:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- Check for gettext library
|
|
|
|
|
2008-04-12 00:36:53 +02:00
|
|
|
if test "x$GETTEXT_LIB" != x; then
|
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_COMPONENT(
|
2012-05-18 03:19:15 +02:00
|
|
|
gettext, GETTEXT, libgettextlib, [],
|
2007-12-30 17:41:49 +01:00
|
|
|
[],
|
2009-07-07 13:53:20 +02:00
|
|
|
[GB_FIND(libgettextlib.$SHLIBEXT, /opt/local /usr/local /usr, lib)],
|
2018-11-21 00:11:42 +01:00
|
|
|
[$GETTEXT_LIB],
|
2007-12-30 17:41:49 +01:00
|
|
|
[],
|
2018-09-29 04:40:24 +02:00
|
|
|
[Cannot find 'libgettextlib' library. It may be merged inside the system C library, so you can ignore that warning...])
|
2008-04-12 00:36:53 +02:00
|
|
|
|
|
|
|
fi
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2012-06-09 16:03:58 +02:00
|
|
|
dnl ---- Remove DISABLED file that could have been generated before
|
|
|
|
|
2018-10-01 14:00:08 +02:00
|
|
|
rm -f FAILED DISABLED DISABLED.*
|
2012-06-09 16:03:58 +02:00
|
|
|
|
2008-01-17 22:39:26 +01:00
|
|
|
dnl ---- Check for ffi library
|
|
|
|
|
2009-06-29 00:19:42 +02:00
|
|
|
GB_COMPONENT_SEARCH(
|
2012-05-18 03:19:15 +02:00
|
|
|
ffi, FFI, libffi, [],
|
2008-02-26 09:23:51 +01:00
|
|
|
libffi,
|
2016-07-15 17:13:10 +02:00
|
|
|
[GB_FIND(ffi.h, /usr/local /usr/local/lib/64 /usr/local/lib /usr /usr/lib64 /usr/lib /usr/lib/gcc/*/*, include ffi/include)],
|
2010-03-05 01:54:14 +01:00
|
|
|
[GB_FIND(libffi.$SHLIBEXT, /usr/local /usr /usr/lib/gcc/*/*, lib .)],
|
2009-06-29 00:19:42 +02:00
|
|
|
[-lffi])
|
2008-01-17 22:39:26 +01:00
|
|
|
|
2009-07-07 13:53:20 +02:00
|
|
|
if test -z "$FFI_LIB"; then
|
|
|
|
GB_COMPONENT(
|
2012-05-18 03:19:15 +02:00
|
|
|
ffi, FFI, libffi, [],
|
2009-07-07 13:53:20 +02:00
|
|
|
[GB_FIND(ffi.h, /opt/local /usr/local /usr/local/lib /usr /usr/lib /usr/lib/gcc/*/*, include ffi/include)],
|
|
|
|
[GB_FIND(libffi.$SHLIBEXT, /usr/local /usr, lib)],
|
|
|
|
[-lffi])
|
|
|
|
fi
|
|
|
|
|
2008-02-26 09:23:51 +01:00
|
|
|
dnl ---- Remove DISABLED file that could have been generated before
|
|
|
|
|
2018-10-01 14:00:08 +02:00
|
|
|
rm -f FAILED DISABLED DISABLED.*
|
2008-02-26 09:23:51 +01:00
|
|
|
|
2018-06-12 16:27:31 +02:00
|
|
|
if test "x${SAVE_GAMBAS_CONFIG_FAILURE}" != "x"; then
|
|
|
|
GAMBAS_CONFIG_FAILURE=${SAVE_GAMBAS_CONFIG_FAILURE}
|
|
|
|
SAVE_GAMBAS_CONFIG_FAILURE=''
|
|
|
|
fi
|
|
|
|
|
2013-12-30 12:29:15 +01:00
|
|
|
dnl ---- Check for the Linux inotify headers
|
|
|
|
|
|
|
|
GB_COMPONENT(
|
|
|
|
inotify, INOTIFY, gb.inotify, [inotify],
|
|
|
|
[GB_FIND(sys/inotify.h, /usr/local/lib /usr/local /usr/lib /usr, include)],
|
|
|
|
[GB_FIND(, /usr/local /usr, lib)],
|
2018-11-21 01:49:12 +01:00
|
|
|
[$GB_INOTIFY_LIB])
|
2013-12-30 12:29:15 +01:00
|
|
|
|
2009-08-17 00:07:48 +02:00
|
|
|
dnl ---- We do not use libtool to load shared libraries anymore!
|
2007-12-30 17:41:49 +01:00
|
|
|
|
2009-08-17 00:07:48 +02:00
|
|
|
AC_DEFINE(DONT_USE_LTDL, 1, [Do not use libtool to load shared libraries])
|
2018-08-29 14:18:33 +02:00
|
|
|
if test "$SYSTEM" != "OPENBSD" && test "$SYSTEM" != "FREEBSD" && test "$SYSTEM" != "NETBSD"; then
|
2009-08-17 00:07:48 +02:00
|
|
|
DL_LIB="-ldl"
|
2007-12-30 17:41:49 +01:00
|
|
|
else
|
2009-08-17 00:07:48 +02:00
|
|
|
DL_LIB=""
|
2007-12-30 17:41:49 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(DL_LIB)
|
|
|
|
|
|
|
|
dnl ---- Check for Portland scripts
|
|
|
|
|
|
|
|
AC_CHECK_PROGS(XDG_UTILS, [xdg-mime xdg-icon-resource], [])
|
|
|
|
|
|
|
|
dnl ---- Create makefiles
|
|
|
|
|
2009-08-04 21:14:17 +02:00
|
|
|
AC_CONFIG_FILES([\
|
2007-12-30 17:41:49 +01:00
|
|
|
Makefile \
|
|
|
|
share/Makefile \
|
2020-06-20 04:56:22 +02:00
|
|
|
man/Makefile \
|
2007-12-30 17:41:49 +01:00
|
|
|
gbc/Makefile \
|
|
|
|
gbx/Makefile \
|
|
|
|
lib/Makefile \
|
|
|
|
lib/debug/Makefile \
|
|
|
|
lib/eval/Makefile \
|
|
|
|
lib/db/Makefile \
|
|
|
|
lib/vb/Makefile \
|
|
|
|
lib/compress/Makefile \
|
|
|
|
lib/option/Makefile \
|
2013-05-04 19:23:17 +02:00
|
|
|
lib/geom/Makefile \
|
2007-12-30 17:41:49 +01:00
|
|
|
lib/draw/Makefile \
|
|
|
|
lib/gui/Makefile \
|
2012-05-06 23:09:42 +02:00
|
|
|
lib/gui.opengl/Makefile \
|
2020-09-23 01:06:18 +02:00
|
|
|
lib/gui.webview/Makefile \
|
2015-05-28 12:08:13 +02:00
|
|
|
lib/gui.qt/Makefile \
|
|
|
|
lib/gui.qt.webkit/Makefile \
|
2017-08-29 00:42:58 +02:00
|
|
|
lib/gui.qt.opengl/Makefile \
|
2023-07-09 19:35:54 +02:00
|
|
|
lib/gui.qt.ext/Makefile \
|
2015-07-04 00:18:58 +02:00
|
|
|
lib/gui.trayicon/Makefile \
|
2009-01-13 01:42:55 +01:00
|
|
|
lib/image/Makefile \
|
2009-09-01 03:14:13 +02:00
|
|
|
lib/image.effect/Makefile \
|
2010-07-13 01:09:57 +02:00
|
|
|
lib/signal/Makefile \
|
2017-01-07 01:58:20 +01:00
|
|
|
lib/term/Makefile \
|
2012-07-09 17:37:42 +02:00
|
|
|
lib/complex/Makefile \
|
2012-09-09 22:20:47 +02:00
|
|
|
lib/data/Makefile \
|
2013-08-12 03:50:46 +02:00
|
|
|
lib/clipper/Makefile \
|
2013-12-30 12:29:15 +01:00
|
|
|
lib/inotify/Makefile \
|
2018-06-09 22:42:35 +02:00
|
|
|
lib/jit/Makefile \
|
2020-05-25 21:24:28 +02:00
|
|
|
lib/test/Makefile \
|
2022-09-13 02:48:11 +02:00
|
|
|
lib/hash/Makefile \
|
2009-08-04 21:14:17 +02:00
|
|
|
])
|
|
|
|
AC_OUTPUT
|
2009-08-17 00:07:48 +02:00
|
|
|
|
2010-07-14 03:50:18 +02:00
|
|
|
GB_PRINT_MESSAGES
|