configure: Only check for libgettextpo when explicitly requested.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-02-26 18:20:21 +09:00
parent 77c1b7e352
commit d5b3afe357
2 changed files with 8 additions and 14 deletions

5
configure vendored
View File

@ -12416,7 +12416,7 @@ This is an error since --with-zlib was requested." "$LINENO" 5 ;;
esac
fi
if test "x$enable_tools" != xno
if test "x$enable_tools" != xno -a "x$with_gettextpo" = xyes
then
if test "$ac_cv_header_gettext_po_h" = "yes"
then
@ -12465,8 +12465,6 @@ $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
fi
fi
if test "x$with_gettextpo" = xyes
then
if test "x$GETTEXTPO_LIBS" = "x"; then :
case "x$with_gettextpo" in
x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
@ -12484,7 +12482,6 @@ This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
esac
fi
fi
fi
if test "x$with_pulse" != "xno";
then

View File

@ -1435,7 +1435,7 @@ fi
WINE_NOTICE_WITH(zlib,[test "x$Z_LIBS" = "x"],[libz ${notice_platform}development files not found, data compression won't be supported.])
dnl **** Check for gettextpo ****
if test "x$enable_tools" != xno
if test "x$enable_tools" != xno -a "x$with_gettextpo" = xyes
then
if test "$ac_cv_header_gettext_po_h" = "yes"
then
@ -1443,14 +1443,11 @@ then
[AC_DEFINE(HAVE_LIBGETTEXTPO,1,[Define to 1 if you have the `gettextpo' library (-lgettextpo).])
AC_SUBST(GETTEXTPO_LIBS,"-lgettextpo")])
fi
if test "x$with_gettextpo" = xyes
then
WINE_NOTICE_WITH(gettextpo,[test "x$GETTEXTPO_LIBS" = "x"],
[GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.])
WINE_NOTICE_WITH(gettextpo,[test "$srcdir" != .],
[Rebuilding po files is not supported for out of tree builds.])
fi
fi
dnl **** Check for PulseAudio ****
if test "x$with_pulse" != "xno";