Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
94969301
Commit
94969301
authored
Mar 05, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Mar 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check if version of msgfmt (from gettext) is recent enough.
parent
b9353b73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
3 deletions
+40
-3
configure
configure
+22
-2
configure.ac
configure.ac
+18
-1
No files found.
configure
View file @
94969301
...
...
@@ -5150,11 +5150,31 @@ $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
fi
test
"x
$with_gettext
"
!=
xno
||
MSGFMT
=
false
if
test
"
$MSGFMT
"
!=
"false"
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether msgfmt supports contexts"
>
&5
$as_echo_n
"checking whether msgfmt supports contexts... "
>
&6
;
}
cat
>
conftest.po
<<
EOF
# comment
msgctxt "ctxt"
msgid "id"
msgstr "str"
EOF
if
$MSGFMT
-o
/dev/null conftest.po 2>&5
then
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: yes"
>
&5
$as_echo
"yes"
>
&6
;
}
else
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
MSGFMT
=
false
fi
fi
if
test
"
$MSGFMT
"
=
false
;
then
:
case
"x
$with_gettext
"
in
x
)
as_fn_append wine_warnings
"|gettext tools not found, translations won't be built."
;;
x
)
as_fn_append wine_warnings
"|gettext tools not found
(or too old)
, translations won't be built."
;;
xno
)
;;
*
)
as_fn_error
$?
"gettext tools not found, translations won't be built.
*
)
as_fn_error
$?
"gettext tools not found
(or too old)
, translations won't be built.
This is an error since --with-gettext was requested."
"
$LINENO
"
5
;;
esac
fi
...
...
configure.ac
View file @
94969301
...
...
@@ -349,8 +349,25 @@ else
fi
test "x$with_gettext" != xno || MSGFMT=false
if test "$MSGFMT" != "false"
then
AC_MSG_CHECKING([whether msgfmt supports contexts])
cat >conftest.po <<EOF
# comment
msgctxt "ctxt"
msgid "id"
msgstr "str"
EOF
if $MSGFMT -o /dev/null conftest.po 2>&AS_MESSAGE_LOG_FD
then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
MSGFMT=false
fi
fi
WINE_WARNING_WITH(gettext,[test "$MSGFMT" = false],
[gettext tools not found, translations won't be built.])
[gettext tools not found
(or too old)
, translations won't be built.])
dnl **** Check for some libraries ****
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment