]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Protect against pnet installations with missing pnetlib.
authorBruno Haible <bruno@clisp.org>
Tue, 3 May 2005 10:46:59 +0000 (10:46 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:33 +0000 (12:12 +0200)
14 files changed:
gettext-tools/ChangeLog
gettext-tools/configure.ac
gettext-tools/examples/ChangeLog
gettext-tools/examples/hello-csharp-forms/autoclean.sh
gettext-tools/examples/hello-csharp-forms/autogen.sh
gettext-tools/examples/hello-csharp-forms/configure.ac
gettext-tools/examples/hello-csharp-forms/m4/Makefile.am
gettext-tools/examples/hello-csharp/autoclean.sh
gettext-tools/examples/hello-csharp/autogen.sh
gettext-tools/examples/hello-csharp/configure.ac
gettext-tools/examples/hello-csharp/m4/Makefile.am
gettext-tools/m4/ChangeLog
gettext-tools/m4/Makefile.am
gettext-tools/m4/csharpexec.m4

index d0b39d0583bda078cadae5d09e3c7434b652d230..0f7cc63acd0cb0e774f059ec086b412860bdf226 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * configure.ac: Call gt_CSHARPEXEC with parameters.
+
 2005-03-20  Bruno Haible  <bruno@clisp.org>
 
        * configure.ac: Test for field __names in struct __locale_struct.
index 61af08b9037230059656066539d837f381c580ff..f48b18d012727c533df0d661b65c91d98ff808a1 100644 (file)
@@ -69,7 +69,7 @@ else
 fi
 AC_SUBST(BUILDCSHARP)
 
-gt_CSHARPEXEC
+gt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4])
 if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
   TESTCSHARP=yes
 else
index 5df6c0333b99f495ee45eeeee3950e74840e2eb6..f88adb73414f8e9b48799797b25c7b5fc05b960b 100644 (file)
@@ -1,3 +1,14 @@
+2005-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * hello-csharp/configure.ac, hello-csharp-forms/configure.ac: Call
+       gt_CSHARPEXEC with parameters.
+       * hello-csharp/m4/Makefile.am, hello-csharp-forms/m4/Makefile.am
+       (EXTRA_DIST): Add csharpexec-test.exe.
+       * hello-csharp/autogen.sh, hello-csharp-forms/autogen.sh: Also copy
+       m4/csharpexec-test.exe.
+       * hello-csharp/autoclean.sh, hello-csharp-forms/autoclean.sh: Also
+       remove m4/csharpexec-test.exe.
+
 2005-04-11  Bruno Haible  <bruno@clisp.org>
 
        * gettext-0.14.4 released.
index 73f33cf8617c6c32fb551cbd64d8dcff2f234598..068b28c17f8980705bbdf181a584f1c4178982d0 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Example for use of GNU gettext.
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 # This file is in the public domain.
 #
 # Script for cleaning all autogenerated files.
@@ -15,6 +15,7 @@ rm -f po/remove-potcdate.sin
 # Brought in by explicit copy.
 rm -f m4/csharpcomp.m4
 rm -f m4/csharpexec.m4
+rm -f m4/csharpexec-test.exe
 rm -f csharpcomp.sh.in
 rm -f csharpexec.sh.in
 
index 7a699ee80a009a667d21243bcbf834f70e81eaa3..3a99626c616c5bf9e609ec39a31b7575d04603d5 100755 (executable)
@@ -30,6 +30,7 @@ cp -p ${GETTEXTSRCPODIR-$GETTEXT_TOPSRCDIR/gettext-runtime/po}/remove-potcdate.s
 
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharpcomp.m4 m4/csharpcomp.m4
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharpexec.m4 m4/csharpexec.m4
+cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharpexec-test.exe m4/csharpexec-test.exe
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharp.m4 m4/csharp.m4
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/lib}/csharpcomp.sh.in csharpcomp.sh.in
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/lib}/csharpexec.sh.in csharpexec.sh.in
index 5ab88af75227239c8411bc131a7af2bd7e1b3910..884168029cf4e8a57e0e2840969249849817ec71 100644 (file)
@@ -1,5 +1,5 @@
 dnl Example for use of GNU gettext.
-dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 dnl This file is in the public domain.
 dnl
 dnl Configuration file - processed by autoconf.
@@ -18,7 +18,7 @@ fi
 AC_SUBST(BUILDCSHARP)
 
 dnl Check whether we can execute C# programs.
-gt_CSHARPEXEC
+gt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4])
 if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
   TESTCSHARP=yes
 else
index 54e423d2a6057c03a7bc46e2e431f14db89cf261..de22d57cb1ebe59d18c8e8eae7259977e452b255 100644 (file)
@@ -1,3 +1,3 @@
 EXTRA_DIST = \
   nls.m4 po.m4 \
-  csharpcomp.m4 csharpexec.m4
+  csharpcomp.m4 csharpexec.m4 csharpexec-test.exe
index 73f33cf8617c6c32fb551cbd64d8dcff2f234598..068b28c17f8980705bbdf181a584f1c4178982d0 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Example for use of GNU gettext.
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 # This file is in the public domain.
 #
 # Script for cleaning all autogenerated files.
@@ -15,6 +15,7 @@ rm -f po/remove-potcdate.sin
 # Brought in by explicit copy.
 rm -f m4/csharpcomp.m4
 rm -f m4/csharpexec.m4
+rm -f m4/csharpexec-test.exe
 rm -f csharpcomp.sh.in
 rm -f csharpexec.sh.in
 
index 2b9c6ec86835c0ef54d0ced99b9b054fcd894f29..3a99626c616c5bf9e609ec39a31b7575d04603d5 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Example for use of GNU gettext.
-# Copyright (C) 2003-2005-2004 Free Software Foundation, Inc.
+# Copyright (C) 2003-2005 Free Software Foundation, Inc.
 # This file is in the public domain.
 #
 # Script for regenerating all autogenerated files.
@@ -30,6 +30,7 @@ cp -p ${GETTEXTSRCPODIR-$GETTEXT_TOPSRCDIR/gettext-runtime/po}/remove-potcdate.s
 
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharpcomp.m4 m4/csharpcomp.m4
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharpexec.m4 m4/csharpexec.m4
+cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharpexec-test.exe m4/csharpexec-test.exe
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/m4}/csharp.m4 m4/csharp.m4
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/lib}/csharpcomp.sh.in csharpcomp.sh.in
 cp -p ${EXAMPLESCONFIGDIR-$GETTEXT_TOPSRCDIR/gettext-tools/lib}/csharpexec.sh.in csharpexec.sh.in
index 980dd25f1e32180e7d8b9ad5e0e4be34647620cb..3c26f75e8be0d6ce632115f3b2f87a942f9e664d 100644 (file)
@@ -1,5 +1,5 @@
 dnl Example for use of GNU gettext.
-dnl Copyright (C) 2003 Free Software Foundation, Inc.
+dnl Copyright (C) 2003, 2005 Free Software Foundation, Inc.
 dnl This file is in the public domain.
 dnl
 dnl Configuration file - processed by autoconf.
@@ -18,7 +18,7 @@ fi
 AC_SUBST(BUILDCSHARP)
 
 dnl Check whether we can execute C# programs.
-gt_CSHARPEXEC
+gt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4])
 if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
   TESTCSHARP=yes
 else
index 54e423d2a6057c03a7bc46e2e431f14db89cf261..de22d57cb1ebe59d18c8e8eae7259977e452b255 100644 (file)
@@ -1,3 +1,3 @@
 EXTRA_DIST = \
   nls.m4 po.m4 \
-  csharpcomp.m4 csharpexec.m4
+  csharpcomp.m4 csharpexec.m4 csharpexec-test.exe
index ca819c4a54f7f3544f2a2bccf1d73e95cd9e1772..52a713bc70c045da1e94ff4937df31013d4a966c 100644 (file)
@@ -1,3 +1,11 @@
+2005-05-01  Bruno Haible  <bruno@clisp.org>
+
+       * csharpexec-test.exe: New file.
+       * csharpexec.m4 (gt_CSHARPEXEC): Test whether the C# engine can execute
+       it.
+       * Makefile.am (examplesbuildaux_DATA, EXTRA_DIST): Add
+       csharpexec-test.exe.
+
 2005-05-01  Bruno Haible  <bruno@clisp.org>
 
        * csharpcomp.m4 (gt_CSHARPCOMP): Check that cscc can actually compile
index 9a7fd9837202695ecbbc0b3ec74f8066f44674a3..8fee92a39e82602bab9d881bf711ab1a4d20abeb 100644 (file)
@@ -40,11 +40,11 @@ docdir = @docdir@
 examplesbuildauxdir = $(docdir)/examples/build-aux
 examplesbuildaux_DATA = \
   gcj.m4 javacomp.m4 javaexec.m4 \
-  csharpcomp.m4 csharpexec.m4
+  csharpcomp.m4 csharpexec.m4 csharpexec-test.exe
 
 # Generate this list with
 # find . -type f -name '*.m4' -printf '%f\n' | sort | tr '\012' @ | sed 's/@$/%/;s/@/ \\@/g' | tr @% '\012\012'
-EXTRA_DIST = README ChangeLog.0 \
+EXTRA_DIST = README ChangeLog.0 csharpexec-test.exe \
 alloca.m4 \
 allocsa.m4 \
 backupfile.m4 \
index 999c8e1ad7cc28b933f416bd76bb0d3fe61640ca..7813bd15c8f84895370163f3812f82b8bd713b28 100644 (file)
@@ -1,10 +1,11 @@
-# csharpexec.m4 serial 1 (gettext-0.14)
-dnl Copyright (C) 2003-2004 Free Software Foundation, Inc.
+# csharpexec.m4 serial 2 (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,
 dnl with or without modifications, as long as this notice is preserved.
 
 # Prerequisites of csharpexec.sh.
+# gt_CSHARPEXEC or gt_CSHARPEXEC(testexecutable, its-directory)
 # Sets HAVE_CSHARPEXEC to nonempty if csharpexec.sh will work.
 
 AC_DEFUN([gt_CSHARPEXEC],
@@ -29,7 +30,8 @@ AC_DEFUN([gt_CSHARPEXEC],
     case "$impl" in
       pnet)
         if test -n "$HAVE_ILRUN_IN_PATH" \
-           && ilrun --version >/dev/null 2>/dev/null; then
+           && ilrun --version >/dev/null 2>/dev/null \
+           ifelse([$1], , , [&& ilrun $2/$1 >/dev/null 2>/dev/null]); then
           HAVE_ILRUN=1
           ac_result="ilrun"
           break
@@ -37,7 +39,8 @@ AC_DEFUN([gt_CSHARPEXEC],
         ;;
       mono)
         if test -n "$HAVE_MONO_IN_PATH" \
-           && mono --version >/dev/null 2>/dev/null; then
+           && mono --version >/dev/null 2>/dev/null \
+           ifelse([$1], , , [&& mono $2/$1 >/dev/null 2>/dev/null]); then
           HAVE_MONO=1
           ac_result="mono"
           break