55 AC_MSG_CHECKING([what is not needed on Windows?]) |
55 AC_MSG_CHECKING([what is not needed on Windows?]) |
56 CUPS_NOT_NEEDED=yes |
56 CUPS_NOT_NEEDED=yes |
57 ALSA_NOT_NEEDED=yes |
57 ALSA_NOT_NEEDED=yes |
58 PULSE_NOT_NEEDED=yes |
58 PULSE_NOT_NEEDED=yes |
59 X11_NOT_NEEDED=yes |
59 X11_NOT_NEEDED=yes |
|
60 FONTCONFIG_NOT_NEEDED=yes |
60 AC_MSG_RESULT([alsa cups pulse x11]) |
61 AC_MSG_RESULT([alsa cups pulse x11]) |
61 fi |
62 fi |
62 |
63 |
63 if test "x$OPENJDK_TARGET_OS" = xmacosx; then |
64 if test "x$OPENJDK_TARGET_OS" = xmacosx; then |
64 AC_MSG_CHECKING([what is not needed on MacOSX?]) |
65 AC_MSG_CHECKING([what is not needed on MacOSX?]) |
65 ALSA_NOT_NEEDED=yes |
66 ALSA_NOT_NEEDED=yes |
66 PULSE_NOT_NEEDED=yes |
67 PULSE_NOT_NEEDED=yes |
67 X11_NOT_NEEDED=yes |
68 X11_NOT_NEEDED=yes |
|
69 FONTCONFIG_NOT_NEEDED=yes |
68 AC_MSG_RESULT([alsa pulse x11]) |
70 AC_MSG_RESULT([alsa pulse x11]) |
69 fi |
71 fi |
70 |
72 |
71 if test "x$OPENJDK_TARGET_OS" = xbsd; then |
73 if test "x$OPENJDK_TARGET_OS" = xbsd; then |
72 AC_MSG_CHECKING([what is not needed on bsd?]) |
74 AC_MSG_CHECKING([what is not needed on bsd?]) |
701 |
703 |
702 AC_SUBST(ALSA_CFLAGS) |
704 AC_SUBST(ALSA_CFLAGS) |
703 AC_SUBST(ALSA_LIBS) |
705 AC_SUBST(ALSA_LIBS) |
704 ]) |
706 ]) |
705 |
707 |
|
708 ################################################################################ |
|
709 # Setup fontconfig |
|
710 ################################################################################ |
|
711 AC_DEFUN_ONCE([LIB_SETUP_FONTCONFIG], |
|
712 [ |
|
713 AC_ARG_WITH(fontconfig, [AS_HELP_STRING([--with-fontconfig], |
|
714 [specify prefix directory for the fontconfig package |
|
715 (expecting the headers under PATH/include)])]) |
|
716 AC_ARG_WITH(fontconfig-include, [AS_HELP_STRING([--with-fontconfig-include], |
|
717 [specify directory for the fontconfig include files])]) |
|
718 |
|
719 if test "x$FONTCONFIG_NOT_NEEDED" = xyes; then |
|
720 if (test "x${with_fontconfig}" != x && test "x${with_fontconfig}" != xno) || \ |
|
721 (test "x${with_fontconfig_include}" != x && test "x${with_fontconfig_include}" != xno); then |
|
722 AC_MSG_WARN([[fontconfig not used, so --with-fontconfig[-*] is ignored]]) |
|
723 fi |
|
724 FONTCONFIG_CFLAGS= |
|
725 else |
|
726 FONTCONFIG_FOUND=no |
|
727 |
|
728 if test "x${with_fontconfig}" = xno || test "x${with_fontconfig_include}" = xno; then |
|
729 AC_MSG_ERROR([It is not possible to disable the use of fontconfig. Remove the --without-fontconfig option.]) |
|
730 fi |
|
731 |
|
732 if test "x${with_fontconfig}" != x; then |
|
733 AC_MSG_CHECKING([for fontconfig headers]) |
|
734 if test -s "${with_fontconfig}/include/fontconfig/fontconfig.h"; then |
|
735 FONTCONFIG_CFLAGS="-I${with_fontconfig}/include" |
|
736 FONTCONFIG_FOUND=yes |
|
737 AC_MSG_RESULT([$FONTCONFIG_FOUND]) |
|
738 else |
|
739 AC_MSG_ERROR([Can't find 'include/fontconfig/fontconfig.h' under ${with_fontconfig} given with the --with-fontconfig option.]) |
|
740 fi |
|
741 fi |
|
742 if test "x${with_fontconfig_include}" != x; then |
|
743 AC_MSG_CHECKING([for fontconfig headers]) |
|
744 if test -s "${with_fontconfig_include}/fontconfig/fontconfig.h"; then |
|
745 FONTCONFIG_CFLAGS="-I${with_fontconfig_include}" |
|
746 FONTCONFIG_FOUND=yes |
|
747 AC_MSG_RESULT([$FONTCONFIG_FOUND]) |
|
748 else |
|
749 AC_MSG_ERROR([Can't find 'fontconfig/fontconfig.h' under ${with_fontconfig_include} given with the --with-fontconfig-include option.]) |
|
750 fi |
|
751 fi |
|
752 if test "x$FONTCONFIG_FOUND" = xno; then |
|
753 # Are the fontconfig headers installed in the default /usr/include location? |
|
754 AC_CHECK_HEADERS([fontconfig/fontconfig.h], [ |
|
755 FONTCONFIG_FOUND=yes |
|
756 FONTCONFIG_CFLAGS= |
|
757 DEFAULT_FONTCONFIG=yes |
|
758 ]) |
|
759 fi |
|
760 if test "x$FONTCONFIG_FOUND" = xno; then |
|
761 HELP_MSG_MISSING_DEPENDENCY([fontconfig]) |
|
762 AC_MSG_ERROR([Could not find fontconfig! $HELP_MSG ]) |
|
763 fi |
|
764 fi |
|
765 |
|
766 AC_SUBST(FONTCONFIG_CFLAGS) |
|
767 ]) |
|
768 |
706 AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS], |
769 AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS], |
707 [ |
770 [ |
708 |
771 |
709 ############################################################################### |
772 ############################################################################### |
710 # |
773 # |