1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(gdk/gdktypes.h)
5 # For each of the libraries we build, we define the following
6 # substituted variables:
8 # foo_PACKAGES: pkg-config packages this library requires
9 # foo_EXTRA_LIBS: Libraries this module requires not pulled in by pkg-config
10 # foo_EXTRA_CFLAGS: cflags this module requires not pulled in by pkg-config
11 # foo_DEP_LIBS: All libraries this module requires
12 # foo_DEP_CFLAGS: All cflags this module requires
15 # Save this value here, since automake will set cflags later
16 cflags_set=${CFLAGS+set}
18 dnl we to AC_DIVERT_PUSH/AC_DIVERT_POP these variable definitions so they
19 dnl are available for $ac_help expansion (don't we all *love* autoconf?)
20 GLIB_AC_DIVERT_BEFORE_HELP([
23 # GTK_MICRO_VERSION += 1;
24 # GTK_INTERFACE_AGE += 1;
25 # GTK_BINARY_AGE += 1;
26 # if any functions have been added, set GTK_INTERFACE_AGE to 0.
27 # if backwards compatibility has been broken,
28 # set GTK_BINARY_AGE and GTK_INTERFACE_AGE to 0.
35 GTK_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$GTK_MICRO_VERSION
36 dnl This is the X.Y used in -lgtk-FOO-X.Y
40 AC_SUBST(GTK_MAJOR_VERSION)
41 AC_SUBST(GTK_MINOR_VERSION)
42 AC_SUBST(GTK_MICRO_VERSION)
43 AC_SUBST(GTK_INTERFACE_AGE)
44 AC_SUBST(GTK_BINARY_AGE)
45 AC_SUBST(GTK_API_VERSION)
49 LT_RELEASE=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION
50 LT_CURRENT=`expr $GTK_MICRO_VERSION - $GTK_INTERFACE_AGE`
51 LT_REVISION=$GTK_INTERFACE_AGE
52 LT_AGE=`expr $GTK_BINARY_AGE - $GTK_INTERFACE_AGE`
53 LT_CURRENT_MINUS_AGE=`expr $LT_CURRENT - $LT_AGE`
58 AC_SUBST(LT_CURRENT_MINUS_AGE)
60 # Define a string for the earliest version that this release has
61 # binary compatibility with. This is used for module locations.
63 GTK_BINARY_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$LT_CURRENT
64 AC_SUBST(GTK_BINARY_VERSION)
67 # gdk-pixbuf gets versioned separately, and for now, using standard
68 # libtool versioning, not GTK+-style versioning
70 GDK_PIXBUF_MAJOR=$GTK_MAJOR_VERSION
71 GDK_PIXBUF_MINOR=$GTK_MINOR_VERSION
72 GDK_PIXBUF_MICRO=$GTK_MICRO_VERSION
73 GDK_PIXBUF_VERSION="${GDK_PIXBUF_MAJOR}.${GDK_PIXBUF_MINOR}.${GDK_PIXBUF_MICRO}"
74 AC_SUBST(GDK_PIXBUF_MAJOR)
75 AC_SUBST(GDK_PIXBUF_MINOR)
76 AC_SUBST(GDK_PIXBUF_MICRO)
77 AC_SUBST(GDK_PIXBUF_VERSION)
79 ## Versions of dependencies
80 GLIB_REQUIRED_VERSION=2.0.0
81 PANGO_REQUIRED_VERSION=1.0.0
82 ATK_REQUIRED_VERSION=1.0.0
89 AC_SUBST(GETTEXT_PACKAGE)
90 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
92 # Save this value here, since automake will set cflags later
93 cflags_set=${CFLAGS+set}
95 dnl Initialize automake stuff
96 AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
98 # Specify a configuration file
99 AM_CONFIG_HEADER(config.h)
101 dnl Initialize libtool
107 dnl Set AS and ASFLAGS so that automake 1.5 will be happy
113 dnl Initialize maintainer mode
118 AC_MSG_CHECKING([for some Win32 platform])
120 *-*-mingw*|*-*-cygwin*)
127 AC_MSG_RESULT([$platform_win32])
128 AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
130 AC_MSG_CHECKING([for native Win32])
139 AC_MSG_RESULT([$os_win32])
140 AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
142 if test "$os_win32" = "yes"; then
143 AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
145 AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
147 dnl figure debugging default, prior to $ac_help setup
149 GLIB_AC_DIVERT_BEFORE_HELP([
150 if test `expr $GTK_MINOR_VERSION \% 2` = 1 ; then
153 debug_default=minimum
157 dnl declare --enable-* args and collect ac_help strings
158 AC_ARG_ENABLE(debug, [ --enable-debug=[no/minimum/yes] turn on debugging [default=$debug_default]],,enable_debug=$debug_default)
159 AC_ARG_ENABLE(shm, [ --enable-shm support shared memory if available [default=yes]],
160 echo $enable_shm, enable_shm="yes")
161 AC_ARG_ENABLE(ansi, [ --enable-ansi turn on strict ansi [default=no]],
163 AC_ARG_ENABLE(xim, [ --enable-xim support XIM [default=yes]],
165 AC_ARG_ENABLE(xim_inst, [ --disable-xim-inst does not use xim instantiate callback],
166 , enable_xim_inst="maybe")
167 AC_ARG_ENABLE(xkb, [ --enable-xkb support XKB [default=maybe]],
168 , enable_xkb="maybe")
169 AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes)
171 AC_ARG_WITH(xinput, [ --with-xinput=[no/gxi/xfree] support XInput ])
173 AC_ARG_WITH(wintab, [ --with-wintab=DIRECTORY use Wintab API with win32 backend])
174 AC_ARG_WITH(ie55, [ --with-ie55=DIRECTORY IE5.5 libs and headers (for Active IMM)])
176 GLIB_AC_DIVERT_BEFORE_HELP([
177 if test "$platform_win32" = yes; then
184 AC_ARG_WITH(gdktarget, [ --with-gdktarget=[[x11/linux-fb/win32]] select GDK target [default=$gdktarget]],
185 gdktarget=$with_gdktarget)
189 x11|linux-fb|win32) ;;
190 *) AC_MSG_ERROR([Invalid target for GDK: use x11, linux-fb or win32.]);;
193 gdktargetlib=libgdk-$gdktarget-$GTK_API_VERSION.la
194 gtktargetlib=libgtk-$gdktarget-$GTK_API_VERSION.la
196 AC_SUBST(gdktargetlib)
197 AC_SUBST(gtktargetlib)
199 AC_ARG_ENABLE(shadowfb, [ --disable-shadowfb disable shadowfb support for linux-fb],,enable_shadowfb=yes)
201 AC_ARG_ENABLE(fbmanager, [ --enable-fbmanager enable framebuffer manager support (GtkFB)],enable_fbmanager=yes,enable_fbmanager=no)
203 if test "x$enable_debug" = "xyes"; then
204 test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
205 GTK_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
207 if test "x$enable_debug" = "xno"; then
208 GTK_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
210 GTK_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
214 AC_DEFINE_UNQUOTED(GTK_COMPILED_WITH_DEBUGGING, "${enable_debug}")
217 # Build time sanity check...
220 # Checks for programs.
227 if test "x$GCC" = "xyes"; then
229 *[\ \ ]-Wall[\ \ ]*) ;;
230 *) CFLAGS="$CFLAGS -Wall" ;;
233 if test "x$enable_ansi" = "xyes"; then
235 *[\ \ ]-ansi[\ \ ]*) ;;
236 *) CFLAGS="$CFLAGS -ansi" ;;
240 *[\ \ ]-pedantic[\ \ ]*) ;;
241 *) CFLAGS="$CFLAGS -pedantic" ;;
245 if test "$os_win32" = "yes"; then
246 case "$CC $CFLAGS " in
247 *[[\ \ ]]-fnative-struct[[\ \ ]]*) ;;
248 *) CFLAGS="$CFLAGS -fnative-struct" ;;
254 # Honor aclocal flags
255 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
257 ## Initial sanity check, done here so that users get told they
258 ## have the wrong dependencies as early in the process as possible.
259 ## Later on we actually use the cflags/libs from separate pkg-config
260 ## calls. Oh, also the later pkg-config calls don't include
261 ## the version requirements since those make the module lists
262 ## annoying to construct
263 PKG_CHECK_MODULES(BASE_DEPENDENCIES, glib-2.0 >= $GLIB_REQUIRED_VERSION atk >= $ATK_REQUIRED_VERSION pango >= $PANGO_REQUIRED_VERSION)
265 if test "$os_win32" != yes; then
266 # libtool option to control which symbols are exported
267 # right now, symbols starting with _ are not exported
268 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
270 # We currently use .def files on Windows (for gdk-pixbuf, gdk and gtk)
271 LIBTOOL_EXPORT_OPTIONS=
273 AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
275 dnl ******************************************************
276 dnl * See whether to include shared library dependencies *
277 dnl ******************************************************
279 AC_ARG_ENABLE(explicit-deps,
280 [ --enable-explicit-deps=[yes/no/auto] use explicit dependencies in .pc files [default=auto]],
281 enable_explicit_deps="$enableval",
282 enable_explicit_deps=auto)
284 AC_MSG_CHECKING([Whether to write dependencies into .pc files])
285 case $enable_explicit_deps in
287 deplib_check_method=`(./libtool --config; echo eval echo \\$deplib_check_method) | sh`
288 if test "X$deplib_check_method" == Xnone || test "x$enable_static" = xyes ; then
289 enable_explicit_deps=yes
291 enable_explicit_deps=no
296 *) AC_MSG_ERROR([Value given to --enable-explicit-deps must be one of yes, no or auto])
299 AC_MSG_RESULT($enable_explicit_deps)
301 AM_CONDITIONAL(DISABLE_EXPLICIT_DEPS, test $enable_explicit_deps = no)
303 # define a MAINT-like variable REBUILD which is set if Perl
304 # and awk are found, so autogenerated sources can be rebuilt
306 AC_CHECK_PROGS(PERL, perl5 perl)
308 # We would like indent, but don't require it.
309 AC_CHECK_PROG(INDENT, indent, indent)
312 if test "x$enable_rebuilds" = "xyes" && \
314 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then
319 AC_CHECK_FUNCS(lstat mkstemp bind_textdomain_codeset)
321 # sigsetjmp is a macro on some platforms, so AC_CHECK_FUNCS is not reliable
322 AC_MSG_CHECKING(for sigsetjmp)
323 AC_TRY_LINK([#include <setjmp.h>], [
326 ], gtk_ok=yes, gtk_ok=no)
327 AC_MSG_RESULT($gtk_ok)
328 if test "$gtk_ok" = "yes"; then
329 AC_DEFINE(HAVE_SIGSETJMP)
332 AC_MSG_CHECKING(whether make is GNU Make)
335 if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
336 STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
343 AC_SUBST(STRIP_DUMMY)
344 AC_SUBST(STRIP_BEGIN)
348 ALL_LINGUAS="az ca cs cy da de el en_GB en@IPA es et eu fa fi fr ga gl he hr hu ia it ja ko lt ms nl nn no pl pt pt_BR ro ru sk sl sp sr sv tr uk vi wa zh_TW zh_CN"
350 LIBS="$LIBS $INTLLIBS"
352 # AM_GLIB_GNU_GETTEXT above substs $DATADIRNAME
353 # this is the directory where the *.{mo,gmo} files are installed
354 gtklocaledir='${prefix}/${DATADIRNAME}/locale'
355 AC_SUBST(gtklocaledir)
357 dnl The DU4 header files don't provide library prototypes unless
358 dnl -std1 is given to the native cc.
359 AC_MSG_CHECKING([for extra flags to get ANSI library prototypes])
363 AC_TRY_RUN([#include <math.h>
364 int main (void) { return (log(1) != log(1.)); }],
365 AC_MSG_RESULT(none needed),
366 gtk_save_CFLAGS="$CFLAGS"
367 CFLAGS="$CFLAGS -std1"
368 AC_TRY_RUN([#include <math.h>
369 int main (void) { return (log(1) != log(1.)); }],
370 AC_MSG_RESULT(-std1),
372 CFLAGS="$gtk_save_CFLAGS"
374 [No ANSI prototypes found in library. (-std1 didn't work.)]),
377 AC_MSG_RESULT(none needed)
382 AC_MSG_CHECKING(for the BeOS)
393 dnl NeXTStep cc seems to need this
394 AC_MSG_CHECKING([for extra flags for POSIX compliance])
395 AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
396 AC_MSG_RESULT(none needed),
397 gtk_save_CFLAGS="$CFLAGS"
398 CFLAGS="$CFLAGS -posix"
399 AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
400 AC_MSG_RESULT(-posix),
402 CFLAGS="$gtk_save_CFLAGS"
403 AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
406 # Run AM_PATH_GLIB_2_0 to make sure that GLib is installed and working
409 GLIB_PACKAGES="gobject-2.0 gmodule-2.0"
411 AM_PATH_GLIB_2_0($GLIB_REQUIRED_VERSION, :,
413 *** GLIB $GLIB_REQUIRED_VERSION or better is required. The latest version of
414 *** GLIB is always available from ftp://ftp.gtk.org/.]),
415 gobject gmodule gthread)
417 AC_CHECK_HEADERS(pwd.h, AC_DEFINE(HAVE_PWD_H))
418 AC_CHECK_HEADERS(sys/time.h, AC_DEFINE(HAVE_SYS_TIME_H))
419 AC_CHECK_HEADERS(unistd.h, AC_DEFINE(HAVE_UNISTD_H))
420 AC_CHECK_HEADERS(winsock.h, AC_DEFINE(HAVE_WINSOCK_H))
422 if test "${with_ie55+set}" = set && test $with_ie55 != no; then
423 AC_MSG_CHECKING([for dimm.h])
424 saved_CFLAGS="$CFLAGS"
425 CFLAGS="$CFLAGS -idirafter $with_ie55/Include"
426 AC_TRY_COMPILE([#include <windows.h>
429 /* The w32api imm.h clashes a bit with the IE5.5 dimm.h */
430 #define IMEMENUITEMINFOA hidden_IMEMENUITEMINFOA
431 #define IMEMENUITEMINFOW hidden_IMEMENUITEMINFOW
433 #undef IMEMENUITEMINFOA
434 #undef IMEMENUITEMINFOW
440 AC_MSG_CHECKING([for IE55 uuid.lib])
441 if test -f $with_ie55/Lib/uuid.lib ; then
444 AC_DEFINE(HAVE_DIMM_H)
445 IE55_UUID_LIB="$with_ie55/Lib/uuid.lib"
446 AC_SUBST(IE55_UUID_LIB)
449 CFLAGS="$saved_CFLAGS"
454 CFLAGS="$saved_CFLAGS"
457 AM_CONDITIONAL(HAVE_IE55, test x$have_ie55 = xyes)
459 if test "${with_wintab+set}" = set && test $with_wintab != no; then
460 AC_MSG_CHECKING([for wintab.h])
461 saved_CFLAGS="$CFLAGS"
462 CFLAGS="$CFLAGS -I$with_wintab/include"
463 AC_TRY_COMPILE([#include <windows.h>
464 #include <wintab.h>],
467 AC_MSG_CHECKING([for wntab32x.lib])
468 if test -f $with_wintab/lib/i386/wntab32x.lib ; then
471 AC_DEFINE(HAVE_WINTAB)
472 WINTAB_LIB="$with_wintab/lib/i386/wntab32x.lib"
476 CFLAGS="$saved_cflags"
481 CFLAGS="$saved_cflags"
484 AM_CONDITIONAL(HAVE_WINTAB, test x$have_wintab = xyes)
486 saved_cflags="$CFLAGS"
487 saved_ldflags="$LDFLAGS"
490 # Checks for header files.
493 # Checks for typedefs, structures, and compiler characteristics.
496 # Checks for library functions.
500 AC_CHECK_FUNCS(getresuid)
503 # Check if <sys/select.h> needs to be included for fd_set
504 AC_MSG_CHECKING([for fd_set])
505 AC_TRY_COMPILE([#include <sys/types.h>],
506 [fd_set readMask, writeMask;], gtk_ok=yes, gtk_ok=no)
507 if test $gtk_ok = yes; then
508 AC_MSG_RESULT([yes, found in sys/types.h])
510 AC_HEADER_EGREP(fd_mask, sys/select.h, gtk_ok=yes)
511 if test $gtk_ok = yes; then
512 AC_DEFINE(HAVE_SYS_SELECT_H)
513 AC_MSG_RESULT([yes, found in sys/select.h])
520 # `widechar' tests for gdki18n.h
521 AC_MSG_CHECKING(for wchar.h)
522 AC_TRY_CPP([#include <wchar.h>], gdk_wchar_h=yes, gdk_wchar_h=no)
523 if test $gdk_wchar_h = yes; then
524 AC_DEFINE(HAVE_WCHAR_H,1,[Have wchar.h include file])
526 AC_MSG_RESULT($gdk_wchar_h)
528 # Check for wctype.h (for iswalnum)
529 AC_MSG_CHECKING(for wctype.h)
530 AC_TRY_CPP([#include <wctype.h>], gdk_wctype_h=yes, gdk_wctype_h=no)
531 if test $gdk_wctype_h = yes; then
532 AC_DEFINE(HAVE_WCTYPE_H,1,[Have wctype.h include file])
534 AC_MSG_RESULT($gdk_wctype_h)
536 # in Solaris 2.5, `iswalnum' is in -lw
538 AC_CHECK_FUNC(iswalnum,,[AC_CHECK_LIB(w,iswalnum,GDK_WLIBS=-lw)])
541 LIBS="$LIBS $GDK_WLIBS"
542 # The following is necessary for Linux libc-5.4.38
543 AC_MSG_CHECKING(if iswalnum() and friends are properly defined)
544 AC_TRY_LINK([#include <stdlib.h>],[
545 #if (defined(HAVE_WCTYPE_H) || defined(HAVE_WCHAR_H))
546 # ifdef HAVE_WCTYPE_H
554 # define iswalnum(c) ((wchar_t)(c) <= 0xFF && isalnum(c))
556 iswalnum((wchar_t) 0);
557 ], gdk_working_wctype=yes, gdk_working_wctype=no)
560 if test $gdk_working_wctype = no; then
561 AC_DEFINE(HAVE_BROKEN_WCTYPE,1,[Is the wctype implementation broken])
564 AC_MSG_RESULT($gdk_working_wctype)
569 ##################################################
570 # Checks for gdk-pixbuf
571 ##################################################
573 AC_MSG_CHECKING(whether to build gmodulized gdk-pixbuf)
575 AC_ARG_ENABLE(modules, [ --disable-modules disable dynamic module loading],[
576 if test x$withval = xyes; then
585 if test x$with_modules = xno; then
589 AC_MSG_CHECKING(whether dynamic modules work)
590 ## for loop is to strip newline
591 tmp=`pkg-config --variable=gmodule_supported gmodule-2.0`
596 dnl Now we check to see if our libtool supports shared lib deps
597 dnl (in a rather ugly way even)
599 pixbuf_libtool_config="${CONFIG_SHELL-/bin/sh} ./libtool --config"
600 pixbuf_deplibs_check=`$pixbuf_libtool_config | \
601 grep '^[[a-z_]]*check[[a-z_]]*_method=[['\''"]]' | \
602 sed 's/.*[['\''"]]\(.*\)[['\''"]]$/\1/'`
603 if test "x$pixbuf_deplibs_check" = "xnone" || \
604 test "x$pixbuf_deplibs_check" = "xunknown" || \
605 test "x$pixbuf_deplibs_check" = "x"; then
611 AC_DEFINE(USE_GMODULE)
618 dnl We allow people to disable image loaders explicitely, but if they don't we error
619 dnl out so that people don't accidentally build without them.
621 AC_ARG_WITH(libpng, [ --without-libpng disable PNG loader for gdk-pixbuf])
622 AC_ARG_WITH(libjpeg, [ --without-libjpeg disable JPEG loader for gdk-pixbuf])
623 AC_ARG_WITH(libtiff, [ --without-libtiff disable TIFF loader for gdk-pixbuf])
626 if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
627 AC_CHECK_LIB(tiff, TIFFReadScanline,
628 [AC_CHECK_HEADER(tiffio.h,
629 TIFF='tiff'; LIBTIFF='-ltiff',
630 AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
631 [AC_CHECK_LIB(tiff, TIFFWriteScanline,
632 [AC_CHECK_HEADER(tiffio.h,
633 TIFF='tiff'; LIBTIFF='-ltiff -ljpeg -lz',
634 AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
635 [AC_CHECK_LIB(tiff34, TIFFFlushData,
636 [AC_CHECK_HEADER(tiffio.h,
637 TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg -lz',
638 AC_MSG_WARN(*** TIFF loader will not be built (TIFF header files not found) ***))],
639 AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF library not found) ***), -ljpeg -lz -lm)], -ljpeg -lz -lm)], -lm)
642 if test x$with_libtiff != xno && test -z "$LIBTIFF"; then
644 *** Checks for TIFF loader failed. You can build without it by passing
645 *** --without-libtiff to configure but some programs using GTK+ may
646 *** not work properly])
650 if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
651 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
654 AC_MSG_WARN(*** JPEG loader will not be built (JPEG library not found) ***))
655 if test "$jpeg_ok" = yes; then
656 AC_MSG_CHECKING([for jpeglib.h])
662 #include <jpeglib.h>],
665 AC_MSG_RESULT($jpeg_ok)
666 if test "$jpeg_ok" = yes; then
668 AC_CHECK_LIB(jpeg, jpeg_simple_progression,
669 AC_DEFINE(HAVE_PROGRESSIVE_JPEG),
670 AC_MSG_WARN(JPEG library does not support progressive saving.))
672 AC_MSG_WARN(*** JPEG loader will not be built (JPEG header file not found) ***)
677 if test x$with_libjpeg != xno && test -z "$LIBJPEG"; then
679 *** Checks for JPEG loader failed. You can build without it by passing
680 *** --without-libjpeg to configure but some programs using GTK+ may
681 *** not work properly])
685 if test x$with_libpng != xno && test -z "$LIBPNG"; then
686 AC_CHECK_LIB(png, png_read_info,
687 [AC_CHECK_HEADER(png.h,
690 AC_MSG_WARN(*** PNG loader will not be built (PNG library not found) ***), -lz -lm)
691 if test "$png_ok" = yes; then
692 AC_MSG_CHECKING([for png_structp in png.h])
693 AC_TRY_COMPILE([#include <png.h>],
694 [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
697 AC_MSG_RESULT($png_ok)
698 if test "$png_ok" = yes; then
699 PNG='png'; LIBPNG='-lpng -lz'
701 AC_MSG_WARN(*** PNG loader will not be built (PNG library is too old) ***)
704 AC_MSG_WARN(*** PNG loader will not be built (PNG header file not found) ***)
708 if test x$with_libpng != xno && test -z "$LIBPNG"; then
710 *** Checks for PNG loader failed. You can build without it by passing
711 *** --without-libpng to configure but many programs using GTK+ will
712 *** not work properly. The PNG loader is also needed if you are compiling
720 AM_CONDITIONAL(BUILD_DYNAMIC_MODULES, $dynworks)
723 # Allow building some or all gdk-pixbuf loaders included
725 AC_MSG_CHECKING(pixbuf loaders to build)
727 AC_ARG_WITH(included_loaders, [ --with-included-loaders=LOADER1,LOADER2,... build the specified loaders into gdk-pixbuf (only used if module loading disabled)])
732 ## if the option was specified, leave it; otherwise disable included loaders
733 if test x$with_included_loaders = xno; then
734 with_included_loaders=yes
738 all_loaders="png,bmp,wbmp,gif,ico,jpeg,pnm,ras,tiff,xpm,tga"
740 # If no loaders specified, include all
741 if test "x$with_included_loaders" = xyes ; then
742 included_loaders="$all_loaders"
744 included_loaders="$with_included_loaders"
747 AC_MSG_RESULT($included_loaders)
750 INCLUDED_LOADER_DEFINE=
752 IFS="${IFS= }"; gtk_save_ifs="$IFS"; IFS=","
753 for loader in $included_loaders; do
754 if echo "$all_loaders" | grep "\(^\|\,\)$loader\(\$\|\,\)" > /dev/null; then
757 AC_MSG_ERROR([the specified loader $loader does not exist])
760 INCLUDED_LOADER_OBJ="$INCLUDED_LOADER_OBJ libpixbufloader-static-$loader.la"
761 INCLUDED_LOADER_DEFINE="$INCLUDED_LOADER_DEFINE -DINCLUDE_$loader"
764 AC_SUBST(INCLUDED_LOADER_OBJ)
765 AC_SUBST(INCLUDED_LOADER_DEFINE)
771 AM_CONDITIONAL(HAVE_TIFF, test "x$LIBTIFF" != x)
772 AM_CONDITIONAL(HAVE_PNG, test "x$LIBPNG" != x)
773 AM_CONDITIONAL(HAVE_JPEG, test "x$LIBJPEG" != x)
777 if echo "$included_loaders" | grep "\(^\|\,\)tiff\(\$\|\,\)" > /dev/null; then
778 STATIC_LIB_DEPS="$STATIC_LIB_DEPS $LIBTIFF"
780 if echo "$included_loaders" | grep "\(^\|\,\)jpeg\(\$\|\,\)" > /dev/null; then
781 STATIC_LIB_DEPS="$STATIC_LIB_DEPS $LIBJPEG"
783 if echo "$included_loaders" | grep "\(^\|\,\)png\(\$\|\,\)" > /dev/null; then
784 STATIC_LIB_DEPS="$STATIC_LIB_DEPS $LIBPNG"
787 STATIC_LIB_DEPS="$LIBTIFF $LIBJPEG $LIBPNG"
790 # Checks to see if we should compile in MMX support (there will be
791 # a runtime test when the code is actually run to see if it should
792 # be used - this just checks if we can compile it.)
794 # This code is partially taken from Mesa
796 AC_MSG_CHECKING(for x86 platform)
798 i386|i486|i586|i686|i786|k6|k7)
804 AC_MSG_RESULT($use_x86_asm)
807 if test $use_x86_asm = yes; then
811 AC_MSG_CHECKING(compiler support for MMX)
812 cp $srcdir/gdk-pixbuf/pixops/scale_line_22_33_mmx.S conftest.S
813 if AC_TRY_EVAL(ac_compile); then
820 if test $use_mmx_asm = yes; then
828 AM_CONDITIONAL(USE_MMX, test x$use_mmx_asm = xyes)
831 GDK_PIXBUF_PACKAGES="gmodule-2.0 gobject-2.0"
832 GDK_PIXBUF_EXTRA_LIBS="$STATIC_LIB_DEPS $MATH_LIB"
833 GDK_PIXBUF_EXTRA_CFLAGS=
834 GDK_PIXBUF_DEP_LIBS="`$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES` $GDK_PIXBUF_EXTRA_LIBS"
835 GDK_PIXBUF_DEP_CFLAGS="`$PKG_CONFIG --cflags $GDK_PIXBUF_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS"
837 AC_SUBST(GDK_PIXBUF_PACKAGES)
838 AC_SUBST(GDK_PIXBUF_EXTRA_LIBS)
839 AC_SUBST(GDK_PIXBUF_EXTRA_CFLAGS)
840 AC_SUBST(GDK_PIXBUF_DEP_LIBS)
841 AC_SUBST(GDK_PIXBUF_DEP_CFLAGS)
844 ########################################
845 # Windowing system checks
846 ########################################
848 GDK_EXTRA_LIBS=$GDK_WLIBS
853 if test "x$gdktarget" = "xlinux-fb" || test "x$gdktarget" = "xx11" ; then
855 # Checks for FreeType
858 AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
859 if test "x$FREETYPE_CONFIG" != "xno" ; then
860 FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
861 FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
863 AC_CHECK_LIB(freetype, FT_New_Face, have_freetype=true
866 if $have_freetype ; then
867 gtk_save_cppflags="$CPPFLAGS"
868 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
870 AC_MSG_CHECKING([For sufficiently new FreeType (at least 2.0.1)])
872 #include <freetype/freetype.h>
875 [(void)1;],:,have_freetype=false)
876 if $have_freetype ; then
882 CPPFLAGS="$gtk_save_cppflags"
885 AC_SUBST(FREETYPE_LIBS)
886 AC_SUBST(FREETYPE_CFLAGS)
889 if test "x$gdktarget" = "xx11"; then
890 # We start off with the libraries from Pango
892 if $PKG_CONFIG --exists pangox ; then : ; else
893 AC_MSG_ERROR([pangox Pango backend is required for x11 target])
896 ## be sure we also have Pango built with xft support
897 if $PKG_CONFIG --exists pangoxft ; then
898 PANGO_PACKAGES="pangox pangoxft"
901 if $have_freetype ; then
904 AC_MSG_ERROR([pangoxft Pango backend found but did not find freetype libraries])
907 PANGO_PACKAGES="pangox"
911 AM_CONDITIONAL(HAVE_XFT, $have_xft)
914 # If Pango included the shared library dependencies from X11 in
915 # the pkg-config output, then we use that (to avoid duplicates).
916 # but if they were omitted to avoid binary compatibility problems
917 # then we need to repeat the checks.
919 x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`"
921 *-lX11*) pango_omitted_x_deps=no ;;
922 *) pango_omitted_x_deps=yes ;;
925 x_cflags="`$PKG_CONFIG --cflags $PANGO_PACKAGES`"
928 if test $pango_omitted_x_deps = yes ; then
931 if test x$no_x = xyes ; then
932 AC_MSG_ERROR([X development libraries not found])
935 x_libs="$X_LIBS -lX11 $X_EXTRA_LIBS"
938 # Checks for Xft/XRender
942 if test $have_xft = true ; then
943 gtk_save_cppflags="$CPPFLAGS"
944 CPPFLAGS="$CPPFLAGS $x_cflags"
947 AC_CHECK_LIB(Xrender, XRenderFindFormat,
948 [AC_CHECK_LIB(Xft, XftFontOpen,
949 [AC_CHECK_HEADER(X11/Xft/XftFreetype.h,
951 :,-lXrender -lXext $x_libs $FREETYPE_LIBS)]
954 CPPFLAGS="$gtk_save_cppflags"
957 x_libs="$X_LIBS -lXft -lXrender -lXext -lX11 $FREETYPE_LIBS $X_EXTRA_LIBS"
959 AC_MSG_ERROR([pangoxft Pango backend found, but Xft not found])
964 ## Strip the .la files
967 for I in $x_libs ; do
970 *) x_libs_for_checks="$x_libs_for_checks $I" ;;
974 # Sanity check for the X11 library
975 AC_CHECK_LIB(X11, XOpenDisplay, :,
976 AC_MSG_ERROR([*** libX11 not found. Check 'config.log' for more details.]),
979 if test "x$enable_shm" = "xyes"; then
980 # Check for the Xext library (needed for XShm extention)
981 AC_CHECK_LIB(Xext, XShmAttach,
982 if test -z "`echo $x_libs | grep "\-lXext" 2> /dev/null`"; then
983 x_extra_libs="-lXext"
985 # On AIX, it is in XextSam instead, but we still need -lXext
986 AC_CHECK_LIB(XextSam, XShmAttach,
987 if test -z "`echo $x_libs | grep "\-lXext" 2> /dev/null`"; then
988 x_extra_libs="-lXextSam -lXext"
990 x_extra_libs="-lXextSam"
991 fi, , $x_libs_for_checks),
995 GDK_PIXBUF_XLIB_EXTRA_CFLAGS="$x_cflags"
996 # Don't ever pull in the pangoxft libraries for gdk-pixbuf-x11
997 GDK_PIXBUF_XLIB_EXTRA_LIBS="$x_extra_libs `$PKG_CONFIG --libs pangox`"
999 # Check for shaped window extension
1001 AC_CHECK_LIB(Xext, XShapeCombineMask,
1002 if test -z "`echo $x_extra_libs $x_libs | grep "\-lXext" 2> /dev/null`"; then
1003 x_extra_libs="-lXext $x_extra_libs"
1005 AC_DEFINE(HAVE_SHAPE_EXT),
1009 # Check for XConvertCase (X11R6 specific)
1011 AC_CHECK_LIB(X11, XConvertCase,
1012 AC_DEFINE(HAVE_XCONVERTCASE),
1016 # Check for XIM support.
1018 AC_CHECK_LIB(X11, XUnregisterIMInstantiateCallback,
1020 enable_xim_inst="no",
1023 # On Solaris, calling XRegisterIMInstantiateCallback seems to
1024 # cause an immediate segfault, so we disable it, unless
1025 # the user specifically forces it to be on.
1027 if test x$enable_xim_inst = xmaybe ; then
1030 enable_xim_inst="no"
1033 enable_xim_inst="yes"
1038 if test "x$enable_xim" = "xyes"; then
1039 GTK_XIM_FLAGS="-DUSE_XIM"
1040 if test "x$enable_xim_inst" = "xyes"; then
1041 AC_DEFINE(USE_X11R6_XIM)
1045 # Check for XKB support.
1047 if test "x$enable_xkb" = "xyes"; then
1048 AC_MSG_WARN(XKB support explicitly enabled)
1050 elif test "x$enable_xkb" = "xmaybe"; then
1051 AC_CHECK_LIB(X11, XkbQueryExtension,
1052 AC_DEFINE(HAVE_XKB),
1056 AC_MSG_WARN(XKB support explicitly disabled)
1059 x_cflags="$X_CFLAGS"
1060 x_ldflags="$X_LDFLAGS"
1062 # set up things for XInput
1064 if test "x$with_xinput" = "xgxi" || test "x$with_xinput" = "xyes"; then
1065 AC_DEFINE(XINPUT_GXI)
1067 x_extra_libs="-lXi $x_extra_libs"
1068 elif test "x$with_xinput" = "xxfree"; then
1069 AC_DEFINE(XINPUT_XFREE)
1070 x_extra_libs="-lXi $x_extra_libs"
1072 AC_DEFINE(XINPUT_NONE)
1075 AM_CONDITIONAL(XINPUT_GXI, test x$with_xinput = xgxi)
1076 AM_CONDITIONAL(XINPUT_XFREE, test x$with_xinput = xxfree)
1078 if test "x$enable_shm" = "xyes"; then
1079 # Check for shared memory
1080 AC_CHECK_HEADER(sys/ipc.h, AC_DEFINE(HAVE_IPC_H), no_sys_ipc=yes)
1081 AC_CHECK_HEADER(sys/shm.h, AC_DEFINE(HAVE_SHM_H), no_sys_shm=yes)
1083 # Check for the X shared memory extension header file
1085 AC_MSG_CHECKING(X11/extensions/XShm.h)
1086 if test "x$no_xext_lib" = "xyes"; then
1089 gtk_save_CFLAGS="$CFLAGS"
1090 CFLAGS="$CFLAGS $x_cflags"
1093 #include <sys/types.h>
1094 #include <sys/ipc.h>
1095 #include <sys/shm.h>
1096 #include <X11/Xlib.h>
1097 #include <X11/Xutil.h>
1098 #include <X11/extensions/XShm.h>
1099 ], [XShmSegmentInfo *x_shm_info;], have_xshm=yes)
1100 CFLAGS="$gtk_save_CFLAGS"
1102 AC_MSG_RESULT($have_xshm)
1103 if test $have_xshm = yes ; then
1104 AC_DEFINE(HAVE_XSHM_H)
1109 if test $pango_omitted_x_deps = yes ; then
1110 GDK_EXTRA_LIBS="$x_extra_libs $x_libs $GDK_EXTRA_LIBS"
1112 GDK_EXTRA_LIBS="$x_extra_libs $GDK_EXTRA_LIBS"
1115 AM_CONDITIONAL(USE_X11, true)
1117 AM_CONDITIONAL(USE_X11, false)
1120 if test "x$gdktarget" = "xwin32"; then
1121 # We start off with the libraries from Pango
1123 ## be sure we also have Pango built with win32 support
1124 PANGO_PACKAGES="pangowin32"
1126 if test x$have_wintab = xyes; then
1127 GDK_WIN32_EXTRA_CFLAGS="-I $with_wintab/include"
1128 AC_SUBST(GDK_WIN32_EXTRA_CFLAGS)
1131 GDK_EXTRA_LIBS="$GDK_EXTRA_LIBS -lgdi32 -user32 -limm32 -lshell32 -lole32 -luuid"
1132 AM_CONDITIONAL(USE_WIN32, true)
1134 AM_CONDITIONAL(USE_WIN32, false)
1137 AC_SUBST(xinput_progs)
1139 GDK_PIXBUF_XLIB_PACKAGES=
1140 GDK_PIXBUF_XLIB_DEP_LIBS="`$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PIXBUF_XLIB_PACKAGES` $GDK_PIXBUF_XLIB_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS"
1141 GDK_PIXBUF_XLIB_DEP_CFLAGS="`$PKG_CONFIG --cflags $GDK_PIXBUF_PACKAGES $GDK_PIXBUF_XLIB_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_PIXBUF_XLIB_EXTRA_CFLAGS"
1143 AC_SUBST(GDK_PIXBUF_XLIB_PACKAGES)
1144 AC_SUBST(GDK_PIXBUF_XLIB_EXTRA_LIBS)
1145 AC_SUBST(GDK_PIXBUF_XLIB_EXTRA_CFLAGS)
1146 AC_SUBST(GDK_PIXBUF_XLIB_DEP_LIBS)
1147 AC_SUBST(GDK_PIXBUF_XLIB_DEP_CFLAGS)
1149 if test "x$gdktarget" = "xlinux-fb"; then
1150 if $have_freetype ; then
1153 AC_MSG_ERROR([Using linux-fb backend but freetype was not found])
1156 ft2_libs="`$PKG_CONFIG --libs pangoft2`"
1158 *-lfreetype*) pango_omitted_ft2_deps=no ;;
1159 *) pango_omitted_ft2_deps=yes ;;
1162 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
1164 if test x$enable_shadowfb = xyes ; then
1165 AC_DEFINE(ENABLE_SHADOW_FB)
1168 if test x$enable_fbmanager = xyes ; then
1169 AC_DEFINE(ENABLE_FB_MANAGER)
1170 AM_CONDITIONAL(ENABLE_FB_MANAGER, true)
1172 AM_CONDITIONAL(ENABLE_FB_MANAGER, false)
1176 if test $pango_omitted_ft2_deps = yes ; then
1177 GDK_EXTRA_LIBS="$FREETYPE_LIBS $GDK_EXTRA_LIBS"
1180 AM_CONDITIONAL(USE_LINUX_FB, true)
1182 AM_CONDITIONAL(USE_LINUX_FB, false)
1183 AM_CONDITIONAL(ENABLE_FB_MANAGER, false)
1187 # Pick correct Pango packages to use
1190 if test "x$gdktarget" = "xx11"; then
1191 if $have_xft = true ; then
1192 PANGO_PACKAGES="pangox pangoxft"
1194 PANGO_PACKAGES=pangox
1196 elif test "x$gdktarget" = "xwin32"; then
1197 PANGO_PACKAGES=pangowin32
1198 elif test "x$gdktarget" = "xlinux-fb"; then
1199 PANGO_PACKAGES=pangoft2
1201 PANGO_PACKAGES=pango
1204 # Check for Pango flags
1206 AC_MSG_CHECKING(Pango flags)
1207 if $PKG_CONFIG --exists $PANGO_PACKAGES ; then
1208 PANGO_CFLAGS=`$PKG_CONFIG --cflags $PANGO_PACKAGES`
1209 PANGO_LIBS=`$PKG_CONFIG --libs $PANGO_PACKAGES`
1211 AC_MSG_RESULT($PANGO_CFLAGS $PANGO_LIBS)
1214 *** Pango not found. Pango is required to build GTK+.
1215 *** See http://www.pango.org for Pango information.
1216 *** For the framebuffer target, you will need to build
1217 *** Pango with freetype support.
1221 CFLAGS="$CFLAGS $PANGO_CFLAGS"
1223 if $PKG_CONFIG --uninstalled $PANGO_PACKAGES; then
1226 AC_CHECK_LIB(pango-1.0, pango_context_new, :, AC_MSG_ERROR([
1227 *** Can't link to Pango. Pango is required to build
1228 *** GTK+. For more information see http://www.pango.org]), $PANGO_LIBS)
1231 CFLAGS="$saved_cflags"
1232 LDFLAGS="$saved_ldflags"
1234 GDK_PACKAGES=$PANGO_PACKAGES
1235 GDK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_LIBS"
1236 GDK_DEP_CFLAGS="`$PKG_CONFIG --cflags $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS"
1239 # If we aren't writing explicit dependencies, then don't put the extra libraries we need
1240 # into the pkg-config files
1242 if test $enable_explicit_deps != yes ; then
1246 AC_SUBST(GDK_PACKAGES)
1247 AC_SUBST(GDK_EXTRA_LIBS)
1248 AC_SUBST(GDK_EXTRA_CFLAGS)
1249 AC_SUBST(GDK_DEP_LIBS)
1250 AC_SUBST(GDK_DEP_CFLAGS)
1253 ########################################
1254 # Check for Accessibility Toolkit flags
1255 ########################################
1258 AC_MSG_CHECKING(ATK flags)
1259 if $PKG_CONFIG --exists $ATK_PACKAGES ; then
1260 ATK_CFLAGS=`$PKG_CONFIG --cflags $ATK_PACKAGES`
1261 ATK_LIBS=`$PKG_CONFIG --libs $ATK_PACKAGES`
1263 AC_MSG_RESULT($ATK_CFLAGS $ATK_LIBS)
1266 *** Accessibility Toolkit not found. Accessibility Toolkit is required
1271 if $PKG_CONFIG --uninstalled $ATK_PACKAGES; then
1274 AC_CHECK_LIB(atk-1.0, atk_object_get_type, : , AC_MSG_ERROR([
1275 *** Cannot link to Accessibility Toolkit. Accessibility Toolkit is required
1276 *** to build GTK+]), $ATK_LIBS $GLIB_LIBS)
1282 GTK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GTK_PIXBUF_PACKAGES $GDK_PACKAGES $GTK_PACKAGES` $GTK_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS"
1283 GTK_DEP_CFLAGS="`$PKG_CONFIG --cflags $GTK_PIXBUF_PACKAGES $GDK_PACKAGES $GTK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS $GTK_EXTRA_CFLAGS"
1285 AC_SUBST(GTK_PACKAGES)
1286 AC_SUBST(GTK_EXTRA_LIBS)
1287 AC_SUBST(GTK_EXTRA_CFLAGS)
1288 AC_SUBST(GTK_DEP_LIBS)
1289 AC_SUBST(GTK_DEP_CFLAGS)
1292 AC_SUBST(GTK_DEBUG_FLAGS)
1293 AC_SUBST(GTK_XIM_FLAGS)
1295 ##################################################
1296 # Checks for gtk-doc and docbook-tools
1297 ##################################################
1299 AC_ARG_WITH(html-dir, [ --with-html-dir=PATH path to installed docs ])
1301 if test "x$with_html_dir" = "x" ; then
1302 HTML_DIR='${datadir}/gtk-doc/html'
1304 HTML_DIR=$with_html_dir
1309 AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
1311 gtk_doc_min_version=0.9
1313 gtk_doc_version=`gtkdoc-mkdb --version`
1314 AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version])
1315 if perl <<EOF ; then
1316 exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) &&
1317 ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
1326 AC_CHECK_PROG(DB2HTML, db2html, true, false)
1327 AM_CONDITIONAL(HAVE_DOCBOOK, $DB2HTML)
1329 dnl Make people enable the gtk-doc stuff explicitely.
1330 AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc use gtk-doc to build documentation [default=no]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
1332 if test x$enable_gtk_doc = xyes ; then
1333 if test x$GTKDOC != xtrue ; then
1338 dnl NOTE: We need to use a separate automake conditional for this
1339 dnl to make this work with the tarballs.
1340 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
1343 ##################################################
1345 ##################################################
1347 AC_OUTPUT_COMMANDS([
1349 ## Generate `gdk/gdkconfig.h' in two cases
1350 ## 1. `config.status' is run either explicitly, or via configure.
1351 ## Esp. not when it is run in `Makefile' to generate makefiles and
1353 ## 2. CONFIG_OTHER is set explicitly
1355 ## Case 1 is difficult. We know that `automake' sets one of
1356 ## CONFIG_FILES or CONFIG_HEADERS to empty. This heuristic works
1357 ## only when AM_CONFIG_HEADER is set, however.
1359 if test -n "${CONFIG_FILES}" && test -n "${CONFIG_HEADERS}"; then
1360 # Both CONFIG_FILES and CONFIG_HEADERS are non-empty ==> Case 1
1361 CONFIG_OTHER=${CONFIG_OTHER:-gdk/gdkconfig.h}
1363 case "$CONFIG_OTHER" in
1365 echo creating gdk/gdkconfig.h
1366 outfile=gdkconfig.h-tmp
1367 cat > $outfile <<\_______EOF
1370 * This is a generated file. Please modify `configure.in'
1378 #endif /* __cplusplus */
1382 cat >>$outfile <<_______EOF
1387 cat >>$outfile <<_______EOF
1391 #endif /* __cplusplus */
1393 #endif /* GDKCONFIG_H */
1397 if cmp -s $outfile gdk/gdkconfig.h; then
1398 echo gdk/gdkconfig.h is unchanged
1401 mv $outfile gdk/gdkconfig.h
1405 if test "x$gdktarget" = "xx11" ; then
1407 #define GDK_WINDOWING_X11'
1408 elif test "x$gdktarget" = "xwin32" ; then
1410 #define GDK_WINDOWING_WIN32'
1411 elif test "x$gdktarget" = "xlinux-fb" ; then
1413 #define GDK_WINDOWING_FB
1414 #define GDK_NATIVE_WINDOW_POINTER'
1417 if test x$gdk_wchar_h = xyes; then
1419 #define GDK_HAVE_WCHAR_H 1'
1421 if test x$gdk_wctype_h = xyes; then
1423 #define GDK_HAVE_WCTYPE_H 1"
1425 if test x$gdk_working_wctype = xno; then
1427 #define GDK_HAVE_BROKEN_WCTYPE 1"
1433 AC_PATH_PROG(SGML2HTML, sgml2html, no)
1434 AM_CONDITIONAL(HAVE_SGML2HTML, test x$SGML2HTML != xno)
1444 gdk-pixbuf-2.0-uninstalled.pc
1445 gdk-2.0-uninstalled.pc
1446 gtk+-2.0-uninstalled.pc
1450 build/win32/Makefile
1451 build/win32/dirent/Makefile
1453 demos/gtk-demo/Makefile
1456 docs/reference/Makefile
1457 docs/reference/gdk-pixbuf/Makefile
1458 docs/reference/gdk/Makefile
1459 docs/reference/gtk/Makefile
1461 docs/tutorial/Makefile
1463 gdk-pixbuf/makefile.mingw
1464 gdk-pixbuf/gdk_pixbuf.rc
1465 gdk-pixbuf/gdk-pixbuf-features.h
1466 gdk-pixbuf/pixops/Makefile
1467 gdk-pixbuf/pixops/makefile.mingw
1472 gdk/win32/makefile.mingw
1473 gdk/win32/rc/Makefile
1475 gdk/linux-fb/Makefile
1481 gtk/stock-icons/Makefile
1482 gtk/theme-bits/Makefile
1484 modules/input/Makefile
1486 contrib/gdk-pixbuf-xlib/Makefile
1487 contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-2.0.pc