diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/configure.in b/configure.in index e3ee2aa..914c656 100644 --- a/configure.in +++ b/configure.in | |||
@@ -334,11 +334,12 @@ AS_IF(test "x$XFT" = "xtrue",[ | |||
334 | [ | 334 | [ |
335 | 335 | ||
336 | AC_DEFINE(USE_XFT, 1, "antialias support") | 336 | AC_DEFINE(USE_XFT, 1, "antialias support") |
337 | AC_MSG_CHECKING([Xft UTF-8 support]) | 337 | AC_MSG_CHECKING([Xft UTF-8 support]) |
338 | AC_TRY_LINK([ | 338 | AC_TRY_LINK([ |
339 | #include <X11/Xft/Xft.h> | 339 | #include <X11/Xft/Xft.h> |
340 | ], [ XftDrawStringUtf8(0, 0, 0, 0, 0, 0, 0); return 0; ], | 340 | ], [ XftDrawStringUtf8(0, 0, 0, 0, 0, 0, 0); return 0; ], |
341 | AC_DEFINE(HAVE_XFT_UTF8_STRING, 1, "Xft UTF8 support") | 341 | AC_DEFINE(HAVE_XFT_UTF8_STRING, 1, "Xft UTF8 support") |
342 | FEATURES="$FEATURES XFT" | ||
342 | AC_MSG_RESULT(yes), | 343 | AC_MSG_RESULT(yes), |
343 | AC_MSG_RESULT(no) | 344 | AC_MSG_RESULT(no) |
344 | ) | 345 | ) |
@@ -350,9 +351,9 @@ AS_IF(test "x$XFT" = "xtrue",[ | |||
350 | AM_CONDITIONAL(XFT, test "x$XFT" = "xtrue") | 351 | AM_CONDITIONAL(XFT, test "x$XFT" = "xtrue") |
351 | 352 | ||
352 | 353 | ||
353 | AC_MSG_CHECKING([whether to have Xrender (transparent) support]) | 354 | AC_MSG_CHECKING([whether to have XRENDER (transparent) support]) |
354 | AC_ARG_ENABLE(xrender, | 355 | AC_ARG_ENABLE(xrender, |
355 | AS_HELP_STRING([--enable-xrender],[Xrender (transparent) support (default=yes)]),,[enable_xrender=yes]) | 356 | AS_HELP_STRING([--enable-xrender],[XRENDER (transparent) support (default=yes)]),,[enable_xrender=yes]) |
356 | AC_MSG_RESULT([$enable_xrender]) | 357 | AC_MSG_RESULT([$enable_xrender]) |
357 | AS_IF(test "x$enable_xrender" = "xyes",[ | 358 | AS_IF(test "x$enable_xrender" = "xyes",[ |
358 | AC_CHECK_LIB(Xrender, XRenderCreatePicture, | 359 | AC_CHECK_LIB(Xrender, XRenderCreatePicture, |
@@ -362,9 +363,9 @@ AS_IF(test "x$enable_xrender" = "xyes",[ | |||
362 | 363 | ||
363 | 364 | ||
364 | XPM=false | 365 | XPM=false |
365 | AC_MSG_CHECKING([whether to have Xpm (pixmap themes) support]) | 366 | AC_MSG_CHECKING([whether to have XPM (pixmap themes) support]) |
366 | AC_ARG_ENABLE(xpm, | 367 | AC_ARG_ENABLE(xpm, |
367 | AS_HELP_STRING([--enable-xpm],[Xpm (pixmap themes) support (default=yes)]),[],[enable_xpm=yes]) | 368 | AS_HELP_STRING([--enable-xpm],[XPM (pixmap themes) support (default=yes)]),[],[enable_xpm=yes]) |
368 | AC_MSG_RESULT([$enable_xpm]) | 369 | AC_MSG_RESULT([$enable_xpm]) |
369 | AS_IF(test "x$enable_xpm" = "xyes",[ | 370 | AS_IF(test "x$enable_xpm" = "xyes",[ |
370 | AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, | 371 | AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, |
@@ -377,9 +378,9 @@ AM_CONDITIONAL(XPM, test "x$XPM" = "xtrue") | |||
377 | 378 | ||
378 | dnl Check whether to use imlib2 | 379 | dnl Check whether to use imlib2 |
379 | IMLIB2=false | 380 | IMLIB2=false |
380 | AC_MSG_CHECKING([whether to have Imlib2 (pixmap themes) support]) | 381 | AC_MSG_CHECKING([whether to have IMLIB2 (pixmap themes) support]) |
381 | AC_ARG_ENABLE(imlib2, | 382 | AC_ARG_ENABLE(imlib2, |
382 | AS_HELP_STRING([--enable-imlib2], [Imlib2 (pixmap themes) support (default=yes)]), , [enable_imlib2=yes]) | 383 | AS_HELP_STRING([--enable-imlib2], [IMLIB2 (pixmap themes) support (default=yes)]), , [enable_imlib2=yes]) |
383 | AC_MSG_RESULT([$enable_imlib2]) | 384 | AC_MSG_RESULT([$enable_imlib2]) |
384 | AS_IF(test x$enable_imlib2 = "xyes",[ | 385 | AS_IF(test x$enable_imlib2 = "xyes",[ |
385 | AC_PATH_GENERIC(imlib2, 1.0.0,[ | 386 | AC_PATH_GENERIC(imlib2, 1.0.0,[ |
@@ -387,6 +388,7 @@ AS_IF(test x$enable_imlib2 = "xyes",[ | |||
387 | AC_DEFINE(HAVE_IMLIB2, [], [Imlib2 support]) | 388 | AC_DEFINE(HAVE_IMLIB2, [], [Imlib2 support]) |
388 | LIBS="$IMLIB2_LIBS $LIBS" | 389 | LIBS="$IMLIB2_LIBS $LIBS" |
389 | CXXFLAGS="$CXXFLAGS $IMLIB2_CFLAGS" | 390 | CXXFLAGS="$CXXFLAGS $IMLIB2_CFLAGS" |
391 | FEATURES="$FEATURES IMLIB2" | ||
390 | ], [] | 392 | ], [] |
391 | )],[]) | 393 | )],[]) |
392 | 394 | ||
@@ -394,17 +396,17 @@ AM_CONDITIONAL(IMLIB2, test "x$IMLIB2" = "xtrue") | |||
394 | 396 | ||
395 | 397 | ||
396 | 398 | ||
397 | AC_MSG_CHECKING([whether to have Xmb (multibyte font, utf-8) support]) | 399 | AC_MSG_CHECKING([whether to have XMB (multibyte font, utf-8) support]) |
398 | AC_ARG_ENABLE(xmb, AS_HELP_STRING([--enable-xmb],[Xmb (multibyte font, utf-8) support (default=yes)]),,[enable_xmb=yes]) | 400 | AC_ARG_ENABLE(xmb, AS_HELP_STRING([--enable-xmb],[XMB (multibyte font, utf-8) support (default=yes)]),,[enable_xmb=yes]) |
399 | AC_MSG_RESULT([$enable_xmb]) | 401 | AC_MSG_RESULT([$enable_xmb]) |
400 | AS_IF([test "x$enable_xmb" = "xyes"],[ AC_DEFINE(USE_XMB, 1, "multibyte support")], []) | 402 | AS_IF([test "x$enable_xmb" = "xyes"],[ AC_DEFINE(USE_XMB, 1, "multibyte support")], []) |
401 | AM_CONDITIONAL(MULTIBYTE, test "x$enable_xmb" = "xyes") | 403 | AM_CONDITIONAL(MULTIBYTE, test "x$enable_xmb" = "xyes") |
402 | 404 | ||
403 | 405 | ||
404 | dnl Check for Xinerama support and proper library files. | 406 | dnl Check for Xinerama support and proper library files. |
405 | AC_MSG_CHECKING([whether to build support for the Xinerama extension]) | 407 | AC_MSG_CHECKING([whether to build support for the XINERAMA extension]) |
406 | AC_ARG_ENABLE(xinerama, | 408 | AC_ARG_ENABLE(xinerama, |
407 | AS_HELP_STRING([--enable-xinerama], [enable support of the Xinerama extension (default=yes)]), ,[enable_xinerama=yes]) | 409 | AS_HELP_STRING([--enable-xinerama], [XINERAMA extension support (default=yes)]), ,[enable_xinerama=yes]) |
408 | 410 | ||
409 | AS_IF(test "x$enable_xinerama" = "xyes",[ | 411 | AS_IF(test "x$enable_xinerama" = "xyes",[ |
410 | AC_CHECK_LIB(Xinerama, XineramaQueryScreens, | 412 | AC_CHECK_LIB(Xinerama, XineramaQueryScreens, |
@@ -416,16 +418,17 @@ AS_IF(test "x$enable_xinerama" = "xyes",[ | |||
416 | , XineramaQueryScreens(0, 0), | 418 | , XineramaQueryScreens(0, 0), |
417 | AC_MSG_RESULT([yes]) | 419 | AC_MSG_RESULT([yes]) |
418 | AC_DEFINE(XINERAMA, [1], [Define to 1 if you have XINERAMA]) | 420 | AC_DEFINE(XINERAMA, [1], [Define to 1 if you have XINERAMA]) |
419 | LIBS="-lXinerama $LIBS", | 421 | LIBS="-lXinerama $LIBS" |
422 | FEATURES="$FEATURES XINERAMA", | ||
420 | AC_MSG_RESULT([no])))],[ | 423 | AC_MSG_RESULT([no])))],[ |
421 | AC_MSG_RESULT([no]) | 424 | AC_MSG_RESULT([no]) |
422 | CONFIGOPTS="$CONFIGOPTS --disable-xinerama"]) | 425 | CONFIGOPTS="$CONFIGOPTS --disable-xinerama"]) |
423 | 426 | ||
424 | 427 | ||
425 | dnl Check for XShape extension support and proper library files. | 428 | dnl Check for XShape extension support and proper library files. |
426 | AC_MSG_CHECKING([whether to build support for the XShape extension]) | 429 | AC_MSG_CHECKING([whether to build support for the XSHAPE extension]) |
427 | AC_ARG_ENABLE(shape, | 430 | AC_ARG_ENABLE(shape, |
428 | AS_HELP_STRING([--enable-shape], [enable support of the XShape extension (default=yes)]), , [enable_shape=yes]) | 431 | AS_HELP_STRING([--enable-shape], [XSHAPE extension support (default=yes)]), , [enable_shape=yes]) |
429 | AS_IF(test "x$enable_shape" = "xyes",[ | 432 | AS_IF(test "x$enable_shape" = "xyes",[ |
430 | AC_CHECK_LIB(Xext, XShapeCombineShape, | 433 | AC_CHECK_LIB(Xext, XShapeCombineShape, |
431 | AC_MSG_CHECKING([for X11/extensions/shape.h]) | 434 | AC_MSG_CHECKING([for X11/extensions/shape.h]) |
@@ -437,7 +440,7 @@ AS_IF(test "x$enable_shape" = "xyes",[ | |||
437 | AC_MSG_RESULT([yes]) | 440 | AC_MSG_RESULT([yes]) |
438 | AC_DEFINE(SHAPE, [1], [Define to 1 if you have SHAPE]) | 441 | AC_DEFINE(SHAPE, [1], [Define to 1 if you have SHAPE]) |
439 | LIBS="-lXext $LIBS" | 442 | LIBS="-lXext $LIBS" |
440 | FEATURES="$FEATURES XShape", | 443 | FEATURES="$FEATURES SHAPE", |
441 | AC_MSG_RESULT([no])))],[ | 444 | AC_MSG_RESULT([no])))],[ |
442 | AC_MSG_RESULT([no]) | 445 | AC_MSG_RESULT([no]) |
443 | CONFIGOPTS="$CONFIGOPTS --disable-shape"]) | 446 | CONFIGOPTS="$CONFIGOPTS --disable-shape"]) |
@@ -652,15 +655,21 @@ dnl Print results | |||
652 | AC_MSG_RESULT([]) | 655 | AC_MSG_RESULT([]) |
653 | AC_MSG_RESULT([ $PACKAGE version $VERSION configured successfully.]) | 656 | AC_MSG_RESULT([ $PACKAGE version $VERSION configured successfully.]) |
654 | AC_MSG_RESULT([]) | 657 | AC_MSG_RESULT([]) |
655 | AC_MSG_RESULT([Using '$prefix' for installation.]) | 658 | AC_MSG_RESULT([Features:]) |
656 | AC_MSG_RESULT([Using '$DEFAULT_MENU' for location menu file.]) | 659 | AC_MSG_RESULT([ $FEATURES]) |
657 | AC_MSG_RESULT([Using '$DEFAULT_STYLE' by default style.]) | 660 | AC_MSG_RESULT([]) |
658 | AC_MSG_RESULT([Using '$DEFAULT_KEYS' for location keys file.]) | 661 | AC_MSG_RESULT([Using:]) |
659 | AC_MSG_RESULT([Using '$DEFAULT_INIT' for location init file.]) | 662 | AC_MSG_RESULT([ '$prefix' for installation.]) |
660 | AC_MSG_RESULT([Using '$LOCALE_PATH' for nls files.]) | 663 | AC_MSG_RESULT([ '$DEFAULT_MENU' for location menu file.]) |
661 | AC_MSG_RESULT([Using '$CXX' for C++ compiler.]) | 664 | AC_MSG_RESULT([ '$DEFAULT_STYLE' by default style.]) |
662 | AC_MSG_RESULT([Building with '$CXXFLAGS' for C++ compiler flags.]) | 665 | AC_MSG_RESULT([ '$DEFAULT_KEYS' for location keys file.]) |
663 | AC_MSG_RESULT([Building with '$LIBS' for linker flags.]) | 666 | AC_MSG_RESULT([ '$DEFAULT_INIT' for location init file.]) |
667 | AC_MSG_RESULT([ '$LOCALE_PATH' for nls files.]) | ||
668 | AC_MSG_RESULT([ '$CXX' for C++ compiler.]) | ||
669 | AC_MSG_RESULT([]) | ||
670 | AC_MSG_RESULT([Building with:]) | ||
671 | AC_MSG_RESULT([ '$CXXFLAGS' for C++ compiler flags.]) | ||
672 | AC_MSG_RESULT([ '$LIBS' for linker flags.]) | ||
664 | AC_MSG_RESULT([]) | 673 | AC_MSG_RESULT([]) |
665 | AC_MSG_RESULT([Now build $PACKAGE with 'make']) | 674 | AC_MSG_RESULT([Now build $PACKAGE with 'make']) |
666 | AC_MSG_RESULT([]) | 675 | AC_MSG_RESULT([]) |