1m4_define([pkg_version], [1.0.24]) 2#m4_define([pkg_revision], [000]) 3m4_define([pkg_version], m4_ifdef([pkg_revision], [pkg_version.pkg_revision], [pkg_version])) 4 5AC_INIT([e16],[pkg_version],[enlightenment-devel@lists.sourceforge.net]) 6AM_INIT_AUTOMAKE([foreign dist-xz]) 7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 8 9AC_CONFIG_MACRO_DIR([m4]) 10 11AM_CONDITIONAL(SRC_IS_GIT, m4_ifdef([pkg_revision], [test -d $srcdir/.git], [false])) 12 13AC_USE_SYSTEM_EXTENSIONS 14 15AC_PROG_CC 16AM_PROG_CC_C_O 17 18AC_PROG_INSTALL 19 20PKG_PROG_PKG_CONFIG 21 22define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl 23define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl 24define([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])dnl 25AC_ENABLE_SHARED 26AC_DISABLE_STATIC 27LT_INIT([dlopen]) 28 29AC_PATH_X 30AC_PATH_XTRA 31 32AC_CHECK_HEADERS(alloca.h locale.h langinfo.h) 33 34AC_C_BIGENDIAN 35AC_C_CONST 36AC_C_INLINE 37EC_C___ATTRIBUTE__ 38EC_C___FUNC__ 39EC_C_VISIBILITY(yes) 40 41AC_CHECK_SIZEOF(int, 4) 42AC_CHECK_SIZEOF(long, 4) 43AC_CHECK_SIZEOF(wchar_t, 4) 44 45AC_CHECK_FUNCS(strcasecmp strcasestr) 46AC_CHECK_FUNCS(setenv unsetenv) 47AC_CHECK_FUNCS(strdup strndup) 48 49AC_CHECK_FUNCS(blumfrub) 50AC_CHECK_FUNCS(buckets_of_erogenous_nym) 51AC_CHECK_FUNCS(buttox) 52 53AM_ICONV 54 55AM_GNU_GETTEXT([external]) 56AM_GNU_GETTEXT_VERSION([0.19]) 57m4_ifdef([AM_GNU_GETTEXT_REQUIRE_VERSION], [ 58AM_GNU_GETTEXT_REQUIRE_VERSION([0.19]) 59]) 60 61AC_CHECK_FUNCS([clock_gettime], [have_clock_gettime=yes], 62 [AC_CHECK_LIB([rt], [clock_gettime], [have_clock_gettime=-lrt], 63 [have_clock_gettime=no])]) 64if test "x$have_clock_gettime" != xno; then 65 AC_DEFINE(USE_MONOTONIC_CLOCK, 1, [Use monotonic clock from clock_gettime()]) 66 if test "x$have_clock_gettime" != xyes; then 67 AC_SUBST(CLOCK_LIBS, [$have_clock_gettime]) 68 fi 69fi 70 71AC_ARG_ENABLE(hints-gnome, 72 AS_HELP_STRING([--enable-hints-gnome], 73 [compile with GNOME(<2.0) hints support @<:@default=no@:>@]),, 74 enable_hints_gnome=no) 75 76if test "x$enable_hints_gnome" = "xyes"; then 77 AC_DEFINE(ENABLE_GNOME, 1, [GNOME(<2.0) Hints]) 78fi 79AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_hints_gnome" = "xyes") 80 81AC_ARG_WITH(evhan, 82 AS_HELP_STRING([--with-evhan], 83 [select event handling api (poll/select)@<:@default=auto@:>@]),, 84 AC_CHECK_HEADERS(poll.h, with_evhan=poll, with_evhan=select)) 85case "$with_evhan" in 86poll) 87 AC_CHECK_HEADERS(poll.h,, AC_MSG_ERROR([Need poll.h])) 88 AC_DEFINE(USE_EVHAN_POLL, 1, [Use poll as event handler api]) 89 ;; 90select) 91 AC_DEFINE(USE_EVHAN_SELECT, 1, [Use select as event handler api]) 92 ;; 93*) 94 AC_MSG_ERROR([Invalid option: --with-evhan=$with_evhan]) 95 ;; 96esac 97 98AC_ARG_ENABLE(sound, 99 AS_HELP_STRING([--enable-sound], 100 [compile with sound support (select default) (yes/no/pulseaudio/esound/sndio/alsa/player)@<:@default=yes@:>@]), 101 enable_sound="$enableval", 102 enable_sound="yes") 103case "$enable_sound" in 104yes | pulse*) 105 enable_sound_pulse="yes"; enable_sound="pulse" ;; 106esound) enable_sound_esound="yes" ;; 107alsa) enable_sound_alsa="yes" ;; 108sndio) enable_sound_sndio="yes" ;; 109player) enable_sound_player="yes" ;; 110*) 111 enable_sound="no" 112 enable_sound_pulse="no" 113 enable_sound_esound="no" 114 enable_sound_alsa="no" 115 enable_sound_sndio="no" 116 enable_sound_player="no" 117 ;; 118esac 119default_sound_engine="$enable_sound" 120 121if test "x$enable_sound" != "xno"; then 122 AC_DEFINE(ENABLE_SOUND, 1, [Sound support]) 123 AC_DEFINE_UNQUOTED(DEFAULT_SOUND_ENGINE, "$default_sound_engine", [Default sound engine]) 124 enable_sound="yes" 125fi 126AM_CONDITIONAL(ENABLE_SOUND, test "x$enable_sound" = "xyes") 127 128AC_ARG_ENABLE(sound_pulse, 129 AS_HELP_STRING([--enable-sound-pulse], 130 [Enable PulseAudio sound support @<:@default=no@:>@]), 131 enable_sound_pulse="$enableval", 132 enable_sound_pulse="no") 133if test "x$enable_sound_pulse" = "xyes"; then 134 PKG_CHECK_MODULES(PULSE, libpulse, 135 AC_DEFINE(USE_SOUND_PULSE, 1, [PulseAudio sound support]) 136 need_sndldr="yes", 137 enable_sound_pulse="no") 138fi 139AM_CONDITIONAL(USE_SOUND_PULSE, test "x$enable_sound_pulse" = "xyes") 140 141AC_ARG_ENABLE(sound_esound, 142 AS_HELP_STRING([--enable-sound-esound], 143 [Enable EsounD sound support @<:@default=no@:>@]), 144 enable_sound_esound="$enableval", 145 enable_sound_esound="no") 146if test "x$enable_sound_esound" = "xyes"; then 147 AM_PATH_ESD(0.2.17,,[ 148 enable_sound_esound=no 149 AC_MSG_WARN([EsounD sound support was requested but not found.]) 150 ]) 151 if test "x$enable_sound_esound" = "xyes"; then 152 AC_DEFINE(USE_SOUND_ESOUND, 1, [EsounD sound support]) 153 need_sndldr="yes" 154 fi 155fi 156AM_CONDITIONAL(USE_SOUND_ESOUND, test "x$enable_sound_esound" = "xyes") 157 158AC_ARG_ENABLE(sound_alsa, 159 AS_HELP_STRING([--enable-sound-alsa], 160 [Enable ALSA sound support @<:@default=no@:>@]), 161 enable_sound_alsa="$enableval", 162 enable_sound_alsa="no") 163if test "x$enable_sound_alsa" = "xyes"; then 164 PKG_CHECK_MODULES(ALSA, alsa, 165 AC_DEFINE(USE_SOUND_ALSA, 1, [ALSA sound support]) 166 need_sndldr="yes", 167 enable_sound_alsa="no") 168fi 169AM_CONDITIONAL(USE_SOUND_ALSA, test "x$enable_sound_alsa" = "xyes") 170 171AC_ARG_ENABLE(sound_sndio, 172 AS_HELP_STRING([--enable-sound-sndio], 173 [Enable Sndio sound support @<:@default=no@:>@]), 174 enable_sound_sndio="$enableval", 175 enable_sound_sndio="no") 176if test "x$enable_sound_sndio" = "xyes"; then 177 AC_CHECK_HEADERS(sndio.h,, enable_sound_sndio=no 178 AC_MSG_WARN([sndio sound support was requested but not found.])) 179 AC_CHECK_LIB(sndio, sio_open, SNDIO_LIBS="-lsndio", enable_sound_sndio="no") 180 AC_SUBST(SNDIO_LIBS) 181 if test "x$enable_sound_sndio" = "xyes"; then 182 AC_DEFINE(USE_SOUND_SNDIO, 1, [Sndio sound support]) 183 need_sndldr="yes" 184 fi 185fi 186AM_CONDITIONAL(USE_SOUND_SNDIO, test "x$enable_sound_sndio" = "xyes") 187 188AC_ARG_ENABLE(sound_player, 189 AS_HELP_STRING([--enable-sound-player], 190 [Enable playing sounds using audio player @<:@default=yes@:>@]), 191 enable_sound_player="$enableval", 192 enable_sound_player="yes") 193AC_ARG_WITH(sound_player, 194 AS_HELP_STRING([--with-sound-player], 195 [Audio player @<:@default="/usr/bin/aplay -q %s"@:>@]), 196 with_sound_player="$enableval", 197 with_sound_player="/usr/bin/aplay -q %s") 198if test "x$enable_sound_player" = "xyes"; then 199 AC_DEFINE(USE_SOUND_PLAYER, 1, [Play sounds using audio player]) 200 AC_DEFINE_UNQUOTED(SOUND_PLAYER_FMT, "$with_sound_player", [Audio player]) 201fi 202AM_CONDITIONAL(USE_SOUND_PLAYER, test "x$enable_sound_player" = "xyes") 203 204AC_ARG_WITH(sndldr, 205 AS_HELP_STRING([--with-sndldr], 206 [select sound loader (audiofile/sndfile/none) @<:@default=sndfile@:>@]),, 207 with_sndldr=sndfile) 208 209if test "x$with_sndldr" = "xsndfile"; then 210 PKG_CHECK_MODULES(SNDFILE, sndfile, 211 AC_DEFINE(USE_SOUND_LOADER_SNDFILE, 1, [Use sndfile sound loader]), 212 with_sndldr=none) 213fi 214if test "x$with_sndldr" = "xaudiofile"; then 215 PKG_CHECK_MODULES(AUDIOFILE, audiofile, 216 AC_DEFINE(USE_SOUND_LOADER_AUDIOFILE, 1, [Use audiofile sound loader]), 217 with_sndldr=none) 218fi 219 220if test "x$need_sndldr" = "xyes"; then 221 if test "x$with_sndldr" = "xnone"; then 222 AC_MSG_ERROR([Sound support requires a sound loader]) 223 fi 224fi 225AM_CONDITIONAL(USE_SOUND_LOADER, test "x$need_sndldr" = "xyes") 226 227# Save CPPFLAGS/LDFLAGS and add X_... to each 228SAVE_CPPFLAGS="$CPPFLAGS" 229SAVE_LDFLAGS="$LDFLAGS" 230CPPFLAGS="$X_CFLAGS $CPPFLAGS" 231LDFLAGS="$X_LIBS $LDFLAGS" 232 233PKG_CHECK_MODULES(IMLIB2, imlib2 >= 1.2.0, have_good_imlib2=yes) 234AC_CHECK_LIB(Imlib2, imlib_context_set_mask_alpha_threshold, 235 AC_DEFINE(HAVE_IMLIB_CONTEXT_SET_MASK_ALPHA_THRESHOLD, 1, 236 [Imlib2 has imlib_context_set_mask_alpha_threshold]),, 237 $IMLIB2_LIBS) 238AC_CHECK_LIB(Imlib2, imlib_context_disconnect_display, 239 AC_DEFINE(HAVE_IMLIB_CONTEXT_DISCONNECT_DISPLAY, 1, 240 [Imlib2 has imlib_context_disconnect_display]),, 241 $IMLIB2_LIBS) 242AC_CHECK_LIB(Imlib2, imlib_set_ximage_cache_count_max, 243 AC_DEFINE(HAVE_IMLIB_XIMAGE_CACHE_CONTROL, 1, 244 [Imlib2 has XImage cache control functions]),, 245 $IMLIB2_LIBS) 246 247AC_ARG_ENABLE(sm, 248 AS_HELP_STRING([--enable-sm], [compile with session management support @<:@default=yes@:>@]),, 249 enable_sm=yes) 250if test "x$enable_sm" = "xyes"; then 251 PKG_CHECK_MODULES(SM, sm ice, , 252 enable_sm=no 253 AC_MSG_WARN([Session management support was requested but not found]) ) 254fi 255if test "x$enable_sm" = "xyes"; then 256 AC_DEFINE(USE_SM, 1, [Session management support]) 257fi 258 259AC_ARG_ENABLE(pango, 260 AS_HELP_STRING([--enable-pango], [compile with pango-xft support @<:@default=yes@:>@]),, 261 enable_pango=yes) 262if test "x$enable_pango" = "xyes"; then 263 PKG_CHECK_MODULES(PANGO, pangoxft gobject-2.0, AC_DEFINE(USE_PANGO, 1, [pango-xft support]), enable_pango=no) 264fi 265AM_CONDITIONAL(USE_LIBPANGO, test "x$enable_pango" = "xyes") 266 267AC_ARG_ENABLE(xft, 268 AS_HELP_STRING([--enable-xft], [compile with Xft support @<:@default=yes@:>@]),, 269 enable_xft=yes) 270if test "x$enable_xft" = "xyes"; then 271 PKG_CHECK_MODULES(XFT, xft, AC_DEFINE(USE_XFT, 1, [Xft support]), enable_xft=no) 272fi 273AM_CONDITIONAL(USE_LIBXFT, test "x$enable_xft" = "xyes") 274 275AC_ARG_ENABLE(xi2, 276 AS_HELP_STRING([--enable-xi2], [compile with XI2 support (experimental) @<:@default=no@:>@]),, 277 enable_xi2=no) 278if test "x$enable_xi2" = "xyes"; then 279 PKG_CHECK_MODULES(XI, xi >= 1.3, AC_DEFINE(USE_XI2, 1, [XI2 support]), enable_xi2=no) 280fi 281 282AC_ARG_ENABLE(glx, 283 AS_HELP_STRING([--enable-glx], [compile with GLX support (experimental) @<:@default=no@:>@]),, 284 enable_glx=no) 285if test "x$enable_glx" = "xyes"; then 286 PKG_CHECK_MODULES(GLX, gl glu, 287 AC_DEFINE(USE_GLX, 1, [GLX support]) 288 AC_CHECK_LIB(GL, glXBindTexImageEXT, 289 AC_DEFINE(HAVE_GLX_glXBindTexImageEXT, 1, [glXBindTexImageEXT is available]), 290 GLX_LIBS="$GLX_LIBS -ldl"), 291 enable_glx=no 292 AC_MSG_WARN([GL support was requested but not found]) ) 293fi 294AM_CONDITIONAL(ENABLE_GLX, test "x$enable_glx" = "xyes") 295 296AC_CHECK_LIB(Xext, XShapeQueryExtension, 297 E_X_LIBS="-lXext $E_X_LIBS", 298 AC_MSG_ERROR([Shape support is required but was not found]), 299 -lX11) 300 301AC_ARG_ENABLE(xsync, 302 AS_HELP_STRING([--enable-xsync], [compile with SYNC support @<:@default=yes@:>@]),, 303 enable_xsync=yes) 304if test "x$enable_xsync" = "xyes"; then 305 AC_CHECK_LIB(Xext, XSyncQueryExtension, 306 AC_DEFINE(USE_XSYNC, 1, [SYNC support]), 307 enable_xsync=no 308 AC_MSG_WARN([Sync support was requested but not found]), 309 -lX11) 310fi 311 312AC_ARG_ENABLE(xinerama, 313 AS_HELP_STRING([--enable-xinerama], [compile with xinerama support @<:@default=yes@:>@]),, 314 enable_xinerama=yes) 315if test "x$enable_xinerama" = "xyes"; then 316 PKG_CHECK_MODULES(XINERAMA, xinerama, 317 AC_DEFINE(USE_XINERAMA, 1, [Xinerama support]), 318 enable_xinerama=no 319 AC_MSG_WARN([Xinerama support was requested but not found]) ) 320fi 321 322AC_ARG_ENABLE(xscrnsaver, 323 AS_HELP_STRING([--enable-xscrnsaver], 324 [compile with ScreenSaver support (experimental/not useful) @<:@default=no@:>@]),, 325 enable_xscrnsaver=no) 326if test "x$enable_xscrnsaver" = "xyes"; then 327 PKG_CHECK_MODULES(XSCREENSAVER, xscrnsaver, 328 AC_DEFINE(USE_XSCREENSAVER, 1, [ScreenSaver support]), 329 enable_xscrnsaver=no 330 AC_MSG_WARN([ScreenSaver support was requested but not found]) ) 331fi 332 333AC_ARG_ENABLE(xrandr, 334 AS_HELP_STRING([--enable-xrandr], [compile with RandR support @<:@default=yes@:>@]),, 335 enable_xrandr=yes) 336if test "x$enable_xrandr" = "xyes"; then 337 PKG_CHECK_MODULES(XRANDR, xrandr, 338 AC_DEFINE(USE_XRANDR, 1, [RandR support]) 339 PKG_CHECK_EXISTS(xrandr >= 1.2, AC_DEFINE(HAVE_XRANDR_12, 1, [RandR 1.2 support]) 340 have_randr_12=y) 341 PKG_CHECK_EXISTS(xrandr >= 1.3, AC_DEFINE(HAVE_XRANDR_13, 1, [RandR 1.3 support]) 342 have_randr_13=y), 343 enable_xrandr=no 344 AC_MSG_WARN([RandR support was requested but not found]) ) 345fi 346 347AC_ARG_ENABLE(xrender, 348 AS_HELP_STRING([--enable-xrender], [compile with Render support @<:@default=yes@:>@]),, 349 enable_xrender=yes) 350if test "x$enable_xrender" = "xyes"; then 351 PKG_CHECK_MODULES(XRENDER, xrender, 352 AC_DEFINE(USE_XRENDER, 1, [Render support]), 353 enable_xrender=no 354 AC_MSG_WARN([Render support was requested but not found]) ) 355fi 356 357AC_ARG_ENABLE(composite, 358 AS_HELP_STRING([--enable-composite], [compile with Composite support @<:@default=yes@:>@]),, 359 enable_composite=yes) 360if test "x$enable_xrender" != "xyes"; then enable_composite=no; fi 361if test "x$enable_composite" = "xyes"; then 362 PKG_CHECK_MODULES(XCOMPOSITE, xcomposite,, enable_composite=no) 363 PKG_CHECK_MODULES(XDAMAGE, xdamage,, enable_composite=no) 364 PKG_CHECK_MODULES(XFIXES, xfixes,, enable_composite=no) 365 if test "x$enable_composite" = "xyes"; then 366 AC_DEFINE(USE_COMPOSITE, 1, [Composite support]) 367 PKG_CHECK_EXISTS(xcomposite >= 0.3, 368 AC_DEFINE(HAVE_COMPOSITE_OVERLAY_WINDOW, 1, [Composite 0.3 support])) 369 else 370 AC_MSG_WARN([Composite support was requested but required component was not found]) 371 fi 372fi 373AM_CONDITIONAL(ENABLE_COMPOSITE, test "x$enable_composite" = "xyes") 374 375AC_ARG_ENABLE(xpresent, 376 AS_HELP_STRING([--enable-xpresent], [compile with Present support (experimental) @<:@default=no@:>@]),, 377 enable_xpresent=no) 378if test "x$enable_xpresent" = "xyes"; then 379 PKG_CHECK_MODULES(XPRESENT, xpresent, 380 AC_DEFINE(USE_XPRESENT, 1, [Present support]), 381 enable_xpresent=no 382 AC_MSG_WARN([Present support was requested but not found]) ) 383fi 384 385AC_ARG_ENABLE(zoom, 386 AS_HELP_STRING([--enable-zoom], [compile with zoom support @<:@default=yes@:>@]),, 387 enable_zoom=yes) 388if test "x$enable_zoom" = "xyes"; then 389 if test "x$have_randr_13" = "xy"; then 390 enable_zoom=xrandr 391 else 392 enable_zoom=xf86vm 393 fi 394fi 395if test "x$enable_zoom" = "xxf86vm"; then 396 PKG_CHECK_MODULES(XXF86VM, xxf86vm, 397 AC_DEFINE(ENABLE_ZOOM, 1, [Zoom Support]) 398 AC_DEFINE(USE_ZOOM_XF86VM, 1, [Use xf86vm for zooming (deprecated)]), 399 enable_zoom=no 400 AC_MSG_WARN([Zoom support was requested but not found]) ) 401fi 402if test "x$enable_zoom" = "xxrandr"; then 403 if test "x$have_randr_13" = "xy"; then 404 AC_DEFINE(ENABLE_ZOOM, 1, [Zoom Support]) 405 else 406 enable_zoom=no 407 AC_MSG_WARN([Zoom support was requested but not found]) 408 fi 409fi 410AM_CONDITIONAL(ENABLE_ZOOM, test "x$enable_zoom" != "xno") 411 412AC_ARG_ENABLE(dbus, 413 AS_HELP_STRING([--enable-dbus], [compile with D-Bus support (experimental) @<:@default=no@:>@]),, 414 enable_dbus=no) 415if test "x$enable_dbus" = "xyes"; then 416 PKG_CHECK_MODULES(DBUS, dbus-1, AC_DEFINE(USE_DBUS, 1, [dbus support]), enable_dbus=no) 417fi 418AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes") 419 420AC_CHECK_LIB(Fridge,mass_quantities_of_bass_ale) 421AC_CHECK_LIB(Fridge,mass_quantities_of_any_ale,, [ 422 echo "Warning: No ales were found in your refrigerator." 423 echo " We highly suggest that you rectify this situation immediately." 424]) 425 426# GNOME session support 427AC_ARG_WITH(gnome, 428 AS_HELP_STRING([--with-gnome], [compile with gnome support @<:@default=auto@:>@]),, 429 with_gnome=auto) 430if test "x$with_gnome" = "xauto"; then 431 with_gnome2=yes 432 with_gnome3=yes 433fi 434if test "x$with_gnome" = "xgnome2"; then 435 with_gnome2=yes 436fi 437if test "x$with_gnome" = "xgnome3"; then 438 with_gnome3=yes 439fi 440AM_CONDITIONAL(WITH_GNOME2, test "x$with_gnome2" = "xyes") 441AM_CONDITIONAL(WITH_GNOME3, test "x$with_gnome3" = "xyes") 442 443# Restore CPPFLAGS/LDFLAGS 444CPPFLAGS="$SAVE_CPPFLAGS" 445LDFLAGS="$SAVE_LDFLAGS" 446 447AC_ARG_ENABLE(libhack, 448 AS_HELP_STRING([--enable-libhack], [build window mode helper library @<:@default=yes@:>@]),, 449 enable_libhack=yes) 450if test "x$enable_libhack" = "xyes"; then 451 AC_SUBST(DLOPEN_LIBS) 452fi 453if test "x$enable_libhack" = "xyes"; then 454 AC_DEFINE(USE_LIBHACK, 1, [Use window mode helper library]) 455fi 456AM_CONDITIONAL(BUILD_LIBHACK, test "x$enable_libhack" = "xyes") 457 458AC_ARG_ENABLE(libtrip, 459 AS_HELP_STRING([--enable-libtrip], [build debug library @<:@default=no@:>@]),, 460 enable_libtrip=no) 461AC_CHECK_HEADERS(execinfo.h,, enable_libtrip=no) 462AC_CHECK_FUNCS(backtrace backtrace_symbols,, enable_libtrip=no) 463AM_CONDITIONAL(BUILD_LIBTRIP, test "x$enable_libtrip" = "xyes") 464 465AC_ARG_ENABLE(modules, 466 AS_HELP_STRING([--enable-modules], [enable support for loadable modules @<:@default=no@:>@]),, 467 enable_modules=no) 468if test "x$enable_modules" = "xyes"; then 469 AC_SUBST(DLOPEN_LIBS) 470fi 471if test "x$enable_modules" = "xyes"; then 472 AC_DEFINE(USE_MODULES, 1, [Loadable module support]) 473fi 474AM_CONDITIONAL(BUILD_MODULES, test "x$enable_modules" = "xyes") 475 476AC_ARG_ENABLE(dialogs, 477 AS_HELP_STRING([--enable-dialogs], 478 [enable support for configuration dialogs @<:@default=yes@:>@]),, 479 enable_dialogs=yes) 480if test "x$enable_dialogs" = "xyes"; then 481 AC_DEFINE(ENABLE_DIALOGS, 1, [Configuration dialog support]) 482fi 483 484AC_ARG_ENABLE(container, 485 AS_HELP_STRING([--enable-container], 486 [use container window (experimental) @<:@default=yes@:>@]),, 487 enable_container=yes) 488if test "x$enable_container" = "xyes"; then 489 AC_DEFINE(USE_CONTAINER_WIN, 1, [Use container window]) 490fi 491 492AM_MISSING_PROG(XMLTO, xmlto) 493AC_ARG_ENABLE(mans, 494 AS_HELP_STRING([--enable-mans], [install man page @<:@default=yes@:>@]),, 495 enable_mans=yes) 496AM_CONDITIONAL([INSTALL_MANS], [test "x$enable_mans" = "xyes"]) 497AC_ARG_ENABLE(docs, 498 AS_HELP_STRING([--enable-docs], [install html docs @<:@default=yes@:>@]),, 499 enable_docs=yes) 500AM_CONDITIONAL([INSTALL_DOCS], [test "x$enable_docs" = "xyes"]) 501 502AC_ARG_ENABLE(gcc-cpp, 503 AS_HELP_STRING([--enable-gcc-cpp], [compile everything as if it were C++ @<:@default=no@:>@]),, 504 enable_gcc_cpp=no) 505if test "x$enable_gcc_cpp" = "xyes"; then 506 CC="g++" 507 CPPFLAGS="$CPPFLAGS -x c++" 508 EC_C_WARNINGS([cpp]) 509else 510 EC_C_WARNINGS() 511fi 512 513EC_C_ASAN() 514 515AC_DEFINE(USE_EXT_INIT_WIN, 1, [Use external init window during restart]) 516 517AC_DEFINE(ENABLE_DESKRAY, 0, [Enable deskrays (not functional)]) 518 519AC_SUBST(E_X_LIBS) 520 521AC_CONFIG_HEADERS([config.h]) 522AC_CONFIG_FILES([ 523Makefile 524src/Makefile 525dox/Makefile 526dox/E-docs/Makefile 527eesh/Makefile 528epp/Makefile 529lib/Makefile 530config/Makefile 531icons/Makefile 532pix/Makefile 533themes/Makefile 534fonts/Makefile 535scripts/Makefile 536misc/Makefile 537docs/Makefile 538po/Makefile.in 539]) 540AC_OUTPUT 541 542if test "x$have_good_imlib2" != "xyes"; then 543 echo "***************************************************************" 544 echo "*** WARNING: imlib2 >= 1.2.0 was not detected ***" 545 echo "*** WARNING: If you indeed do not have this, expect trouble ***" 546 echo "***************************************************************" 547fi 548 549echo 550echo "------------------------------------------------------------------------" 551echo "$PACKAGE Version $VERSION" 552echo "------------------------------------------------------------------------" 553echo 554echo "Configuration summary" 555echo 556echo "Support for" 557echo " Localisation ................. $USE_NLS" 558echo " Sound ........................ $enable_sound" 559if test "x$enable_sound" = "xyes"; then 560echo " Default .................... $default_sound_engine" 561echo " pulseaudio ................. $enable_sound_pulse" 562echo " esound ..................... $enable_sound_esound" 563echo " alsa ....................... $enable_sound_alsa" 564echo " sndio ...................... $enable_sound_sndio" 565echo " player ..................... $enable_sound_player ($with_sound_player)" 566echo " Sound loader ................. $with_sndldr" 567fi 568echo " Old GNOME hints .............. $enable_hints_gnome" 569echo " Session management ........... $enable_sm" 570echo " Zoom ......................... $enable_zoom" 571echo " Pango ........................ $enable_pango" 572echo " Xft .......................... $enable_xft" 573echo " Xinerama ..................... $enable_xinerama" 574echo " RandR ........................ $enable_xrandr" 575echo " Render ....................... $enable_xrender" 576echo " Sync ......................... $enable_xsync" 577echo " Composite .................... $enable_composite" 578echo " GNOME session support ........ $with_gnome" 579echo " Window mode helper library ... $enable_libhack" 580echo " Dialogs ...................... $enable_dialogs" 581echo 582echo "Miscellaneous options" 583echo " Event handler API ............ $with_evhan" 584echo " Use Modules .................. $enable_modules" 585echo " Visibility hiding ............ $enable_visibility_hiding (only useful with modules)" 586echo 587echo "Experimental options - DO NOT USE unless you know what you are doing" 588echo " GLX .......................... $enable_glx" 589echo " ScreenSaver .................. $enable_xscrnsaver" 590echo " D-Bus ........................ $enable_dbus" 591echo " XI2 .......................... $enable_xi2" 592echo " Present....................... $enable_xpresent" 593echo " Use container window ......... $enable_container" 594echo 595echo "Installation path .............. $prefix" 596echo " Install HTML docs ............ $enable_docs" 597echo " Install man page ............. $enable_mans" 598echo 599echo "Compilation .................... make" 600echo "Installation ................... make install" 601echo 602