Alexandre Julliard : configure: Only check for libgettextpo when explicitly requested.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Feb 26 10:26:45 CST 2016


Module: wine
Branch: master
Commit: d5b3afe35719209c4dbb402cac6bf453e1e807f4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d5b3afe35719209c4dbb402cac6bf453e1e807f4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Feb 26 18:20:21 2016 +0900

configure: Only check for libgettextpo when explicitly requested.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 configure    |  9 +++------
 configure.ac | 13 +++++--------
 2 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/configure b/configure
index eddf07b..f189c99 100755
--- a/configure
+++ b/configure
@@ -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,9 +12465,7 @@ $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
 fi
 
     fi
-    if test "x$with_gettextpo" = xyes
-    then
-        if test "x$GETTEXTPO_LIBS" = "x"; 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." ;;
   xno) ;;
@@ -12475,7 +12473,7 @@ fi
 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
 esac
 fi
-        if test "$srcdir" != .; then :
+    if test "$srcdir" != .; then :
   case "x$with_gettextpo" in
   x)   as_fn_append wine_notices "|Rebuilding po files is not supported for out of tree builds." ;;
   xno) ;;
@@ -12483,7 +12481,6 @@ fi
 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
 esac
 fi
-    fi
 fi
 
 if test "x$with_pulse" != "xno";
diff --git a/configure.ac b/configure.ac
index 73e4140..e20cbe7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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,13 +1443,10 @@ 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
+    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
 
 dnl **** Check for PulseAudio ****




More information about the wine-cvs mailing list