]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
examples: Improve code style.
authorBruno Haible <bruno@clisp.org>
Sat, 25 Apr 2020 10:55:57 +0000 (12:55 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Apr 2020 22:23:15 +0000 (00:23 +0200)
* gettext-tools/examples/hello-*/configure.ac: Improve quoting.

21 files changed:
gettext-tools/examples/hello-c-gnome3/configure.ac
gettext-tools/examples/hello-clisp/configure.ac
gettext-tools/examples/hello-csharp-forms/configure.ac
gettext-tools/examples/hello-csharp/configure.ac
gettext-tools/examples/hello-gawk/configure.ac
gettext-tools/examples/hello-guile/configure.ac
gettext-tools/examples/hello-java-awt/configure.ac
gettext-tools/examples/hello-java-qtjambi/configure.ac
gettext-tools/examples/hello-java-swing/configure.ac
gettext-tools/examples/hello-java/configure.ac
gettext-tools/examples/hello-librep/configure.ac
gettext-tools/examples/hello-objc/configure.ac
gettext-tools/examples/hello-pascal/configure.ac
gettext-tools/examples/hello-perl/configure.ac
gettext-tools/examples/hello-php/configure.ac
gettext-tools/examples/hello-python/configure.ac
gettext-tools/examples/hello-sh/configure.ac
gettext-tools/examples/hello-smalltalk/configure.ac
gettext-tools/examples/hello-tcl-tk/configure.ac
gettext-tools/examples/hello-tcl/configure.ac
gettext-tools/examples/hello-ycp/configure.ac

index fca55a17c393c6a5f1e4544ff897f99cf9c8fbf0..5f62f55d98d044598490ccb620afec05a1af9dcf 100644 (file)
@@ -24,12 +24,12 @@ dnl
 dnl Here, in gettext-tools/examples, we do the checks manually for
 dnl simplicity.
 
-AC_PATH_PROG(GLIB_COMPILE_RESOURCES, [glib-compile-resources])
+AC_PATH_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
 AS_IF([test -z "$GLIB_COMPILE_RESOURCES"], [
   AC_MSG_ERROR([can't find glib-compile-resources])
 ])
 
-AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, [glib-compile-schemas])
+AC_PATH_PROG([GLIB_COMPILE_SCHEMAS], [glib-compile-schemas])
 AS_IF([test -z "$GLIB_COMPILE_SCHEMAS"], [
   AC_MSG_ERROR([can't find glib-compile-schemas])
 ])
@@ -45,10 +45,10 @@ AS_IF(["$PKG_CONFIG" --exists "$GTK"], , [
 ])
 
 GTK_CFLAGS=`"$PKG_CONFIG" --cflags "$GTK"`
-AC_SUBST(GTK_CFLAGS)
+AC_SUBST([GTK_CFLAGS])
 
 GTK_LIBS=`"$PKG_CONFIG" --libs "$GTK"`
-AC_SUBST(GTK_LIBS)
+AC_SUBST([GTK_LIBS])
 
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_FILES([m4/Makefile])
index 041dad400bbedd4c5877f652bd3ae534084574c2..a4b006f626c730b0fffcf6bdd374a22f2fc76ab1 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello.lisp.in])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of the Lisp system.
-AC_PATH_PROG(CLISP, clisp)
+AC_PATH_PROG([CLISP], [clisp])
 if test -z "$CLISP"; then
   echo "*** Essential program clisp not found" 1>&2
   exit 1
 fi
-AC_SUBST(CLISP)
+AC_SUBST([CLISP])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -27,7 +27,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index 95bf0baeb50724e0fed6b1dea36270adaf454296..c206f98448fa72f0d0ab41a28101f40e9d430568 100644 (file)
@@ -14,7 +14,7 @@ if test -n "$HAVE_CSHARPCOMP"; then
 else
   BUILDCSHARP=no
 fi
-AC_SUBST(BUILDCSHARP)
+AC_SUBST([BUILDCSHARP])
 
 dnl Check whether we can execute C# programs.
 gt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4])
@@ -23,7 +23,7 @@ if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
 else
   TESTCSHARP=no
 fi
-AC_SUBST(TESTCSHARP)
+AC_SUBST([TESTCSHARP])
 
 dnl Checks for needed libraries.
 AM_PATH_PROG_WITH_TEST([GETTEXT_WITH_GNU_GETTEXT_DLL], [gettext],
index 4565d346c1f079caad0f4a048dca2985f41ef25a..c9b95de05aa3a0f55ed3e074c3b563ef8a038a41 100644 (file)
@@ -14,7 +14,7 @@ if test -n "$HAVE_CSHARPCOMP"; then
 else
   BUILDCSHARP=no
 fi
-AC_SUBST(BUILDCSHARP)
+AC_SUBST([BUILDCSHARP])
 
 dnl Check whether we can execute C# programs.
 gt_CSHARPEXEC([csharpexec-test.exe], [$srcdir/m4])
@@ -23,7 +23,7 @@ if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
 else
   TESTCSHARP=no
 fi
-AC_SUBST(TESTCSHARP)
+AC_SUBST([TESTCSHARP])
 
 dnl Checks for needed libraries.
 AM_PATH_PROG_WITH_TEST([GETTEXT_WITH_GNU_GETTEXT_DLL], [gettext],
index aa1fd4de1ed01758f7595a17ffd0270957362edf..a55f324a3524509f8fc65ad4efc78ea98ab5ef75 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello.awk])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of GNU awk.
-AC_PATH_PROG(GAWK, gawk)
+AC_PATH_PROG([GAWK], [gawk])
 if test -z "$GAWK"; then
   echo "*** Essential program gawk not found" 1>&2
   exit 1
 fi
-AC_SUBST(GAWK)
+AC_SUBST([GAWK])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -27,7 +27,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index 2906dbd77197294806bc352c67199e20b0f02a62..4ffe7153610bdbf8eb7b3ed8b95eebf946f66eff 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello.scm])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of the guile interpreter.
-AC_PATH_PROG(GUILE, guile)
+AC_PATH_PROG([GUILE], [guile])
 if test -z "$GUILE"; then
   echo "*** Essential program guile not found" 1>&2
   exit 1
 fi
-AC_SUBST(GUILE)
+AC_SUBST([GUILE])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -27,7 +27,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index 7d84a97c63df491cee97de1b02fc59df42117a70..57fd16851508dc6ef6e01e78588a7f042d764253 100644 (file)
@@ -11,19 +11,19 @@ dnl Check whether we can execute Java programs.
 gt_JAVAEXEC([TestAWT], [$srcdir/m4])
 dnl Check whether we can build Java programs.
 gt_JAVACOMP([1.5])
-AC_CHECK_PROG(JAR, jar, jar)
+AC_CHECK_PROG([JAR], [jar], [jar])
 if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
   BUILDJAVA=yes
 else
   BUILDJAVA=no
 fi
-AC_SUBST(BUILDJAVA)
+AC_SUBST([BUILDJAVA])
 if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then
   TESTJAVA=yes
 else
   TESTJAVA=no
 fi
-AC_SUBST(TESTJAVA)
+AC_SUBST([TESTJAVA])
 
 dnl Checks for compiler output filename suffixes.
 AC_OBJEXT
index 33c10d3f6a8053bf9a569bde3883a02b02b1c515..0d4a23cdd60cb380792ce4d84fb14371f2a01a8d 100644 (file)
@@ -11,19 +11,19 @@ dnl Check whether we can execute Java programs.
 gt_JAVAEXEC([Test15], [$srcdir/m4])
 dnl Check whether we can build Java programs.
 gt_JAVACOMP([1.5], [1.6])
-AC_CHECK_PROG(JAR, jar, jar)
+AC_CHECK_PROG([JAR], [jar], [jar])
 if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
   BUILDJAVA=yes
 else
   BUILDJAVA=no
 fi
-AC_SUBST(BUILDJAVA)
+AC_SUBST([BUILDJAVA])
 if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then
   TESTJAVA=yes
 else
   TESTJAVA=no
 fi
-AC_SUBST(TESTJAVA)
+AC_SUBST([TESTJAVA])
 
 dnl Checks for compiler output filename suffixes.
 AC_OBJEXT
index 227e7bcd2e5167adece71836dd6859e0396f51bf..cdedcd6ba9c687a68c0dfa8226ed99ebb261a875 100644 (file)
@@ -11,19 +11,19 @@ dnl Check whether we can execute Java programs.
 gt_JAVAEXEC([TestAWT], [$srcdir/m4])
 dnl Check whether we can build Java programs.
 gt_JAVACOMP([1.5])
-AC_CHECK_PROG(JAR, jar, jar)
+AC_CHECK_PROG([JAR], [jar], [jar])
 if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
   BUILDJAVA=yes
 else
   BUILDJAVA=no
 fi
-AC_SUBST(BUILDJAVA)
+AC_SUBST([BUILDJAVA])
 if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then
   TESTJAVA=yes
 else
   TESTJAVA=no
 fi
-AC_SUBST(TESTJAVA)
+AC_SUBST([TESTJAVA])
 
 dnl Checks for compiler output filename suffixes.
 AC_OBJEXT
index e4512fd94ec5862ed693fd18b71c11bade94d050..2206ce9ca117e27a572f055e56b6b7084ffc5b72 100644 (file)
@@ -11,19 +11,19 @@ dnl Check whether we can execute Java programs.
 gt_JAVAEXEC
 dnl Check whether we can build Java programs.
 gt_JAVACOMP([1.5])
-AC_CHECK_PROG(JAR, jar, jar)
+AC_CHECK_PROG([JAR], [jar], [jar])
 if test -n "$HAVE_JAVACOMP" && test -n "$JAR"; then
   BUILDJAVA=yes
 else
   BUILDJAVA=no
 fi
-AC_SUBST(BUILDJAVA)
+AC_SUBST([BUILDJAVA])
 if test -n "$HAVE_JAVAEXEC" && test "$BUILDJAVA" = yes; then
   TESTJAVA=yes
 else
   TESTJAVA=no
 fi
-AC_SUBST(TESTJAVA)
+AC_SUBST([TESTJAVA])
 
 dnl Checks for compiler output filename suffixes.
 AC_OBJEXT
index ae49fcf3d9ab2401bba6dc45a07006bf75a23e86..d7dddda84a48143b12f65ba68273e52eb5a6736f 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello.jl.in])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of the librep interpreter.
-AC_PATH_PROG(REP, rep)
+AC_PATH_PROG([REP], [rep])
 if test -z "$REP"; then
   echo "*** Essential program rep not found" 1>&2
   exit 1
 fi
-AC_SUBST(REP)
+AC_SUBST([REP])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -27,7 +27,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index 39a621bed53f08e1768b5aa17095c183c421951d..f764c66a4ac77f38b8e6ff07acea5b8e3b10ea7e 100644 (file)
@@ -8,7 +8,7 @@ AC_CONFIG_SRCDIR([hello.m])
 AM_INIT_AUTOMAKE([1.11])
 
 AC_PROG_CC
-AC_SUBST(OBJC,["$CC"])
+AC_SUBST([OBJC], ["$CC"])
 AC_CHECK_HEADERS([unistd.h])
 AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([0.20.2])
index 1585e5d4f5eb68b23ec186041698e52e52907783..2c20bb81edbf8c9771dfb6a982d66a65d63d4682 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello.pas])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of the Free Pascal Compiler.
-AC_PATH_PROGS(PPC, ppc386 ppcx64)
+AC_PATH_PROGS([PPC], [ppc386 ppcx64])
 if test -z "$PPC"; then
   echo "*** Essential program ppc386 or ppcx64 not found" 1>&2
   exit 1
 fi
-AC_SUBST(PPC)
+AC_SUBST([PPC])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -27,7 +27,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index 885ef164cedd1499488b7d2ffce29b378ae828ad..7699d7e3958295d37857552b98fd737f159f7aab 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello-1.pl.in])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of the Perl interpreter.
-AC_PATH_PROG(PERL, perl)
+AC_PATH_PROG([PERL], [perl])
 if test -z "$PERL"; then
   echo "*** Essential program perl not found" 1>&2
   exit 1
 fi
-AC_SUBST(PERL)
+AC_SUBST([PERL])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -27,7 +27,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index e686d457ef8d12898dc6f655adbee4d7cc9e7e2e..c9429ea15e09e110919aae2ab54bd672ac78d857 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello.php])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of the PHP system.
-AC_PATH_PROG(PHP, php)
+AC_PATH_PROG([PHP], [php])
 if test -z "$PHP"; then
   echo "*** Essential program php not found" 1>&2
   exit 1
 fi
-AC_SUBST(PHP)
+AC_SUBST([PHP])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -27,7 +27,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index 80acee95db1f01edb00c4b45f39d4c76957fe6b0..10aeaa2e2708d4b2f54c9f1146073d73551bab22 100644 (file)
@@ -26,7 +26,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index ed3e574009765959ae525583ed3b1e2916de78db..f05cf3ec3fe91dca58fea513b1a49a4a8194dfaa 100644 (file)
@@ -19,7 +19,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index 820a30a467ebd36ad39b126ad97e2f90c437346f..8bc7688fa2d8e87fa41d270198bbaa2e36162550 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello.st.in])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of GNU Smalltalk.
-AC_PATH_PROG(GST, gst)
+AC_PATH_PROG([GST], [gst])
 if test -z "$GST"; then
   echo "*** Essential program gst not found" 1>&2
   exit 1
 fi
-AC_SUBST(GST)
+AC_SUBST([GST])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -27,7 +27,7 @@ prefix="$final_prefix"
 eval "datarootdir=\"${datarootdir}\""
 eval "localedir=\"${datadir}/locale\""
 prefix="$save_prefix"
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index dc159637854ff5518dabb14f861165bda0d3b062..7d95739dee3b2a1d810b0e58ecbf518f5fef696a 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello.tcl])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of the Tcl/Tk interpreter.
-AC_PATH_PROG(WISH, wish)
+AC_PATH_PROG([WISH], [wish])
 if test -z "$WISH"; then
   echo "*** Essential program wish not found" 1>&2
   exit 1
 fi
-AC_SUBST(WISH)
+AC_SUBST([WISH])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -32,7 +32,7 @@ pkgdatadir="${datadir}/${PACKAGE}"
 datadir="$save_datadir"
 datarootdir="$save_datarootdir"
 prefix="$save_prefix"
-AC_SUBST(pkgdatadir)
+AC_SUBST([pkgdatadir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index 3c30d521b4e9c98629f2455c4bc3df788318a8c2..61c065bea4a06b927f578b4d2959b1e007671b0d 100644 (file)
@@ -8,12 +8,12 @@ AC_CONFIG_SRCDIR([hello.tcl])
 AM_INIT_AUTOMAKE([1.11])
 
 dnl Check for availability of the Tcl interpreter.
-AC_PATH_PROG(TCLSH, tclsh)
+AC_PATH_PROG([TCLSH], [tclsh])
 if test -z "$TCLSH"; then
   echo "*** Essential program tclsh not found" 1>&2
   exit 1
 fi
-AC_SUBST(TCLSH)
+AC_SUBST([TCLSH])
 
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, prefix gets only finally determined at the end of configure.
@@ -32,7 +32,7 @@ pkgdatadir="${datadir}/${PACKAGE}"
 datadir="$save_datadir"
 datarootdir="$save_datarootdir"
 prefix="$save_prefix"
-AC_SUBST(pkgdatadir)
+AC_SUBST([pkgdatadir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS
index 78f88c4088695f3c660c6b3cc8748634df992f58..59b40837219d797f4c0c23b3078c71780862703f 100644 (file)
@@ -16,7 +16,7 @@ test -f /usr/lib/YaST2/bin/y2base || {
 dnl The installed program must know where to find its message catalogs.
 dnl Unfortunately, YaST hard codes the message catalog directory.
 localedir=/usr/share/YaST2/locale
-AC_SUBST(localedir)
+AC_SUBST([localedir])
 
 dnl Support for the po directory.
 AM_PO_SUBDIRS