From: Bruno Haible Date: Tue, 3 May 2005 10:42:29 +0000 (+0000) Subject: Defend against pnet installations with missing pnetlib. X-Git-Tag: v0.15~537 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96d79a2d0644b9740779c3fcdd5923b763fb98a9;p=thirdparty%2Fgettext.git Defend against pnet installations with missing pnetlib. --- diff --git a/gettext-tools/m4/ChangeLog b/gettext-tools/m4/ChangeLog index f96cd6bb6..ca819c4a5 100644 --- a/gettext-tools/m4/ChangeLog +++ b/gettext-tools/m4/ChangeLog @@ -1,3 +1,9 @@ +2005-05-01 Bruno Haible + + * csharpcomp.m4 (gt_CSHARPCOMP): Check that cscc can actually compile + a trivial program. + Reported by Pierre . + 2005-04-11 Bruno Haible * gettext-0.14.4 released. diff --git a/gettext-tools/m4/csharpcomp.m4 b/gettext-tools/m4/csharpcomp.m4 index fc6edcc57..b107f9f55 100644 --- a/gettext-tools/m4/csharpcomp.m4 +++ b/gettext-tools/m4/csharpcomp.m4 @@ -1,4 +1,4 @@ -# csharpcomp.m4 serial 4 (gettext-0.14.2) +# csharpcomp.m4 serial 5 (gettext-0.15) dnl Copyright (C) 2003-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -25,7 +25,15 @@ AC_DEFUN([gt_CSHARPCOMP], case "$impl" in pnet) if test -n "$HAVE_CSCC_IN_PATH" \ - && cscc --version >/dev/null 2>/dev/null; then + && cscc --version >/dev/null 2>/dev/null \ + && ( + # See if pnetlib is well installed. + echo 'class ConfTest { static void Main() { } }' > conftest.cs + cscc -o conftest.exe conftest.cs 2>/dev/null + error=$? + rm -f conftest.cs conftest.exe + exit $error + ); then HAVE_CSCC=1 ac_result="cscc" break