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])
|
|
|
|
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
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_INIT(main)
|
2010-08-31 10:54:51 +02:00
|
|
|
GB_MATH_FUNC
|
2009-08-17 00:07:48 +02:00
|
|
|
LT_INIT
|
2007-12-30 17:41:49 +01: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 17:41:49 +01:00
|
|
|
dnl ---- Check for internationalization library
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
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 \
|
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 \
|
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 \
|
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
|