Commit b3a0161f authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

only build X11 specific plug-ins and tools if building for GTK+ on X11.

2001-07-25  Sven Neumann  <sven@gimp.org>

	* configure.in: only build X11 specific plug-ins and tools if
	building for GTK+ on X11.
parent 2dee4f69
2001-07-25 Sven Neumann <sven@gimp.org>
* configure.in: only build X11 specific plug-ins and tools if
building for GTK+ on X11.
2001-07-25 Michael Natterer <mitch@gimp.org>
* HACKING
......
......@@ -230,17 +230,26 @@ else
fi
AM_CONDITIONAL(HAVE_ASM_MMX, test x$have_asm_mmx = xtrue)
dnl Test for Xmu
if test -z "$LIBXMU"; then
AC_CHECK_LIB(Xmu, XmuClientWindow,
AC_CHECK_HEADER(X11/Xmu/WinUtil.h,
WEBBROWSER="webbrowser"; GIMP_REMOTE="gimp-remote"; LIBXMU='-lXmu -lXt -lSM -lICE',
AC_MSG_WARN(*** webbrowser plug-in and gimp-remote will not be built (XMU header file not found) ***)),
AC_CHECK_LIB(Xmu, XmuUpdateMapHints,
AC_CHECK_HEADER(X11/Xmu/WinUtil.h,
WEBBROWSER="webbrowser"; GIMP_REMOTE="gimp-remote"; LIBXMU='-lXmu -lXt',
AC_MSG_WARN(*** webbrowser plug-in and gimp-remote will not be built (XMU header file not found) ***)),
AC_MSG_WARN(*** webbrowser plug-in and gimp-remote will not be built (XMU library not found) ***), -lXt), -lXt -lSM -lICE)
dnl Check if building for X11
gdk_target=`$PKG_CONFIG --variable=target gtk+-2.0`
if test "$gdk_target" = x11; then
dnl Test for Xmu
if test -z "$LIBXMU"; then
AC_CHECK_LIB(Xmu, XmuClientWindow,
AC_CHECK_HEADER(X11/Xmu/WinUtil.h,
WEBBROWSER="webbrowser"; GIMP_REMOTE="gimp-remote"; LIBXMU='-lXmu -lXt -lSM -lICE',
AC_MSG_WARN(*** webbrowser plug-in and gimp-remote will not be built (XMU header file not found) ***)),
AC_CHECK_LIB(Xmu, XmuUpdateMapHints,
AC_CHECK_HEADER(X11/Xmu/WinUtil.h,
WEBBROWSER="webbrowser"; GIMP_REMOTE="gimp-remote"; LIBXMU='-lXmu -lXt',
AC_MSG_WARN(*** webbrowser plug-in and gimp-remote will not be built (XMU header file not found) ***)),
AC_MSG_WARN(*** webbrowser plug-in and gimp-remote will not be built (XMU library not found) ***), -lXt), -lXt -lSM -lICE)
fi
else
AC_MSG_WARN([
*** Not building for X11 (GDK backend is $gdk_target).
*** Webbrowser plug-in and gimp-remote will not be built.])
fi
dnl Test for libaa
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment