summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-01-28 23:57:50 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-01-28 23:57:50 +0000
commit7728bf91e674cfb2fd2ccb09c5b87df3332686ea (patch)
tree67cb50c0cf7594d702cb953a10d7c8e0ca361b2d /configure.in
parent3b48b22a718dd471b80a8db099e3817f006e2fe0 (diff)
Prepare build configuration variables in Makefiles.
Introduce new Makefile variables BUILD_xxx in makeinclude file, generated by configure. These variables may be used to select files to be compiled, dependent on the build configuration. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11079 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 0b1036287..c8c37ff46 100644
--- a/configure.in
+++ b/configure.in
@@ -67,6 +67,12 @@ AC_SUBST(FL_VERSION)
AC_SUBST(ARCHFLAGS)
AC_SUBST(OPTIM)
+dnl FLTK build options to be used in Makefiles (defined in makeinclude)
+BUILD_GDI="No"
+BUILD_X11="No"
+BUILD_XFT="No"
+USEMMFILES="No"
+
dnl OS-specific pre-tests...
dnl host_os_gui equals $host_os unless we target Cygwin or Darwin in combination with X11.
host_os_gui=$host_os
@@ -829,8 +835,6 @@ AC_ARG_WITH(links, [ --with-links make header links for common missp
INSTALL_DESKTOP=""
UNINSTALL_DESKTOP=""
-USEMMFILES="No"
-
case $host_os_gui in
cygwin* | mingw*)
dnl Cygwin environment, using windows GDI ...
@@ -843,6 +847,7 @@ case $host_os_gui in
LDFLAGS="-mwindows $LDFLAGS"
DSOFLAGS="-mwindows $DSOFLAGS"
LIBS="$LIBS -lole32 -luuid -lcomctl32"
+ BUILD_GDI="Yes"
if test "x$with_optim" = x; then
dnl Avoid -Os optimization on Cygwin/MinGW
with_optim="-O3"
@@ -938,6 +943,7 @@ case $host_os_gui in
LDFLAGS="$X_LIBS $LDFLAGS"
DSOFLAGS="$X_LIBS $DSOFLAGS"
AC_DEFINE(USE_X11)
+ BUILD_X11="Yes"
if test "x$x_includes" != x; then
ac_cpp="$ac_cpp -I$x_includes"
fi
@@ -1002,6 +1008,7 @@ case $host_os_gui in
AC_CHECK_HEADER(X11/Xft/Xft.h,
AC_CHECK_LIB(Xft, XftDrawCreate,
AC_DEFINE(USE_XFT)
+ BUILD_XFT="Yes"
LIBS="-lXft $LIBS"))
fi
fi
@@ -1097,6 +1104,9 @@ AC_SUBST(THREADS)
AC_SUBST(INSTALL_DESKTOP)
AC_SUBST(UNINSTALL_DESKTOP)
+AC_SUBST(BUILD_GDI)
+AC_SUBST(BUILD_X11)
+AC_SUBST(BUILD_XFT)
AC_SUBST(USEMMFILES)
dnl Figure out the appropriate formatted man page extension...