2007-12-30 16:41:49 +00:00
|
|
|
dnl ---- configure.ac for main programs
|
|
|
|
|
2014-04-05 21:22:43 +00: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-16 22:07:48 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2014-04-05 21:22:43 +00: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 08:54:51 +00:00
|
|
|
GB_MATH_FUNC
|
2022-09-03 13:24:51 +02:00
|
|
|
LT_INIT([dlopen win32-dll])
|
2007-12-30 16:41:49 +00:00
|
|
|
AM_PROG_CC_C_O
|
|
|
|
|
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 16:41:49 +00:00
|
|
|
dnl ---- Check for internationalization library
|
|
|
|
|
|
|
|
GB_COMPONENT(
|
2012-05-18 01:19:15 +00:00
|
|
|
intl, INTL, libintl, [],
|
2009-07-07 11:53:20 +00:00
|
|
|
[GB_FIND(libintl.h, /opt/local /usr/local /usr, include)],
|
|
|
|
[GB_FIND(libintl.$SHLIBEXT, /opt/local /usr/local /usr /, lib)],
|
2007-12-30 16:41:49 +00: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 16:41:49 +00:00
|
|
|
|
2012-06-09 14:03:58 +00: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 14:03:58 +00:00
|
|
|
|
2007-12-30 16:41:49 +00:00
|
|
|
dnl ---- Check for charset conversion library
|
|
|
|
|
|
|
|
GB_COMPONENT(
|
2012-05-18 01:19:15 +00:00
|
|
|
conv, CONV, libiconv, [],
|
2009-07-07 11:53:20 +00:00
|
|
|
[GB_FIND(iconv.h, /opt/local /usr/local /usr, include)],
|
|
|
|
[GB_FIND(libiconv.$SHLIBEXT, /opt/local /usr/local /usr, lib)],
|
2007-12-30 16:41:49 +00: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 16:41:49 +00:00
|
|
|
|
2012-06-09 14:03:58 +00: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 14:03:58 +00:00
|
|
|
|
2007-12-30 16:41:49 +00:00
|
|
|
dnl ---- Check for gettext library
|
|
|
|
|
2008-04-11 22:36:53 +00:00
|
|
|
if test "x$GETTEXT_LIB" != x; then
|
|
|
|
|
2007-12-30 16:41:49 +00:00
|
|
|
GB_COMPONENT(
|
2012-05-18 01:19:15 +00:00
|
|
|
gettext, GETTEXT, libgettextlib, [],
|
2007-12-30 16:41:49 +00:00
|
|
|
[],
|
2009-07-07 11:53:20 +00:00
|
|
|
[GB_FIND(libgettextlib.$SHLIBEXT, /opt/local /usr/local /usr, lib)],
|
2018-11-21 00:11:42 +01:00
|
|
|
[$GETTEXT_LIB],
|
2007-12-30 16:41:49 +00: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-11 22:36:53 +00:00
|
|
|
|
|
|
|
fi
|
2007-12-30 16:41:49 +00:00
|
|
|
|
2012-06-09 14:03:58 +00: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 14:03:58 +00:00
|
|
|
|
2008-01-17 21:39:26 +00:00
|
|
|
dnl ---- Check for ffi library
|
|
|
|
|
2009-06-28 22:19:42 +00:00
|
|
|
GB_COMPONENT_SEARCH(
|
2012-05-18 01:19:15 +00:00
|
|
|
ffi, FFI, libffi, [],
|
2008-02-26 08:23:51 +00:00
|
|
|
libffi,
|
2016-07-15 15:13:10 +00: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 00:54:14 +00:00
|
|
|
[GB_FIND(libffi.$SHLIBEXT, /usr/local /usr /usr/lib/gcc/*/*, lib .)],
|
2009-06-28 22:19:42 +00:00
|
|
|
[-lffi])
|
2008-01-17 21:39:26 +00:00
|
|
|
|
2009-07-07 11:53:20 +00:00
|
|
|
if test -z "$FFI_LIB"; then
|
|
|
|
GB_COMPONENT(
|
2012-05-18 01:19:15 +00:00
|
|
|
ffi, FFI, libffi, [],
|
2009-07-07 11:53:20 +00: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 08:23:51 +00: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 08:23:51 +00: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 11:29:15 +00: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 11:29:15 +00:00
|
|
|
|
2009-08-16 22:07:48 +00:00
|
|
|
dnl ---- We do not use libtool to load shared libraries anymore!
|
2007-12-30 16:41:49 +00:00
|
|
|
|
2009-08-16 22:07:48 +00: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-16 22:07:48 +00:00
|
|
|
DL_LIB="-ldl"
|
2007-12-30 16:41:49 +00:00
|
|
|
else
|
2009-08-16 22:07:48 +00:00
|
|
|
DL_LIB=""
|
2007-12-30 16:41:49 +00: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 19:14:17 +00:00
|
|
|
AC_CONFIG_FILES([\
|
2007-12-30 16:41:49 +00:00
|
|
|
Makefile \
|
|
|
|
share/Makefile \
|
2020-06-20 04:56:22 +02:00
|
|
|
man/Makefile \
|
2007-12-30 16:41:49 +00: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 17:23:17 +00:00
|
|
|
lib/geom/Makefile \
|
2007-12-30 16:41:49 +00:00
|
|
|
lib/draw/Makefile \
|
|
|
|
lib/gui/Makefile \
|
2012-05-06 21:09:42 +00:00
|
|
|
lib/gui.opengl/Makefile \
|
2020-09-23 01:06:18 +02:00
|
|
|
lib/gui.webview/Makefile \
|
2015-05-28 10:08:13 +00:00
|
|
|
lib/gui.qt/Makefile \
|
|
|
|
lib/gui.qt.webkit/Makefile \
|
2017-08-29 00:42:58 +02:00
|
|
|
lib/gui.qt.opengl/Makefile \
|
2015-07-03 22:18:58 +00:00
|
|
|
lib/gui.trayicon/Makefile \
|
2009-01-13 00:42:55 +00:00
|
|
|
lib/image/Makefile \
|
2009-09-01 01:14:13 +00:00
|
|
|
lib/image.effect/Makefile \
|
2010-07-12 23:09:57 +00:00
|
|
|
lib/signal/Makefile \
|
2017-01-07 00:58:20 +00:00
|
|
|
lib/term/Makefile \
|
2012-07-09 15:37:42 +00:00
|
|
|
lib/complex/Makefile \
|
2012-09-09 20:20:47 +00:00
|
|
|
lib/data/Makefile \
|
2013-08-12 01:50:46 +00:00
|
|
|
lib/clipper/Makefile \
|
2013-12-30 11:29:15 +00: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 19:14:17 +00:00
|
|
|
])
|
|
|
|
AC_OUTPUT
|
2009-08-16 22:07:48 +00:00
|
|
|
|
2010-07-14 01:50:18 +00:00
|
|
|
GB_PRINT_MESSAGES
|