89e1b5f9e3
git-svn-id: svn://localhost/gambas/trunk@908 867c0c6c-44f3-4631-809d-bfa615b0a4ec
96 lines
2 KiB
Text
96 lines
2 KiB
Text
dnl ---- configure.ac for main programs
|
|
|
|
AC_INIT(configure.ac)
|
|
AC_CONFIG_SUBDIRS(libltdl)
|
|
GB_INIT(main)
|
|
AC_PROG_LIBTOOL
|
|
AM_PROG_CC_C_O
|
|
|
|
dnl ---- Check for internationalization library
|
|
|
|
GB_COMPONENT(
|
|
intl,
|
|
INTL,
|
|
[external internationalization library],
|
|
[],
|
|
[GB_FIND(libintl.h, /usr/local /usr, include)],
|
|
[GB_FIND(libintl.$SHLIBEXT, /usr/local /usr /, lib)],
|
|
[-lintl],
|
|
[],
|
|
[This library should be located inside the system C library])
|
|
|
|
dnl ---- Check for charset conversion library
|
|
|
|
GB_COMPONENT(
|
|
conv,
|
|
CONV,
|
|
[optional external charset conversion library],
|
|
[],
|
|
[GB_FIND(iconv.h, /usr/local /usr, include)],
|
|
[GB_FIND(libiconv.$SHLIBEXT, /usr/local /usr, lib)],
|
|
[-liconv],
|
|
[],
|
|
[This library must be located inside the C library])
|
|
|
|
dnl ---- Check for gettext library
|
|
|
|
GB_COMPONENT(
|
|
gettext,
|
|
GETTEXT,
|
|
[external gettext library],
|
|
[],
|
|
[],
|
|
[GB_FIND(gettextlib.$SHLIBEXT, /usr/local /usr, lib)],
|
|
[-lgettextlib],
|
|
[],
|
|
[This library must be located inside the C library])
|
|
|
|
dnl ---- Remove DISABLED file that could have been generated before
|
|
|
|
rm -f DISABLED
|
|
|
|
dnl ---- Should I use libtool to load shared libraries in gbi and gbx ?
|
|
|
|
if test "$SYSTEM" != "CYGWIN" && test "$SYSTEM" != "OPENBSD"; then
|
|
AC_DEFINE(DONT_USE_LTDL, 1, [Do not use libtool to load shared libraries])
|
|
DL_LIB="-ldl"
|
|
else
|
|
DL_LIB=$LIBLTDL
|
|
fi
|
|
|
|
AC_SUBST(DL_LIB)
|
|
|
|
dnl ---- Check for Portland scripts
|
|
|
|
AC_CHECK_PROGS(XDG_UTILS, [xdg-mime xdg-icon-resource], [])
|
|
|
|
dnl ---- Other options
|
|
|
|
AC_ARG_ENABLE(
|
|
preloading,
|
|
[ --enable-preloading enable preloading (default: yes)],
|
|
gambas_preloading=$enableval,
|
|
gambas_preloading=yes
|
|
)
|
|
|
|
if test "$gambas_preloading" = "yes"; then
|
|
AC_DEFINE(DO_PRELOADING, 1, allows shared library preloading )
|
|
fi
|
|
|
|
dnl ---- Create makefiles
|
|
|
|
AC_OUTPUT( \
|
|
Makefile \
|
|
share/Makefile \
|
|
gbc/Makefile \
|
|
gbx/Makefile \
|
|
lib/Makefile \
|
|
lib/debug/Makefile \
|
|
lib/eval/Makefile \
|
|
lib/db/Makefile \
|
|
lib/vb/Makefile \
|
|
lib/compress/Makefile \
|
|
lib/option/Makefile \
|
|
lib/draw/Makefile \
|
|
lib/gui/Makefile \
|
|
)
|