175
175
[enable_multimon="$enableval"],
176
176
[enable_multimon="yes"])
182
[disables Unity, enabled by default]),
183
[enable_unity="$enableval"],
184
[enable_unity="yes"])
385
if test "$os" = "linux"; then
387
[AS_HELP_STRING([--without-pam],
388
[compiles without PAM support.])],
373
[AS_HELP_STRING([--without-pam],
374
[compiles without PAM support.])],
392
if test "$with_pam" = "yes"; then
393
AC_VMW_DEFAULT_FLAGS([PAM])
394
AC_VMW_CHECK_LIB([pam],
399
[security/pam_appl.h],
401
[PAM_CPPFLAGS="$PAM_CPPFLAGS -DUSE_PAM"],
402
[AC_VMW_LIB_ERROR([PAM], [pam])])
378
if test "$with_pam" = "yes"; then
379
AC_VMW_DEFAULT_FLAGS([PAM])
380
AC_VMW_CHECK_LIB([pam],
385
[security/pam_appl.h],
387
[PAM_CPPFLAGS="$PAM_CPPFLAGS -DUSE_PAM"],
388
[AC_VMW_LIB_ERROR([PAM], [pam])])
429
414
# If the user explicitly disables X11, then don't try to detect the X-related libraries
430
415
if test "$have_x" = "disabled"; then
431
416
enable_multimon="no"
433
417
elif test "$have_x" != "yes"; then
435
419
[The X11 libraries were not found. Please configure without X11 (using --without-x), or install the libX11 devel package(s).])
462
446
[libXinerama not found. Please configure without multimon (using --disable-multimon), configure without X11 (using --without-x), or install the libXinerama devel package(s).])],
465
if test "$enable_unity" != "no"; then
466
AC_MSG_WARN([Disabling Unity due to --disable-multimon.])
529
508
have_xcomposite="yes"
532
# If we're building with support for Unity, we'll need a few additional
534
if test "$enable_unity" != "no"; then
535
# Unity needs the X11 Screen Saver extension library. It should be
536
# in the same place as the X11 libraries, so no need for any fancy
538
AC_VMW_CHECK_X11_LIB(
540
[X11/extensions/scrnsaver.h],
541
[XScreenSaverQueryExtension],
542
[AC_MSG_ERROR([libXss or headers not found. Please configure without Unity (using --disable-unity) or install the libXss devel package.])])
544
# Check for the uriparser library and headers. The upstream uriparser
545
# doesn't appear to ship with either a pkg-config file or a
546
# uriparser-config binary, so we'll look for it the old-fashioned
549
# Note that we look for uriFreeQueryListA because it's a relatively
550
# new symbol that our code needs (it isn't present in the uriparser
551
# that shipped with Ubuntu Hardy).
552
AC_VMW_DEFAULT_FLAGS([URIPARSER], [uriparser])
553
AC_VMW_CHECK_LIB([uriparser],
561
[AC_MSG_ERROR([uriparser library not found or is too old. Please configure without Unity (using --disable-unity) or install the liburiparser devel package.])])
564
AC_VMW_CHECK_LIB([png12],
570
[png_access_version_number],
572
[AC_MSG_ERROR([libpng not found. Please configure without Unity (using --disable-unity) or install the libpng devel package])])
574
# Check for the zlib library and headers. Like uriparser, there
575
# isn't a pkg-config or zlib-config file.
576
AC_VMW_DEFAULT_FLAGS([ZLIB])
577
AC_VMW_CHECK_LIB([z],
585
[AC_MSG_ERROR([zlib library not found. Please configure without Unity (using --disable-unity) or install the zlib devel package.])])
587
# Check for gio 2.24.
588
AC_VMW_CHECK_LIB([gio-2.0],
594
[g_desktop_app_info_get_filename],
596
[AC_MSG_ERROR([GLib/GIO 2.24+ not found. Please configure without Unity (using --disable-unity) or upgrade the Glib devel package.])])
597
fi # End of library checks for Unity.
599
511
# Check whether we have gtk+ 2.0.
600
512
if test "$with_gtk2" != "no"; then
601
513
# gdk_display_get_default_group (added in gtk+ 2.4.0) is function currently
609
521
[gdk_display_get_default_group],
610
522
[GTK_CPPFLAGS="$GTK_CPPFLAGS -DGTK2"],
611
523
[AC_MSG_ERROR([Gtk+ 2.0 library not found or too old. Please configure without Gtk+ support (using --without-gtk2) or install the Gtk+ 2.0 devel package.])])
613
# Unity requires libgdk_pixbuf_xlib, which most systems don't seem to
614
# provide via "pkg-config --libs gtk+-2.0".
615
if test "$enable_unity" != "no"; then
617
[gdk_pixbuf_xlib-2.0],
618
[gdk_pixbuf_xlib_init],
619
[GTK_LIBS="$GTK_LIBS -lgdk_pixbuf_xlib-2.0"],
620
[AC_MSG_ERROR([gdk_pixbuf_xlib-2.0 not found. Make sure your Gtk 2.0 installation is sane, or configure without Unity (using --disable-unity).])],
941
852
CFLAGS="$ORIGINAL_CFLAGS$NEW_CFLAG"
943
854
CPPFLAGS="$CPPFLAGS -DVMX86_TOOLS"
944
CPPFLAGS="$CPPFLAGS -DNO_CORE_ICU"
946
857
# -fvisibility is used by "core service" plugins, but not required.
947
858
ORIGINAL_CFLAGS="$CFLAGS"
954
865
[AC_MSG_RESULT(no)])
955
866
CFLAGS="$ORIGINAL_CFLAGS"
868
# Detect "unused-but-set-variable" gcc warning and disable it.
869
ORIGINAL_CFLAGS="$CFLAGS"
870
CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
871
AC_MSG_CHECKING([for GCC flag -Wno-unused-but-set-variable])
874
[ORIGINAL_CFLAGS="$ORIGINAL_CFLAGS -Wno-unused-but-set-variable";
877
CFLAGS="$ORIGINAL_CFLAGS"
959
882
INCLUDE_DIR="`cd $srcdir; pwd`/lib/include"
1100
1024
AM_CONDITIONAL(WITH_KERNEL_MODULES, test "$with_kernel_modules" = "yes")
1101
1025
AM_CONDITIONAL(HAVE_XSM, test "$have_xsm" = "yes")
1102
1026
AM_CONDITIONAL(HAVE_XCOMPOSITE, test "$have_xcomposite" = "yes")
1103
AM_CONDITIONAL(ENABLE_UNITY, test "$enable_unity" = "yes")
1104
1027
AM_CONDITIONAL(ENABLE_TESTS, test "$have_cunit" = "yes")
1105
1028
AM_CONDITIONAL(WITH_ROOT_PRIVILEGES, test "$with_root_privileges" = "yes")
1106
1029
AM_CONDITIONAL(HAVE_DNET, test "$have_dnet" = "yes")
1110
1033
AM_CONDITIONAL(HAVE_GTKMM, test "$have_x" = "yes" -a "$with_gtkmm" = "yes")
1111
1034
AM_CONDITIONAL(HAVE_PAM, test "$with_pam" = "yes")
1112
1035
AM_CONDITIONAL(USE_SLASH_PROC, test "os" = "linux" -a "$have_glib_2_14" = "yes")
1036
AM_CONDITIONAL(USE_PRINTF_WRAPPERS, test "$bsdPrintfWrappers" = "yes")
1114
1038
if test "$have_xsm" != "yes"; then
1115
1039
AC_DEFINE([NO_XSM], 1, [])
1272
1194
services/plugins/powerOps/Makefile \
1273
1195
services/plugins/resolutionSet/Makefile \
1274
1196
services/plugins/timeSync/Makefile \
1275
services/plugins/unity/Makefile \
1276
1197
services/plugins/vix/Makefile \
1277
1198
services/plugins/vmbackup/Makefile \
1278
1199
vmware-user-suid-wrapper/Makefile \