2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- configure.ac for main programs
|
|
|
|
|
2009-08-04 21:14:17 +02:00
|
|
|
AC_INIT
|
|
|
|
AC_CONFIG_SRCDIR([configure.ac])
|
2009-08-17 00:07:48 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
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
|
|
|
|
|
|
|
|
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],
|
|
|
|
[],
|
2010-07-14 03:50:18 +02:00
|
|
|
[This library 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
|
|
|
|
|
|
|
|
rm -f DISABLED DISABLED.*
|
|
|
|
|
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],
|
|
|
|
[],
|
2010-07-14 03:50:18 +02:00
|
|
|
[This library 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
|
|
|
|
|
|
|
|
rm -f DISABLED DISABLED.*
|
|
|
|
|
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)],
|
2008-01-18 14:43:10 +01:00
|
|
|
[-lgettextlib],
|
2007-12-30 17:41:49 +01:00
|
|
|
[],
|
2010-07-14 03:50:18 +02:00
|
|
|
[This library may be located 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
|
|
|
|
|
|
|
|
rm -f DISABLED DISABLED.*
|
|
|
|
|
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,
|
2009-06-29 00:19:42 +02:00
|
|
|
[GB_FIND(ffi.h, /usr/local /usr/local/lib /usr /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
|
|
|
|
|
2012-05-18 03:19:15 +02:00
|
|
|
rm -f DISABLED DISABLED.*
|
2008-02-26 09:23:51 +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])
|
|
|
|
if test "$SYSTEM" != "OPENBSD" && test "$SYSTEM" != "FREEBSD"; then
|
|
|
|
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 \
|
|
|
|
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 \
|
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 \
|
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 \
|
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
|