Module: wine
Branch: master
Commit: 63ea670370fa288cfb4c3020801d35b6f7fcaacf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=63ea670370fa288cfb4c30208…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed May 21 15:00:28 2008 +0200
configure: Upgrade notices to warnings for some important libraries.
---
configure | 12 ++++++------
configure.ac | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/configure b/configure
index 071e566..a828897 100755
--- a/configure
+++ b/configure
@@ -10325,7 +10325,7 @@ fi
fi
if test "x$ac_cv_lib_soname_Xrender" = "x"; then
case "x$with_xrender" in
- x) wine_notices="$wine_notices|libxrender development files not found, XRender won't be supported." ;;
+ x) wine_warnings="$wine_warnings|libxrender development files not found, XRender won't be supported." ;;
xno) ;;
*) { { echo "$as_me:$LINENO: error: libxrender development files not found, XRender won't be supported.
This is an error since --with-xrender was requested." >&5
@@ -11963,7 +11963,7 @@ done
fi
if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then
case "x$with_xml" in
- x) wine_notices="$wine_notices|libxml2 development files not found, XML won't be supported." ;;
+ x) wine_warnings="$wine_warnings|libxml2 development files not found, XML won't be supported." ;;
xno) ;;
*) { { echo "$as_me:$LINENO: error: libxml2 development files not found, XML won't be supported.
This is an error since --with-xml was requested." >&5
@@ -12222,7 +12222,7 @@ fi
fi
if test "$ac_cv_lib_xslt_xsltCompilePattern" != "yes"; then
case "x$with_xslt" in
- x) wine_notices="$wine_notices|libxslt development files not found, xslt won't be supported." ;;
+ x) wine_warnings="$wine_warnings|libxslt development files not found, xslt won't be supported." ;;
xno) ;;
*) { { echo "$as_me:$LINENO: error: libxslt development files not found, xslt won't be supported.
This is an error since --with-xslt was requested." >&5
@@ -15830,7 +15830,7 @@ fi
fi
if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then
case "x$with_openssl" in
- x) wine_notices="$wine_notices|OpenSSL development files not found, SSL won't be supported." ;;
+ x) wine_warnings="$wine_warnings|OpenSSL development files not found, SSL won't be supported." ;;
xno) ;;
*) { { echo "$as_me:$LINENO: error: OpenSSL development files not found, SSL won't be supported.
This is an error since --with-openssl was requested." >&5
@@ -15924,7 +15924,7 @@ fi
fi
if test "x$ac_cv_lib_soname_jpeg" = "x"; then
case "x$with_jpeg" in
- x) wine_notices="$wine_notices|libjpeg development files not found, JPEG won't be supported." ;;
+ x) wine_warnings="$wine_warnings|libjpeg development files not found, JPEG won't be supported." ;;
xno) ;;
*) { { echo "$as_me:$LINENO: error: libjpeg development files not found, JPEG won't be supported.
This is an error since --with-jpeg was requested." >&5
@@ -16018,7 +16018,7 @@ fi
fi
if test "x$ac_cv_lib_soname_png" = "x"; then
case "x$with_png" in
- x) wine_notices="$wine_notices|libpng development files not found, PNG won't be supported." ;;
+ x) wine_warnings="$wine_warnings|libpng development files not found, PNG won't be supported." ;;
xno) ;;
*) { { echo "$as_me:$LINENO: error: libpng development files not found, PNG won't be supported.
This is an error since --with-png was requested." >&5
diff --git a/configure.ac b/configure.ac
index e3028bb..59dc996 100644
--- a/configure.ac
+++ b/configure.ac
@@ -670,7 +670,7 @@ then
[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])],,[$X_LIBS -lXext -lX11 $X_EXTRA_LIBS])
fi
- WINE_NOTICE_WITH(xrender,[test "x$ac_cv_lib_soname_Xrender" = "x"],
+ WINE_WARNING_WITH(xrender,[test "x$ac_cv_lib_soname_Xrender" = "x"],
[libxrender development files not found, XRender won't be supported.])
dnl *** Check for X RandR extension
@@ -816,7 +816,7 @@ then
])
CPPFLAGS="$ac_save_CPPFLAGS"
fi
-WINE_NOTICE_WITH(xml,[test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"],
+WINE_WARNING_WITH(xml,[test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"],
[libxml2 development files not found, XML won't be supported.])
if test "x$with_xslt" != "xno"
@@ -848,7 +848,7 @@ then
LIBS="$ac_save_LIBS"],,$ac_xslt_libs)
fi
fi
-WINE_NOTICE_WITH(xslt,[test "$ac_cv_lib_xslt_xsltCompilePattern" != "yes"],
+WINE_WARNING_WITH(xslt,[test "$ac_cv_lib_xslt_xsltCompilePattern" != "yes"],
[libxslt development files not found, xslt won't be supported.])
dnl **** Check for libhal ****
@@ -1166,7 +1166,7 @@ then
WINE_CHECK_SONAME(ssl,SSL_library_init)
WINE_CHECK_SONAME(crypto,BIO_new_socket)
fi
-WINE_NOTICE_WITH(openssl,[test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"],
+WINE_WARNING_WITH(openssl,[test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"],
[OpenSSL development files not found, SSL won't be supported.])
dnl **** Check for libjpeg ****
@@ -1174,7 +1174,7 @@ if test "$ac_cv_header_jpeglib_h" = "yes"
then
WINE_CHECK_SONAME(jpeg,jpeg_start_decompress)
fi
-WINE_NOTICE_WITH(jpeg,[test "x$ac_cv_lib_soname_jpeg" = "x"],
+WINE_WARNING_WITH(jpeg,[test "x$ac_cv_lib_soname_jpeg" = "x"],
[libjpeg development files not found, JPEG won't be supported.])
dnl **** Check for libpng ****
@@ -1182,7 +1182,7 @@ if test "$ac_cv_header_png_h" = "yes"
then
WINE_CHECK_SONAME(png,png_create_read_struct,,,,[[libpng[[0-9]]*]])
fi
-WINE_NOTICE_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"],
+WINE_WARNING_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"],
[libpng development files not found, PNG won't be supported.])
dnl **** Check for libodbc ****
Module: wine
Branch: master
Commit: a20c0e124bb3292ef2a35081af7cfea8fa21954b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a20c0e124bb3292ef2a35081a…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed May 21 14:55:53 2008 +0200
configure: Make the lack of FreeType an error, and add a --without option for it.
---
configure | 31 ++++++++++++++++++++++---------
configure.ac | 13 ++++---------
2 files changed, 26 insertions(+), 18 deletions(-)
diff --git a/configure b/configure
index 26899f1..071e566 100755
--- a/configure
+++ b/configure
@@ -1387,6 +1387,7 @@ Optional Packages:
--without-curses do not use (n)curses
--without-esd do not use the EsounD sound support
--without-fontconfig do not use fontconfig
+ --without-freetype do not use the FreeType library
--without-gphoto do not use gphoto (Digital Camera support)
--without-glu do not use the GLU library
--without-hal do not use HAL (dynamic device support)
@@ -1967,6 +1968,12 @@ if test "${with_fontconfig+set}" = set; then
fi
+# Check whether --with-freetype was given.
+if test "${with_freetype+set}" = set; then
+ withval=$with_freetype;
+fi
+
+
# Check whether --with-gphoto was given.
if test "${with_gphoto+set}" = set; then
withval=$with_gphoto;
@@ -13866,7 +13873,7 @@ fi
done
test -n "$ft_devel" || ft_devel="false"
-if test "$ft_devel" != "false"
+if test "$ft_devel" != "false" -a "x$with_freetype" != "xno"
then
ac_freetype_libs=`$ft_devel --libs`
ac_freetype_incl=`$ft_devel --cflags`
@@ -14245,19 +14252,25 @@ _ACEOF
FREETYPEINCL="$ac_freetype_incl"
+ FONTSSUBDIRS="fonts"
+
fi
fi
fi
-
-if test "x$FREETYPELIBS" = "x"
-then
- wine_warnings="$wine_warnings|FreeType development files not found.
-Fonts will not be built. Dialog text may be invisible or unaligned."
-else
- FONTSSUBDIRS="fonts"
-
+if test "x$FREETYPELIBS" = "x"; then
+ case "x$with_freetype" in
+ xno) ;;
+ *) { { echo "$as_me:$LINENO: error: FreeType development files not found.
+Fonts will not be built. Dialog text may be invisible or unaligned.
+Use the --without-freetype option if you really want this." >&5
+echo "$as_me: error: FreeType development files not found.
+Fonts will not be built. Dialog text may be invisible or unaligned.
+Use the --without-freetype option if you really want this." >&2;}
+ { (exit 1); exit 1; }; } ;;
+esac
fi
+
{ echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
if test "${ac_cv_c_ppdev+set}" = set; then
diff --git a/configure.ac b/configure.ac
index 942d989..e3028bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,6 +34,7 @@ AC_ARG_WITH(curses, AS_HELP_STRING([--without-curses],[do not use (n)curses])
AC_ARG_WITH(esd, AS_HELP_STRING([--without-esd],[do not use the EsounD sound support]))
AC_ARG_WITH(fontconfig,AS_HELP_STRING([--without-fontconfig],[do not use fontconfig]),
[if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi])
+AC_ARG_WITH(freetype, AS_HELP_STRING([--without-freetype],[do not use the FreeType library]))
AC_ARG_WITH(gphoto, AS_HELP_STRING([--without-gphoto],[do not use gphoto (Digital Camera support)]))
AC_ARG_WITH(glu, AS_HELP_STRING([--without-glu],[do not use the GLU library]),
[if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi])
@@ -974,7 +975,7 @@ WINE_NOTICE_WITH(ldap,[test "x$LDAPLIBS" = "x"],
dnl **** Check for FreeType 2 ****
AC_CHECK_PROGS(ft_devel,[freetype-config freetype2-config],false)
-if test "$ft_devel" != "false"
+if test "$ft_devel" != "false" -a "x$with_freetype" != "xno"
then
ac_freetype_libs=`$ft_devel --libs`
ac_freetype_incl=`$ft_devel --cflags`
@@ -1014,18 +1015,12 @@ then
AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed])
AC_SUBST(FREETYPELIBS,"$ac_freetype_libs")
AC_SUBST(FREETYPEINCL,"$ac_freetype_incl")
+ AC_SUBST(FONTSSUBDIRS,"fonts")
fi
fi
fi
-
-dnl Only build the fonts dir if we have freetype
-if test "x$FREETYPELIBS" = "x"
-then
- WINE_WARNING([FreeType development files not found.
+WINE_ERROR_WITH(freetype,[test "x$FREETYPELIBS" = "x"],[FreeType development files not found.
Fonts will not be built. Dialog text may be invisible or unaligned.])
-else
- AC_SUBST(FONTSSUBDIRS,"fonts")
-fi
dnl **** Check for parport (currently Linux only) ****
AC_CACHE_CHECK([for parport header/ppdev.h], ac_cv_c_ppdev,
Module: wine
Branch: master
Commit: 76adea11a0a9ea7f1c1ca28988d8ff3c2d9cde04
URL: http://source.winehq.org/git/wine.git/?a=commit;h=76adea11a0a9ea7f1c1ca2898…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed May 21 14:48:33 2008 +0200
configure: Added an ERROR_WITH macro for packages that we can't do without.
---
aclocal.m4 | 6 ++++++
configure | 7 ++-----
configure.ac | 2 +-
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/aclocal.m4 b/aclocal.m4
index dcbe78b..0f36122 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -178,6 +178,12 @@ AC_DEFUN([WINE_WARNING_WITH],[AS_IF([$2],[case "x$with_$1" in
This is an error since --with-$1 was requested.]) ;;
esac])])
+AC_DEFUN([WINE_ERROR_WITH],[AS_IF([$2],[case "x$with_$1" in
+ xno) ;;
+ *) AC_MSG_ERROR([$3
+Use the --without-$1 option if you really want this.]) ;;
+esac])])
+
AC_DEFUN([WINE_PRINT_MESSAGES],[ac_save_IFS="$IFS"
IFS="|"
if test "x$wine_notices != "x; then
diff --git a/configure b/configure
index e572c7f..26899f1 100755
--- a/configure
+++ b/configure
@@ -11563,18 +11563,15 @@ else
fi
if test "x$XLIB" = "x"; then
case "x$with_x" in
- x) wine_warnings="$wine_warnings|X development files not found. Wine will be built
-without X support, which probably isn't what you want. You will need to install
-development packages of Xlib/Xfree86 at the very least." ;;
xno) ;;
*) { { echo "$as_me:$LINENO: error: X development files not found. Wine will be built
without X support, which probably isn't what you want. You will need to install
development packages of Xlib/Xfree86 at the very least.
-This is an error since --with-x was requested." >&5
+Use the --without-x option if you really want this." >&5
echo "$as_me: error: X development files not found. Wine will be built
without X support, which probably isn't what you want. You will need to install
development packages of Xlib/Xfree86 at the very least.
-This is an error since --with-x was requested." >&2;}
+Use the --without-x option if you really want this." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
fi
diff --git a/configure.ac b/configure.ac
index fc81d92..942d989 100644
--- a/configure.ac
+++ b/configure.ac
@@ -781,7 +781,7 @@ else
X_CFLAGS=""
X_LIBS=""
fi
-WINE_WARNING_WITH(x,[test "x$XLIB" = "x"],[X development files not found. Wine will be built
+WINE_ERROR_WITH(x,[test "x$XLIB" = "x"],[X development files not found. Wine will be built
without X support, which probably isn't what you want. You will need to install
development packages of Xlib/Xfree86 at the very least.])