]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: use $GREP throughout.
authorGary V. Vaughan <gary@gnu.org>
Wed, 30 Oct 2013 04:39:06 +0000 (17:39 +1300)
committerGary V. Vaughan <gary@gnu.org>
Wed, 1 Jan 2014 23:06:29 +0000 (12:06 +1300)
Trust the user, and use $GREP from TESTS_EVVIRONMENT uniformly.
* Makefile.am (TESTS_ENVIRONMENT): Add GREP setting.
* tests/am-subdir.at, tests/archive-in-archive.at, tests/bindir.at,
tests/configure-iface.at, tests/cwrapper.at, tests/darwin.at,
tests/demo.at, tests/destdir.at, tests/dumpbin-symbols.at,
tests/early-libtool.at, tests/execute-mode.at, tests/export-def.at,
tests/export.at, tests/f77demo.at, tests/fcdemo.at, tests/flags.at,
tests/help.at, tests/inherited_flags.at, tests/install.at,
tests/lalib-syntax.at, tests/libtool.at, tests/libtoolize.at,
tests/localization.at, tests/lt_dladvise.at, tests/lt_dlopen.at,
tests/lt_dlopenext.at, tests/ltdl-api.at, tests/ltdl-libdir.at,
tests/mdemo.at, tests/old-m4-iface.at, tests/pic_flag.at,
tests/resident.at, tests/runpath-in-lalib.at, tests/search-path.at,
tests/static.at, tests/sysroot.at, tests/template.at,
tests/testsuite.at, tests/versioning.at: Replace all hardcoded grep
invocations with $GREP.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
40 files changed:
Makefile.am
tests/am-subdir.at
tests/archive-in-archive.at
tests/bindir.at
tests/configure-iface.at
tests/cwrapper.at
tests/darwin.at
tests/demo.at
tests/destdir.at
tests/dumpbin-symbols.at
tests/early-libtool.at
tests/execute-mode.at
tests/export-def.at
tests/export.at
tests/f77demo.at
tests/fcdemo.at
tests/flags.at
tests/help.at
tests/inherited_flags.at
tests/install.at
tests/lalib-syntax.at
tests/libtool.at
tests/libtoolize.at
tests/localization.at
tests/lt_dladvise.at
tests/lt_dlopen.at
tests/lt_dlopenext.at
tests/ltdl-api.at
tests/ltdl-libdir.at
tests/mdemo.at
tests/old-m4-iface.at
tests/pic_flag.at
tests/resident.at
tests/runpath-in-lalib.at
tests/search-path.at
tests/static.at
tests/sysroot.at
tests/template.at
tests/testsuite.at
tests/versioning.at

index 6ccc4d0e837a5a766399da486841ff22e3349b12..c59fe30438653371c5c5a276890823b754d233d2 100644 (file)
@@ -691,7 +691,7 @@ TESTS_ENVIRONMENT = MAKE="$(MAKE)" CC="$(CC)" CFLAGS="$(CFLAGS)" \
        CPP="$(CPP)" CPPFLAGS="$(CPPFLAGS)" LD="$(LD)" LDFLAGS="$(LDFLAGS)" \
        LIBS="$(LIBS)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
        AR="$(AR)" \
-       SED="$(SED)" STRIP="$(STRIP)" lt_INSTALL="$(INSTALL)" \
+       GREP="$(GREP)" SED="$(SED)" STRIP="$(STRIP)" lt_INSTALL="$(INSTALL)" \
        MANIFEST_TOOL="$(MANIFEST_TOOL)" \
        OBJEXT="$(OBJEXT)" EXEEXT="$(EXEEXT)" \
        SHELL="$(SHELL)" CONFIG_SHELL="$(SHELL)" \
index 59454266896d77a8cdb4f4274fa7cddbc883daf4..cafcdc4f423167686e649b2273ca19c094002dee 100644 (file)
@@ -78,9 +78,9 @@ void sub (void) { printf ("** This is libsub **\n"); }
 LT_AT_BOOTSTRAP([--copy], [-I m4], [ignore], [--add-missing])
 
 LT_AT_EXEC_CHECK([subdir/subdemo], 0, stdout)
-AT_CHECK([grep 'Welcome to GNU Libtool subdir-objects test' stdout],
+AT_CHECK([$GREP 'Welcome to GNU Libtool subdir-objects test' stdout],
         [], [ignore])
-AT_CHECK([grep 'This is libsub' stdout],
+AT_CHECK([$GREP 'This is libsub' stdout],
         [], [ignore])
 
 AT_CLEANUP
index 3522c26f6eb651975085ce97639798cd8d9244f6..8ee1ced738648bd2bbbdae96a0347a80d91a4839 100644 (file)
@@ -53,7 +53,7 @@ AT_CHECK([$LIBTOOL --mode=link --tag=CC --tag=disable-shared $CC $CFLAGS $LDFLAG
 AT_CHECK([$LIBTOOL --mode=install cp libbar.la $thisdir], [], [ignore], [ignore])
 eval `$EGREP '^(old_library)=' < libbar.la`
 libbar=$old_library
-AT_CHECK([$AR -t $libbar | grep $libfoo],[1],[ignore],[ignore])
-AT_CHECK([$AR -t $libbar | grep foo.$OBJEXT],[],[ignore],[ignore])
-AT_CHECK([$AR -t $libbar | grep bar.$OBJEXT],[],[ignore],[ignore])
+AT_CHECK([$AR -t $libbar | $GREP $libfoo],[1],[ignore],[ignore])
+AT_CHECK([$AR -t $libbar | $GREP foo.$OBJEXT],[],[ignore],[ignore])
+AT_CHECK([$AR -t $libbar | $GREP bar.$OBJEXT],[],[ignore],[ignore])
 AT_CLEANUP
index cc9c24a293fc8d42cc4810c18507a01d2e44eb0a..ab51569fc9db80c3ccbe7a0fc24391bf6e9333e0 100644 (file)
@@ -122,7 +122,7 @@ return 0;
 
 
 curdir=`pwd`
-eval "`$LIBTOOL --config | grep '^objdir='`"
+eval "`$LIBTOOL --config | $GREP '^objdir='`"
 
 AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS foo.c],[0],[ignore],[ignore])
 AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o baz.lo $CPPFLAGS $CFLAGS baz.c],[0],[ignore],[ignore])
@@ -181,7 +181,7 @@ case $host_os in
     ;;
 esac
 
-eval "`$LIBTOOL --config | grep '^build_libtool_libs='`"
+eval "`$LIBTOOL --config | $GREP '^build_libtool_libs='`"
 AT_CHECK([test yes = "$build_libtool_libs" || exit 77])
 
 ####
index 90af64d0c85826bcb9e2cb72a9a48a3187036288..d2fca48c50cdb32f27552eb397bffe5953ad8bd5 100644 (file)
@@ -320,7 +320,7 @@ print-ltdl:
 
 LT_AT_BOOTSTRAP([--ltdl], [-I libltdl/m4], [ignore], [ignore], [], [], [ignore])
 AT_CHECK([$MAKE print-ltdl], [], [stdout], [ignore])
-AT_CHECK([grep libltdl/libltdlc.la stdout], [], [ignore])
+AT_CHECK([$GREP libltdl/libltdlc.la stdout], [], [ignore])
 
 AT_CLEANUP
 
index 03b0e8c1489512df4ced6d81ecf2a1a73ce59791..2ada95750c466b666e818c571c92125214ea1909 100644 (file)
@@ -26,7 +26,7 @@ AT_SETUP([cwrapper for uninstalled executables])
 AT_KEYWORDS([libtool])
 
 # make sure existing libtool is configured for shared libraries
-AT_CHECK([$LIBTOOL --features | grep 'disable shared libraries' && exit 77],
+AT_CHECK([$LIBTOOL --features | $GREP 'disable shared libraries' && exit 77],
         [1], [ignore])
 
 AT_DATA([trivial.c],
@@ -98,7 +98,7 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o usea$EXEEXT usea.$OBJEXT
          [], [ignore], [ignore])
 LT_AT_EXEC_CHECK([./usea], [0], [ignore], [stderr], [--lt-debug])
 LT_AT_UNIFY_NL([stderr])
-AT_CHECK([grep 'libtool wrapper' stderr], [0], [ignore], [ignore])
+AT_CHECK([$GREP 'libtool wrapper' stderr], [0], [ignore], [ignore])
 
 
 # Test compile-time activation of wrapper debugging.
@@ -128,7 +128,7 @@ for debugwrapper_flags in '-DLT_DEBUGWRAPPER'; do
            [], [ignore], [ignore])
   LT_AT_EXEC_CHECK([./usea], [0], [ignore], [stderr], [])
   LT_AT_UNIFY_NL([stderr])
-  AT_CHECK([grep 'libtool wrapper' stderr], [0], [ignore], [ignore])
+  AT_CHECK([$GREP 'libtool wrapper' stderr], [0], [ignore], [ignore])
 done
 
 
@@ -177,7 +177,7 @@ for dirpath in $PATH; do
 done
 IFS=$save_IFS
 
-until $ECHO "PATH=$PATH" | grep 'PATH=.\{250\}'; do
+until $ECHO "PATH=$PATH" | $GREP 'PATH=.\{250\}'; do
   PATH=$PATH$PATH_SEPARATOR$dirpath
 done
 export PATH
@@ -190,9 +190,9 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -no-fast-install ]dnl
 AT_CHECK([test -f "$objdir/lt-usea.c" || exit 77])
 
 # Try to make sure the test is relevant.
-AT_CHECK([grep ' *fputs' $objdir/lt-usea.c > /dev/null])
+AT_CHECK([$GREP ' *fputs' $objdir/lt-usea.c > /dev/null])
 # Check for no overly long fputs.
-AT_CHECK([grep ' *fputs.\{250\}' $objdir/lt-usea.c], [1])
+AT_CHECK([$GREP ' *fputs.\{250\}' $objdir/lt-usea.c], [1])
 
 
 AT_CLEANUP
@@ -202,7 +202,7 @@ AT_SETUP([cwrapper and installed shared libraries])
 AT_KEYWORDS([libtool])
 
 # make sure existing libtool is configured for shared libraries
-AT_CHECK([$LIBTOOL --features | grep 'enable shared libraries' || exit 77],
+AT_CHECK([$LIBTOOL --features | $GREP 'enable shared libraries' || exit 77],
         [], [ignore])
 
 LDFLAGS="$LDFLAGS -no-undefined"
index 0d6e91398a464952a93b9581c43765e5b350133e..edf528ddb5154f00f25af8b6ff21e8ead36e7571 100644 (file)
@@ -145,7 +145,7 @@ echo stamp > $lockfile
 AT_CHECK([$LIBTOOL --dry-run --mode=link $CC $CFLAGS $LDFLAGS ]dnl
         [ -o libbar.la bar.lo -rpath /foo libfoo.la],
         [], [ignore], [ignore])
-AT_CHECK([grep stamp $lockfile], [], [ignore])
+AT_CHECK([$GREP stamp $lockfile], [], [ignore])
 
 AT_CLEANUP
 
@@ -187,7 +187,7 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS ]dnl
 AT_CHECK([echo quit | $LIBTOOL --mode=execute gdb main],
         [ignore], [ignore], [stderr])
 
-AT_CHECK([grep 'Could not find object file' stderr],[1],[ignore],[ignore])
+AT_CHECK([$GREP 'Could not find object file' stderr],[1],[ignore],[ignore])
 
 AT_XFAIL_IF([
 eval "`$LIBTOOL --config | $EGREP '^(whole_archive_flag_spec)='`"
@@ -201,7 +201,7 @@ rm -rf .libs/*.dSYM
 
 AT_CHECK([echo quit | $LIBTOOL --mode=execute gdb main],
         [ignore], [ignore], [stderr])
-AT_CHECK([grep 'Could not find object file' stderr],[1],[ignore],[ignore])
+AT_CHECK([$GREP 'Could not find object file' stderr],[1],[ignore],[ignore])
 
 AT_CLEANUP
 
@@ -234,7 +234,7 @@ AT_SETUP([darwin can lt_dlopen .dylib and .so files])
 AT_KEYWORDS([libltdl dylib])
 
 # This test requires shared library support.
-AT_CHECK([$LIBTOOL --features | grep 'enable shared libraries' || exit 77],
+AT_CHECK([$LIBTOOL --features | $GREP 'enable shared libraries' || exit 77],
         [], [ignore])
 
 eval `$LIBTOOL --config | $EGREP '^shrext_cmds='`
@@ -437,10 +437,10 @@ rm $libdir/libsimple-dylib.la
 for dir in inst/lib "$libdir"; do
   LT_AT_EXEC_CHECK([./ltdl-loader], [], [stdout], [ignore],
            [$dir/simple-module World])
-  AT_CHECK([grep "Hello, World" stdout], [], [ignore])
+  AT_CHECK([$GREP "Hello, World" stdout], [], [ignore])
   LT_AT_EXEC_CHECK([./ltdl-loader], [], [stdout], [ignore],
            [$dir/libsimple-dylib World])
-  AT_CHECK([grep "Hello, World" stdout], [], [ignore])
+  AT_CHECK([$GREP "Hello, World" stdout], [], [ignore])
 done
 
 AT_CLEANUP
index 6a7556d7158f0f05e009baf7b4b92b39618e8dbf..eba68c2a752c8adc0f4fcca896e0a3ce75fd3192 100644 (file)
@@ -566,7 +566,7 @@ hc-direct: $(hell_OBJECTS) $(hell_DEPENDENCIES) $(libdir)/libhello.la
        @rm -f hc-direct
        @echo "You may ignore any linking errors from the following command:"
        @shlib=./$(objdir)/libhello.a; \
-         eval "`grep '^library_names' libhello.la`"; \
+         eval "`$(GREP) '^library_names' libhello.la`"; \
          for lib in $$library_names; do \
            shlib="./$(objdir)/$$lib"; \
          done; \
@@ -593,7 +593,7 @@ hc-libpath: $(hell_OBJECTS) $(hell_DEPENDENCIES) $(libdir)/libhello.la
        @rm -f hc-libpath
        @echo "You may ignore any linking errors from the following command:"
        @$(SET_HARDCODE_FLAGS); \
-         eval `$(LIBTOOL) --config | grep '^shlibpath_var='`; \
+         eval `$(LIBTOOL) --config | $(GREP) '^shlibpath_var='`; \
          libdir=$(libdir); \
          flag=`eval echo \"$$hardcode_libdir_flag_spec\"`; \
          echo "$$shlibpath_var=./$(objdir) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(hell_OBJECTS) -lhello $(LIBS) $(LIBM) $$flag || echo unsupported > $@"; \
@@ -668,7 +668,7 @@ for file in hc-*; do
   elif $FGREP "$objdir" $file > /dev/null 2>&1; then
     # We retry fgrep without tr, in case the above lead to a false negative.
     hardcoded=yes
-  elif ($SED -e '1!d' $file | grep 'unsupported') >/dev/null 2>&1; then
+  elif ($SED -e '1!d' $file | $GREP 'unsupported') >/dev/null 2>&1; then
     hardcoded=unsupported
   fi
 
index 978438f0a69ec7ad29c99ad4044f33c7ce2c7c72..0f6af50ee96fdaaf420e869c2d54c601f6da089f 100644 (file)
@@ -27,7 +27,7 @@ AT_BANNER([DESTDIR tests])
 # Common setup for the next few tests.
 m4_pushdef([_LT_DIRSETUP],
 [# DESTDIR installs do not work with relink at install time.
-AT_XFAIL_IF([eval `$LIBTOOL --config | grep '^fast_install='`
+AT_XFAIL_IF([eval `$LIBTOOL --config | $GREP '^fast_install='`
            case $fast_install in no) :;; *) false;; esac])
 LDFLAGS="$LDFLAGS -no-undefined"
 if test -n "$we_are_on_a_safe_system"; then # let's read shorter cmdlines.
index 39a964cf74a547d2fc88a33f8fee78d12569829f..6fffd8c7c809c191963b7798a46fc5b9c94e8fe6 100644 (file)
@@ -39,7 +39,7 @@ int some_variable = 0;
 
 AT_CHECK([$CC $CPPFLAGS $CFLAGS -c variable.c], [], [ignore], [ignore])
 AT_CHECK([$NM variable.$OBJEXT], [], [stdout], [ignore])
-AT_CHECK([grep 'External.*some_variable' stdout || exit 77], [], [ignore])
+AT_CHECK([$GREP 'External.*some_variable' stdout || exit 77], [], [ignore])
 
 eval `$LIBTOOL --config | $EGREP '^(global_symbol_pipe)='`
 
@@ -106,6 +106,6 @@ String Table Size = 0x11 bytes
 # Check if the _convenience symbol from section SECT3 in conv.lib is
 # present even if section SECT3 in foo.obj is hidden.
 AT_CHECK([< dumpbin-output eval "$global_symbol_pipe"], [], [stdout])
-AT_CHECK([grep convenience stdout], [], [ignore])
+AT_CHECK([$GREP convenience stdout], [], [ignore])
 
 AT_CLEANUP
index 7c59594c5101aa2d80665ae86ebe923d1718b996..161780fe965d0b6b48eb87ad73429bf960734958 100644 (file)
@@ -112,8 +112,8 @@ LT_AT_CONFIGURE
 LT_AT_MAKE
 
 LT_AT_EXEC_CHECK([./hell], [0], [stdout])
-AT_CHECK([grep 'Welcome to GNU Hell' stdout], [], [ignore])
-AT_CHECK([grep 'This is not GNU Hello.' stdout],
+AT_CHECK([$GREP 'Welcome to GNU Hell' stdout], [], [ignore])
+AT_CHECK([$GREP 'This is not GNU Hello.' stdout],
         [], [ignore])
 
 AT_CLEANUP
@@ -219,8 +219,8 @@ LT_AT_CONFIGURE
 LT_AT_MAKE
 
 LT_AT_EXEC_CHECK([./hell], [0], [stdout])
-AT_CHECK([grep 'Welcome to GNU Hell' stdout], [], [ignore])
-AT_CHECK([grep 'This is not GNU Hello.' stdout], [], [ignore])
+AT_CHECK([$GREP 'Welcome to GNU Hell' stdout], [], [ignore])
+AT_CHECK([$GREP 'This is not GNU Hello.' stdout], [], [ignore])
 
 # Make sure config.status --recheck updates the libtool script
 rm libtool
index e039b2da5c74ffb37b163e087f4e22a090ff06a3..ba421a9b503285c9d88eae1191bd57e6969fd910 100644 (file)
@@ -214,8 +214,8 @@ done
 # Check that .la files are not transformed by the wrapper searching loop.
 AT_CHECK([$LIBTOOL --mode=execute echo ./main$EXEEXT liba.lo libfakelib.la], [], [stdout])
 # This could be .libs/lt-main or similar (or just plain 'main').
-AT_CHECK([grep main stdout], [], [ignore])
-AT_CHECK([grep liba.lo stdout], [], [ignore])
-AT_CHECK([grep libfakelib.la stdout], [], [ignore])
+AT_CHECK([$GREP main stdout], [], [ignore])
+AT_CHECK([$GREP liba.lo stdout], [], [ignore])
+AT_CHECK([$GREP libfakelib.la stdout], [], [ignore])
 
 AT_CLEANUP
index 55a513abfabc8299b21fb4e721f8cc7063f61c4d..e5c98164ad4d60729cf0170d7ecff4988722247b 100755 (executable)
@@ -25,7 +25,7 @@
 AT_SETUP([export from a DLL with a .def file])
 AT_KEYWORDS([libtool])
 
-AT_CHECK([$LIBTOOL --features | grep 'disable shared libraries' && (exit 77)],
+AT_CHECK([$LIBTOOL --features | $GREP 'disable shared libraries' && (exit 77)],
         [1], [ignore])
 eval `$LIBTOOL --config | $EGREP '^(shrext_cmds|libname_spec|soname_spec)='`
 
index 029656b5aaa11fe64ab5caaf68881dcca5054659..d66198a0ac80ca3013dfdf4845e80232b788e52d 100644 (file)
@@ -25,7 +25,7 @@
 AT_SETUP([Export test])
 AT_KEYWORDS([libtool])
 
-AT_CHECK([$LIBTOOL --features | grep 'disable shared libraries' && (exit 77)],
+AT_CHECK([$LIBTOOL --features | $GREP 'disable shared libraries' && (exit 77)],
         [1], [ignore])
 AT_CHECK([eval `$LIBTOOL --config | $SED -n '/^archive_expsym_cmds=/,/^$/p'`
          test -n "$archive_expsym_cmds" || echo false >can-hide
index ac96b97736895aeb4694a8c9b8fa7306b37251d5..d30c1c72345f4e0c6d8dccbea2bf1d49956d3800 100644 (file)
@@ -263,7 +263,7 @@ LT_AT_HOST_DATA([expout],
 LT_AT_EXEC_CHECK([./fprogram], 0, [stdout])
 
 # A weaker output content check that is agnostic to the issues above.
-AT_CHECK([grep 'Welcome to GNU libtool Fortran demo!' stdout],
+AT_CHECK([$GREP 'Welcome to GNU libtool Fortran demo!' stdout],
          [0], [ignore])
 
 # Similarly, we can't reliably compare actual output with the following.
@@ -284,7 +284,7 @@ The Fortran 77 subroutine is ok!
 LT_AT_EXEC_CHECK([./cprogram], 0, [stdout])
 
 # A weaker output content check that is agnostic to the issues above.
-AT_CHECK([grep 'Welcome to GNU libtool mixed C/Fortran demo!' stdout],
+AT_CHECK([$GREP 'Welcome to GNU libtool mixed C/Fortran demo!' stdout],
          [0], [ignore])
 ])
 
index f8465feec0719a734c5b2050ea560945122cad9f..ff3976887c8bc65fa31505b904cbe74899249804 100644 (file)
@@ -277,7 +277,7 @@ LT_AT_HOST_DATA([expout],
 LT_AT_EXEC_CHECK([./fprogram], 0, [stdout])
 
 # A weaker output content check that is agnostic to the issues above.
-AT_CHECK([grep 'Welcome to GNU libtool Fortran demo!' stdout],
+AT_CHECK([$GREP 'Welcome to GNU libtool Fortran demo!' stdout],
          [0], [ignore])
 
 # Similarly, we can't reliably compare actual output with the following.
@@ -298,7 +298,7 @@ The Fortran subroutine is ok!
 LT_AT_EXEC_CHECK([./cprogram], 0, [stdout])
 
 # A weaker output content check that is agnostic to the issues above.
-AT_CHECK([grep 'Welcome to GNU libtool mixed C/Fortran demo!' stdout],
+AT_CHECK([$GREP 'Welcome to GNU libtool mixed C/Fortran demo!' stdout],
          [0], [ignore])
 ])
 
index 3024f2b463d9c1e21160d3de2257c6fbfe1e4ef4..df04ea3fe932f45f58f4c308bb185de113722321 100644 (file)
@@ -59,7 +59,7 @@ compile="$GCJ $GCJFLAGS" link="$GCJ $GCJFLAGS $LDFLAGS" source=a.java
 ])
 
 # Linker flags are not passed to the archiver, so don't test static libraries.
-if $LIBTOOL --features | grep 'enable shared libraries'; then
+if $LIBTOOL --features | $GREP 'enable shared libraries'; then
   library_and_module='library.la "module.la -module -avoid-version"'
 else
   library_and_module=
index a8e8f8f4ad1a2640fd0d3d2390627940b7d85180..3442255db28004688e94f73a1bd5450f53962d66 100644 (file)
@@ -29,15 +29,15 @@ AT_KEYWORDS([libtoolize])
 
 AT_CHECK([$LIBTOOLIZE --help], [], [ignore])
 AT_CHECK([$LIBTOOLIZE --version], [], [stdout])
-AT_CHECK([grep 'Copyright.*Free Software Foundation' stdout], [], [ignore])
+AT_CHECK([$GREP 'Copyright.*Free Software Foundation' stdout], [], [ignore])
 AT_CHECK([$LIBTOOL --help], [], [ignore])
 AT_CHECK([$LIBTOOL --help-all], [], [ignore])
 AT_CHECK([$LIBTOOL --version], [], [stdout])
-AT_CHECK([grep 'Copyright.*Free Software Foundation' stdout], [], [ignore])
+AT_CHECK([$GREP 'Copyright.*Free Software Foundation' stdout], [], [ignore])
 
 AT_CHECK([$LIBTOOL], [1], [stdout], [stderr])
-AT_CHECK([grep 'specify a MODE' stderr], [], [ignore])
-AT_CHECK([grep ' --help' stdout], [], [ignore])
+AT_CHECK([$GREP 'specify a MODE' stderr], [], [ignore])
+AT_CHECK([$GREP ' --help' stdout], [], [ignore])
 
 AT_CLEANUP
 
@@ -122,11 +122,11 @@ AT_CHECK([case "$LIBTOOL $CC $CPPFLAGS $CFLAGS $LDFLAGS " in ]dnl
 check_trace ()
 {
   if test X--debug = "X$trace"; then
-    AT_CHECK([grep 'enabling shell trace mode' stdout stderr], [0], [ignore])
-    AT_CHECK([grep ' --mode' stderr], [0], [ignore])
+    AT_CHECK([$GREP 'enabling shell trace mode' stdout stderr], [0], [ignore])
+    AT_CHECK([$GREP ' --mode' stderr], [0], [ignore])
   else
-    AT_CHECK([grep 'enabling shell trace mode' stdout stderr], [1])
-    AT_CHECK([grep ' --mode' stderr], [1])
+    AT_CHECK([$GREP 'enabling shell trace mode' stdout stderr], [1])
+    AT_CHECK([$GREP ' --mode' stderr], [1])
   fi
 }
 
@@ -163,12 +163,12 @@ for trace in '' --debug; do
   # it was passed at link mode.
   AT_CHECK([$orig_LIBTOOL --mode=install $lt_INSTALL liba.la libb.la $libdir],
           [], [stdout], [stderr])
-  if grep ': relinking ' stdout stderr; then
+  if $GREP ': relinking ' stdout stderr; then
     if test X--debug = "X$trace"; then
-      AT_CHECK([grep ' --mode=relink' stdout stderr | grep ' --debug '],
+      AT_CHECK([$GREP ' --mode=relink' stdout stderr | $GREP ' --debug '],
               [0], [ignore])
     else
-      AT_CHECK([grep ' --mode=relink' stdout stderr | grep ' --debug '],
+      AT_CHECK([$GREP ' --mode=relink' stdout stderr | $GREP ' --debug '],
               [1])
     fi
   fi
index b132ce833b311b84d71ea5496b9b0be8845b6bb8..9f66987ba5a18f9246e701a36572b4851f7fdcf9 100644 (file)
@@ -79,26 +79,26 @@ AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo
 # 'llt_[[ui]]nlikely_existing_lib.*llt_[[ui]]nlikely_existing_lib'
 # here.  This fails on win32/MSVC because the generated command lines have a
 # different syntax.  So drop the first 'l'.
-AT_CHECK([$LIBTOOL --features | grep 'disable shared libraries' && (exit 77)], [1], [ignore])
-AT_CHECK([grep 'lt_[[ui]]nlikely_existing_lib.*lt_[[ui]]nlikely_existing_lib' stdout],
+AT_CHECK([$LIBTOOL --features | $GREP 'disable shared libraries' && (exit 77)], [1], [ignore])
+AT_CHECK([$GREP 'lt_[[ui]]nlikely_existing_lib.*lt_[[ui]]nlikely_existing_lib' stdout],
         [0],[ignore],[ignore])
 AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent  ./libfoo.la ./libbar.la],
        [ignore],[stdout],[ignore])
-AT_CHECK([grep 'lt_[[ui]]nlikely_existing_lib.*lt_[[ui]]nlikely_existing_lib' stdout],
+AT_CHECK([$GREP 'lt_[[ui]]nlikely_existing_lib.*lt_[[ui]]nlikely_existing_lib' stdout],
         [0],[ignore],[ignore])
 
 # now check for duplicates
 AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o libbaz.la baz.lo -no-undefined -rpath /nonexistent ./libfoo.la ./libbar.la ./libboth.la],
         [ignore],[stdout],[ignore])
-AT_CHECK([grep 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout],
+AT_CHECK([$GREP 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout],
         [1],[ignore],[ignore])
-AT_CHECK([grep 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout],
+AT_CHECK([$GREP 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout],
         [1],[ignore],[ignore])
 AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.lo -no-undefined -rpath /nonexistent  ./libfoo.la ./libbar.la ./libboth.la],
        [ignore],[stdout],[ignore])
-AT_CHECK([grep 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout],
+AT_CHECK([$GREP 'lt_inlikely_existing_lib.*lt_inlikely_existing_lib' stdout],
         [1],[ignore],[ignore])
-AT_CHECK([grep 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout],
+AT_CHECK([$GREP 'lt_unlikely_existing_lib.*lt_unlikely_existing_lib' stdout],
         [1],[ignore],[ignore])
 
 mv libboth.la libboth.la.bak
@@ -107,7 +107,7 @@ rm libboth.la.bak
 
 AT_CHECK([$LIBTOOL -n --mode=link --tag=CC $CC $CFLAGS $LDFLAGS -framework Cocoa -framework ApplicationServices -o libbaz.la baz.lo libboth.la -no-undefined -rpath /nonexistent],
         [], [stdout], [ignore])
-AT_CHECK([grep Cocoa.ltframework stdout], [1], [], [])
-AT_CHECK([grep ' -framework Cocoa' stdout], [0], [ignore], [])
+AT_CHECK([$GREP Cocoa.ltframework stdout], [1], [], [])
+AT_CHECK([$GREP ' -framework Cocoa' stdout], [0], [ignore], [])
 
 AT_CLEANUP
index b9b2e84f933d551f4153aeaff71ea925d9183338..2c377ee8666f55f2205a0de6cae90d1a435654f3 100644 (file)
@@ -28,7 +28,7 @@ AT_KEYWORDS([libtool])
 # Ensure that install_override_mode overrides the mode of the shared
 # library (and only the shared library).
 
-AT_CHECK([$LIBTOOL --features | grep 'enable shared libraries' || exit 77],
+AT_CHECK([$LIBTOOL --features | $GREP 'enable shared libraries' || exit 77],
         [], [ignore])
 $SED 's|^\(install_override_mode\)=.*|\1=755|' < $LIBTOOL > ./libtool
 LIBTOOL=./libtool
@@ -43,10 +43,10 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la a.lo ]dnl
         [-rpath $inst -no-undefined], [], [ignore], [ignore])
 AT_CHECK([$LIBTOOL --mode=install $lt_INSTALL liba.la $inst],
         [], [stdout], [ignore])
-AT_CHECK([grep ' -m 755' stdout], [], [ignore])
+AT_CHECK([$GREP ' -m 755' stdout], [], [ignore])
 AT_CHECK([$LIBTOOL --mode=install $lt_INSTALL -m 644 liba.la $inst],
         [], [stdout], [ignore])
-AT_CHECK([grep ' -m 755' stdout], [], [ignore])
-AT_CHECK([grep ' -m 644.*liba.la' stdout], [], [ignore])
+AT_CHECK([$GREP ' -m 755' stdout], [], [ignore])
+AT_CHECK([$GREP ' -m 644.*liba.la' stdout], [], [ignore])
 
 AT_CLEANUP
index 0232b30281c647a871db293c6da0b4d92270b481..6447c0f8349b25c22c952762a924624ebddb1d84 100644 (file)
@@ -131,7 +131,7 @@ libdir='/somewhere'
 for file in ./missing-closing-quote.la ./wrong-quotes.la \
            ./no-dlname.la ./nonexistent-dlname.la; do
   LT_AT_EXEC_CHECK([./main], [1], [stdout], [ignore], [$file])
-  AT_CHECK([grep 'plugin failed to open' stdout], [], [ignore])
+  AT_CHECK([$GREP 'plugin failed to open' stdout], [], [ignore])
 done
 
 AT_CLEANUP
index d3812bf9599d4810417e4cc6e75ab4f327c4a1ab..6d174d0231507052074d1c8954b0fa90e5625d6e 100755 (executable)
@@ -33,10 +33,10 @@ AT_BANNER([Basic libtool operation.])
 AT_SETUP([check help output])
 
 AT_CHECK([$LIBTOOL --help], [0], [stdout], [stderr])
-AT_CHECK([grep '^Usage:' stdout stderr], [0], [ignore])
+AT_CHECK([$GREP '^Usage:' stdout stderr], [0], [ignore])
 
 AT_CHECK([$LIBTOOL --mode=link --help], [0], [stdout], [stderr])
-AT_CHECK([grep '^Usage:' stdout stderr], [0], [ignore])
+AT_CHECK([$GREP '^Usage:' stdout stderr], [0], [ignore])
 
 AT_CLEANUP
 
@@ -48,7 +48,7 @@ AT_CLEANUP
 AT_SETUP([diagnose no mode specified])
 
 AT_CHECK([$LIBTOOL], [1], [ignore], [stderr])
-AT_CHECK([grep 'you must specify a MODE' stderr], [0], [ignore])
+AT_CHECK([$GREP 'you must specify a MODE' stderr], [0], [ignore])
 
 AT_CLEANUP
 
@@ -59,7 +59,7 @@ AT_CLEANUP
 
 AT_SETUP([quote shell meta-characters in filenames])
 
-eval `$LIBTOOL --config | grep '^wl='`
+eval `$LIBTOOL --config | $GREP '^wl='`
 
 # Do the torture test.
 for mode in compile link install; do
@@ -103,7 +103,7 @@ for mode in compile link install; do
   # We must not attempt to match $preargs in the output, because libtool
   # may modify them.  For example, on Cygwin, 'libtool --mode=link gcc -o
   # foo foo.o'  becomes 'gcc -o foo.exe foo.o'.
-  AT_CHECK([grep "$mode:.*$match_preflag$flag:test " stdout], [0], [ignore])
+  AT_CHECK([$GREP "$mode:.*$match_preflag$flag:test " stdout], [0], [ignore])
 
 
   # Non-trivial...
@@ -116,14 +116,14 @@ for mode in compile link install; do
           [0], [stdout])
   # NOTE: we use "..."'"'"..." to insert a literal quote into the expression
   #       because "...\"..." is not expanded consistently by all shells.
-  AT_CHECK([grep "$mode:.*$match_preflag"'"\?'"$flag\\\\\\\\:test\\\\\\\\"'"\? ' stdout],
+  AT_CHECK([$GREP "$mode:.*$match_preflag"'"\?'"$flag\\\\\\\\:test\\\\\\\\"'"\? ' stdout],
              [0], [ignore])
 
   # Shell metacharacters that should be backslashified by libtool.
   for mchar in \" \` \$; do
     AT_CHECK([$LIBTOOL -n --mode=$mode $preargs $preflag"$flag$mchar:test$mchar" $postargs],
             [0], [stdout])
-    AT_CHECK([grep "$mode:.*$match_preflag"'"'"\?$flag\\\\$mchar:test\\\\$mchar"'"'"\? " stdout], [0], [ignore])
+    AT_CHECK([$GREP "$mode:.*$match_preflag"'"'"\?$flag\\\\$mchar:test\\\\$mchar"'"'"\? " stdout], [0], [ignore])
   done
 
   # Shell metacharacters that should be double quoted by libtool, and need
@@ -132,7 +132,7 @@ for mode in compile link install; do
 
     AT_CHECK([$LIBTOOL -n --mode=$mode $preargs $preflag"$flag$mchar:test$mchar" $postargs],
             [0], [stdout])
-    AT_CHECK([grep "$mode:.*$match_preflag\"$flag\\$mchar:test\\$mchar\" " stdout], [0], [ignore])
+    AT_CHECK([$GREP "$mode:.*$match_preflag\"$flag\\$mchar:test\\$mchar\" " stdout], [0], [ignore])
   done
 
   # Metacharacters that should be double quoted by libtool, but which are
@@ -141,7 +141,7 @@ for mode in compile link install; do
 
     AT_CHECK([$LIBTOOL -n --mode=$mode $preargs $preflag"$flag$mchar:test$mchar" $postargs],
             [0], [stdout])
-    AT_CHECK([grep "$mode:.*$match_preflag\"$flag$mchar:test$mchar\" " stdout], [0], [ignore])
+    AT_CHECK([$GREP "$mode:.*$match_preflag\"$flag$mchar:test$mchar\" " stdout], [0], [ignore])
   done
 done
 
@@ -163,14 +163,14 @@ for ext in $extensions; do
   # Try a sample compile command.
   AT_CHECK([$LIBTOOL -n --mode=compile compiler -c foo.$ext],
            [1], [ignore], [stderr])
-  AT_CHECK([grep 'cannot' stderr], [1], [ignore])
+  AT_CHECK([$GREP 'cannot' stderr], [1], [ignore])
 done
 
 # Make sure that invalid suffixes are not recognized.
 for name in $bad_names; do
   AT_CHECK([$LIBTOOL -n --mode=compile compiler -c $name],
            [1], [ignore], [stderr])
-  AT_CHECK([grep 'cannot' stderr], [0], [ignore])
+  AT_CHECK([$GREP 'cannot' stderr], [0], [ignore])
 done
 
 AT_CLEANUP
@@ -205,7 +205,7 @@ AT_CLEANUP
 AT_SETUP([check objectlist file operation])
 
 AT_CHECK([$LIBTOOL -n --mode=link $CC -objectlist nonexistent], [1], [ignore], [stderr])
-AT_CHECK([grep 'nonexistent' stderr], [0], [ignore])
+AT_CHECK([$GREP 'nonexistent' stderr], [0], [ignore])
 
 AT_CLEANUP
 
@@ -233,12 +233,12 @@ AT_CHECK([test -n "$traced_tags"])
 for tag in $traced_tags; do
   AT_CHECK([$LIBTOOL -n --mode=link --tag=$tag compiler -o liba.la foo.lo],
            [], [ignore], [stderr])
-  AT_CHECK([grep 'ignoring unknown tag' stderr], [1], [ignore])
+  AT_CHECK([$GREP 'ignoring unknown tag' stderr], [1], [ignore])
 done
 
 # Ensure the above command would have failed for unknown tags
 AT_CHECK([$LIBTOOL -n --mode=link --tag=UnKnOwN compiler -o liba.la foo.lo],
          [], [ignore], [stderr])
-AT_CHECK([grep 'ignoring unknown tag' stderr], [0], [ignore])
+AT_CHECK([$GREP 'ignoring unknown tag' stderr], [0], [ignore])
 
 AT_CLEANUP
index eab6d842e8f00dbfd5ac0a1e2148502dae595f5a..cdb307b17f714d3f500dd999cd977d12d1f9a3ac 100644 (file)
@@ -1160,7 +1160,7 @@ AT_DATA([libltdl/acinclude.m4],
 LT_AT_CHECK_LIBTOOLIZE([--copy --force --ltdl], 0, [ignore])
 
 # check files are left as expected
-AT_CHECK([grep 'keep me' acinclude.m4], 0, [ignore])
+AT_CHECK([$GREP 'keep me' acinclude.m4], 0, [ignore])
 AT_CHECK([test -f libltdl/acinclude.m4], 1, [ignore], [ignore])
 
 AT_CLEANUP
index 0cb2cfd1ab736bdd8fdb501e706daf11cb15d796..0fc8924f040f65e20fae237112989067f09ab996 100644 (file)
@@ -57,7 +57,7 @@ LT_AT_NORMALIZE_COMPILER_OUTPUT([stderr], [libtool-stderr])
 #   selections and the available locales.
 #
 #   Continuing processing using the "C" locale.
-AT_CHECK([grep locale stdout stderr && exit 77], [1])
+AT_CHECK([$GREP locale stdout stderr && exit 77], [1])
 AT_CHECK([diff expected-stderr libtool-stderr])
 AT_CHECK([diff expected-stdout libtool-stdout])
 
@@ -66,7 +66,7 @@ m4_define([lt_localize],
 [[LANGUAGE='a; nosuchprogram " '\''  & $x /#+*(){}|,:`\ !%']])
 AT_CHECK([(lt_localize $LIBTOOL --mode=compile --tag=CC $CC $CPPFLAGS $CFLAGS -c b.c)],
         [0], [stdout], [stderr])
-AT_CHECK([grep nosuchprogram stdout stderr], [1])
+AT_CHECK([$GREP nosuchprogram stdout stderr], [1])
 
 m4_popdef([lt_localize])
 
index ccb563c6d109a02c8e2c556907c317a6e86468dd..61d411d49121f1b93ef220000ea7ccca5a3e8e3f 100644 (file)
@@ -329,7 +329,7 @@ dlpreloadable='preload'
 # ------------------------------------------------------------------------- #
 
 have_shared=false
-$LIBTOOL --features | grep 'enable shared libraries' >/dev/null && have_shared=:
+$LIBTOOL --features | $GREP 'enable shared libraries' >/dev/null && have_shared=:
 
 case $host_os,$have_shared in
 cygwin* | mingw* | cegcc* | *,false)
index b837175fdfef55949a46b39abc8c8c8f2c7c19aa..d4a8b510a3c36c008f0c14c3d1d94f2c59f443f1 100644 (file)
@@ -27,7 +27,7 @@ AT_KEYWORDS([libltdl])
 AT_XFAIL_IF([:])
 
 # This test only works if the system allows undefined symbols.
-eval `$LIBTOOL --config | grep '^allow_undefined_flag='`
+eval `$LIBTOOL --config | $GREP '^allow_undefined_flag='`
 AT_CHECK([test unsupported != "$allow_undefined_flag" || exit 77])
 
 AT_DATA([main.c],
@@ -98,6 +98,6 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT
 
 LT_AT_EXEC_CHECK([./main], [], [ignore], [ignore], [./good-plugin.la])
 LT_AT_EXEC_CHECK([./main], [1], [ignore], [stderr], [./missing-symbol-plugin.la])
-AT_CHECK([grep 'missing symbol' stderr], [], [ignore])
+AT_CHECK([$GREP 'missing symbol' stderr], [], [ignore])
 
 AT_CLEANUP
index 78edd47241229e3d5d1bd614bc7567dee983d263..4c32b44c895c963219a347186a3229f25e70ec2f 100644 (file)
@@ -24,7 +24,7 @@ AT_SETUP([lt_dlopenext error messages])
 AT_KEYWORDS([libltdl])
 
 # This test requires shared library support.
-AT_CHECK([$LIBTOOL --features | grep 'enable shared libraries' || exit 77],
+AT_CHECK([$LIBTOOL --features | $GREP 'enable shared libraries' || exit 77],
         [], [ignore])
 
 prefix=`pwd`/inst
@@ -234,7 +234,7 @@ for lafile in $have_lafile; do
   for dir in inst/lib "$libdir"; do
     LT_AT_EXEC_CHECK([./ltdl-loader], [], [stdout], [ignore],
                     [$dir/simple-module World])
-    AT_CHECK([grep "Hello, World" stdout], [], [ignore])
+    AT_CHECK([$GREP "Hello, World" stdout], [], [ignore])
 
     for var in MODULE_PATH LTDL_LIBRARY_PATH $shlibpath_var
     do
@@ -242,7 +242,7 @@ for lafile in $have_lafile; do
       export $var
       LT_AT_EXEC_CHECK([./ltdl-loader], [], [stdout], [ignore],
                       [simple-module World])
-      AT_CHECK([grep "Hello, World" stdout], [], [ignore])
+      AT_CHECK([$GREP "Hello, World" stdout], [], [ignore])
       $unset $var || eval $var=
     done
   done
index 021548440ebf7bb4547227a713f9aa89cdb3a5fb..b3066690d91290c8e3541f2658d89851d774846a 100644 (file)
@@ -32,8 +32,8 @@ AT_CHECK([test -f "$argz_o" || exit 77])
 AT_CHECK([eval "$NM \"\$argz_o\" | $global_symbol_pipe"],
         [], [stdout], [ignore])
 # Check for global symbols beginning with "argz_"
-AT_CHECK([grep "^T argz_" stdout], [1])
+AT_CHECK([$GREP "^T argz_" stdout], [1])
 # and also for the _ prefixed version "_argz_"
-AT_CHECK([grep "^T _argz_" stdout], [1])
+AT_CHECK([$GREP "^T _argz_" stdout], [1])
 
 AT_CLEANUP
index ea3334a0f92637f6e9be8117a47f396f5010523c..9f53dd33b0ba10516722d019cb756590920d5338 100644 (file)
@@ -24,7 +24,7 @@ AT_SETUP([libdir of installed modules])
 AT_KEYWORDS([libltdl])
 
 # This test requires shared library support.
-AT_CHECK([$LIBTOOL --features | grep 'enable shared libraries' || exit 77],
+AT_CHECK([$LIBTOOL --features | $GREP 'enable shared libraries' || exit 77],
         [], [ignore])
 
 # With MinGW, try Windows-style paths only.
index 55e730045d2f784ea50492fc51c4588e95f2e184..8a96fb0fb9afb88b7f56fdc0a599bf56bae4d3b0 100644 (file)
@@ -601,13 +601,13 @@ prefixdir=`pwd`/_inst
 m4_define([_LT_CHECK_EXECUTE],
 [LT_AT_MAKE
 LT_AT_EXEC_CHECK([./mdemo_static], 0, [ignore], [],
-    [./foo1.la ./libfoo2.la | grep '^try_iterate: '])
+    [./foo1.la ./libfoo2.la | $GREP '^try_iterate: '])
 LT_AT_EXEC_CHECK([./mdemo], 0, [ignore], [],
-    [./foo1.la ./libfoo2.la | grep '^try_iterate: '])
+    [./foo1.la ./libfoo2.la | $GREP '^try_iterate: '])
 LT_AT_EXEC_CHECK([./mdemo_static], 0, [ignore], [],
-    [`pwd`/foo1.la `pwd`/libfoo2.la | grep '^try_iterate: '])
+    [`pwd`/foo1.la `pwd`/libfoo2.la | $GREP '^try_iterate: '])
 LT_AT_EXEC_CHECK([./mdemo], 0, [ignore], [],
-    [`pwd`/foo1.la `pwd`/libfoo2.la | grep '^try_iterate: '])
+    [`pwd`/foo1.la `pwd`/libfoo2.la | $GREP '^try_iterate: '])
 ])
 
 # _LT_CHECK_INSTALL
@@ -620,9 +620,9 @@ m4_define([_LT_CHECK_INSTALL],
 PATH=$prefixdir/lib:$PATH
 
 LT_AT_EXEC_CHECK([$prefixdir/bin/mdemo_static], 0, [ignore], [],
-    [$prefixdir/lib/foo1.la $prefixdir/lib/libfoo2.la | grep '^try_iterate: '])
+    [$prefixdir/lib/foo1.la $prefixdir/lib/libfoo2.la | $GREP '^try_iterate: '])
 LT_AT_EXEC_CHECK([$prefixdir/bin/mdemo], 0, [ignore], [],
-    [$prefixdir/lib/foo1.la $prefixdir/lib/libfoo2.la | grep '^try_iterate: '])
+    [$prefixdir/lib/foo1.la $prefixdir/lib/libfoo2.la | $GREP '^try_iterate: '])
 ])
 
 
index b5a0e482aece49fd212dbefbcec0cc9d1a51874b..6d1d6769031e7483aae76b3e9dba4d7a0e430abd 100644 (file)
@@ -98,10 +98,10 @@ $SED '/AM_PROG_LIBTOOL/d' configure.in >configure.int
 mv -f configure.int configure.in
 AT_CHECK([$LIBTOOLIZE -n], [0], [stdout], [stderr])
 # ensure no shell errors:
-AT_CHECK([grep -v "^libtoolize: " stderr], [1])
-AT_CHECK([grep "Remember to add.*LT_INIT.*to configure.in" stdout], [0], [ignore])
-AT_CHECK([grep "Consider adding.*LT_WITH_LTDL" stdout], [1])
-AT_CHECK([grep "Remember to add.*LT_CONFIG_LTDL_DIR" stdout], [1])
+AT_CHECK([$GREP -v "^libtoolize: " stderr], [1])
+AT_CHECK([$GREP "Remember to add.*LT_INIT.*to configure.in" stdout], [0], [ignore])
+AT_CHECK([$GREP "Consider adding.*LT_WITH_LTDL" stdout], [1])
+AT_CHECK([$GREP "Remember to add.*LT_CONFIG_LTDL_DIR" stdout], [1])
 
 AT_CLEANUP
 
index d8fb11762b9609f67a270dbe9a70ac5eceef3cca..ec22179cce9dff189fa07b49c0860b9862a25eec 100644 (file)
@@ -36,8 +36,8 @@ C_pic_flag='-fpic -DPIC'
 AT_CHECK([$CC $CPPFLAGS $CFLAGS $C_pic_flag -c foo.c || exit 77],
         [], [stdout], [stderr])
 # The configure test for the PIC flag also checks for warnings.
-AT_CHECK([grep fpic stdout stderr && exit 77], [1])
-AT_CHECK([[grep '[uU]nknown.*option' stdout stderr && exit 77]], [1])
+AT_CHECK([$GREP fpic stdout stderr && exit 77], [1])
+AT_CHECK([[$GREP '[uU]nknown.*option' stdout stderr && exit 77]], [1])
 
 CXX_pic_flag='-fpic -DPIC'
 if $CXX $CPPFLAGS $CXXFLAGS $CXX_pic_flag -c foo.cpp; then :; else
@@ -57,7 +57,7 @@ LT_AT_CONFIGURE([lt_cv_prog_compiler_pic="$C_pic_flag" ]dnl
                [./configure])
 : ${MAKE=make}
 AT_CHECK([$MAKE], [], [stdout], [ignore])
-AT_CHECK([if ./libtool --features | grep 'enable shared libraries'; then ]dnl
-        [  grep ' -fpic' stdout; else exit 77; fi], [], [ignore], [ignore])
+AT_CHECK([if ./libtool --features | $GREP 'enable shared libraries'; then ]dnl
+        [  $GREP ' -fpic' stdout; else exit 77; fi], [], [ignore], [ignore])
 
 AT_CLEANUP
index 4a8d0d350502c6458262c4f9a9ffd7d0086d4a0b..84870c11a6ff7191f4c2578cec0d4e5e7fae9299 100644 (file)
@@ -143,6 +143,6 @@ AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o main$EXEEXT main.$OBJEXT
         [-dlopen plugin.la $LIBLTDL],
         [], [ignore], [ignore])
 LT_AT_EXEC_CHECK([./main], [], [stdout], [ignore], [./plugin.la])
-AT_CHECK([grep 'called from atexit handler' stdout], [], [ignore])
+AT_CHECK([$GREP 'called from atexit handler' stdout], [], [ignore])
 
 AT_CLEANUP
index 2b6b5225701ac33479086e392e78438e6a1cd4b0..a4ee126205cc4946f4863bb0a388acdbc3dcf6a5 100644 (file)
@@ -58,8 +58,8 @@ AT_CHECK([$LIBTOOL --mode=install cp liba.la $libdir/liba.la], [], [ignore], [ig
 AT_CHECK([$LIBTOOL --mode=install cp libb.la $libdir/libb.la], [], [ignore], [ignore])
 AT_CHECK([$LIBTOOL --mode=install cp m$EXEEXT $bindir/m$EXEEXT], [], [ignore], [ignore])
 
-AT_CHECK([grep /foobar $libdir/liba.la], [], [ignore])
-AT_CHECK([grep /foobar $libdir/libb.la], [], [ignore])
+AT_CHECK([$GREP /foobar $libdir/liba.la], [], [ignore])
+AT_CHECK([$GREP /foobar $libdir/libb.la], [], [ignore])
 
 # TODO: check that m gets -R, too.
 
index c3eb72021ebdb81d7c77a79a4b5933a66a0d8e1d..641a71ce8160933bca1908359783e1c09380e39e 100644 (file)
@@ -77,7 +77,7 @@ HCURSOR get_cursor (void)
 }
 ]])
 
-eval "`$LIBTOOL --config | grep '^build_libtool_libs='`"
+eval "`$LIBTOOL --config | $GREP '^build_libtool_libs='`"
 AT_CHECK([test yes = "$build_libtool_libs" || exit 77])
 
 AT_CHECK([$LIBTOOL --mode=compile --tag=CC \
@@ -92,6 +92,6 @@ AT_CHECK([$LIBTOOL --mode=link --tag=CC --tag=disable-static \
 
 # If -luser32 was found, then libtool will build a shared library,
 # otherwise libtool will fall back to creating a static library.
-AT_CHECK([grep old_library=\'\' libgc.la], [], [ignore])
+AT_CHECK([$GREP old_library=\'\' libgc.la], [], [ignore])
 
 AT_CLEANUP
index 42eedd5dc1fbcf05a5e21c9d4c411a7fa6c868ab..948538dc97076f5424dcb812f7aa55822b9990b4 100644 (file)
@@ -86,8 +86,8 @@ bindir_broken=$prefix_broken/bin
 have_static=false
 have_shared=false
 per_deplib=false
-$LIBTOOL --features | grep 'enable static libraries' >/dev/null && have_static=:
-$LIBTOOL --features | grep 'enable shared libraries' >/dev/null && have_shared=:
+$LIBTOOL --features | $GREP 'enable static libraries' >/dev/null && have_static=:
+$LIBTOOL --features | $GREP 'enable shared libraries' >/dev/null && have_shared=:
 eval `$LIBTOOL --config |
         $EGREP '^(per_deplib_(static|dynamic)_flag|shlibpath_var|link_static_flag)='`
 if test -n "$per_deplib_static_flag" && test -n "$per_deplib_dynamic_flag"; then
index f81a7abd2d16e0076870743feef55b6dc382c0bb..9a78d5e9044589775fdc529270943468d759f249 100644 (file)
@@ -104,7 +104,7 @@ LT_AT_BOOTSTRAP([], [-I $abs_top_srcdir/libltdl/m4], [ignore],
 
 AT_CHECK([$MAKE install DESTDIR=$sysroot], [0], [ignore], [ignore])
 AT_CHECK([test -f "$sysroot/$prefix/lib/lib1.la"])
-AT_CHECK([grep -F "$sysroot" "$sysroot/$prefix/lib/lib1.la"], [1])
+AT_CHECK([$GREP -F "$sysroot" "$sysroot/$prefix/lib/lib1.la"], [1])
 cd ..
 
 # Build and install package 2.
@@ -145,7 +145,7 @@ LT_AT_BOOTSTRAP([], [-I $abs_top_srcdir/libltdl/m4], [ignore],
 
 AT_CHECK([$MAKE install DESTDIR=$sysroot], [0], [ignore], [ignore])
 AT_CHECK([test -f "$sysroot/$prefix/lib/lib2.la"])
-AT_CHECK([grep -F "$sysroot" "$sysroot/$prefix/lib/lib2.la"], [1])
+AT_CHECK([$GREP -F "$sysroot" "$sysroot/$prefix/lib/lib2.la"], [1])
 cd ..
 
 # Build and install a program.
@@ -185,10 +185,10 @@ LT_AT_BOOTSTRAP([], [-I $abs_top_srcdir/libltdl/m4], [ignore],
 
 AT_CHECK([$MAKE install DESTDIR=$sysroot], [0], [ignore], [ignore])
 AT_CHECK([test -f "$sysroot/$prefix/bin/prog$EXEEXT"])
-AT_CHECK([grep -F "$sysroot" "$sysroot/$prefix/bin/prog$EXEEXT"], [1])
-AT_CHECK([grep "'.*=" $sysroot/$prefix/lib/lib2.la], [0], [ignore])
+AT_CHECK([$GREP -F "$sysroot" "$sysroot/$prefix/bin/prog$EXEEXT"], [1])
+AT_CHECK([$GREP "'.*=" $sysroot/$prefix/lib/lib2.la], [0], [ignore])
 AT_CHECK([./libtool --mode=finish $sysroot/$prefix/lib/lib@<:@12@:>@.la], [0], [ignore])
-AT_CHECK([grep "'.*=" $sysroot/$prefix/lib/lib@<:@12@:>@.la], [1])
+AT_CHECK([$GREP "'.*=" $sysroot/$prefix/lib/lib@<:@12@:>@.la], [1])
 
 # missing tests
 # 1) pass absolute .la files
index 6ffd0bd988f707575feeba898258a87dc0d7124b..cb0c4b4218d3b60c9591abc00552702c98799995 100644 (file)
@@ -214,7 +214,7 @@ cd obj
 
 # If the compiler supports -c -o, we want to use it:
 # it may make a difference for templates
-eval `$LIBTOOL --tag=CXX --config | grep ^compiler_c_o=`
+eval `$LIBTOOL --tag=CXX --config | $GREP ^compiler_c_o=`
 case $compiler_c_o in
 yes)
   main_o=sub/main.$OBJEXT
index 6b2a550a08ab1344d3440fd07f25c35d21fefb11..835f2535b545fb022ae6eb80c930f0f49daf5a16 100644 (file)
@@ -35,7 +35,7 @@ for tool in ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF; do
   if eval \$$tool --version >/dev/null 2>&1; then :; else eval $tool=no; fi
 done
 export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF
-eval `$LIBTOOL --config | grep '^EGREP='`
+eval `$LIBTOOL --config | $GREP '^EGREP='`
 eval `$LIBTOOL --config | $EGREP '^(FGREP|objdir|objext)'`
 eval `$LIBTOOL --config | $EGREP '^(host|host_os|host_alias|build|build_alias|to_host_file_cmd|to_tool_file_cmd)='`
 configure_options=--prefix=/nonexistent
@@ -142,7 +142,7 @@ AT_KEYWORDS([autoconf])
 # --------------------------
 m4_define([LT_AT_AUTOMAKE],
 [AT_CHECK([$AUTOMAKE $1], [0], [ignore], [stderr],
-  [AT_CHECK([grep 'require .*but have' stderr && (exit 77)], [1])])
+  [AT_CHECK([$GREP 'require .*but have' stderr && (exit 77)], [1])])
 AT_XFAIL_IF([test no = "$AUTOMAKE"])
 AT_KEYWORDS([automake])
 ])
@@ -165,7 +165,7 @@ m4_define([LT_AT_AUTORECONF],
          [m4_define([AC_CONFIG_MACRO_DIRS], m4_defn([AC_CONFIG_MACRO_DIR]))])
 ]])
 AT_CHECK([$AUTORECONF $1], [0], [ignore], [stderr],
-  [AT_CHECK([grep 'require .*but have' stderr && (exit 77)], [1])])
+  [AT_CHECK([$GREP 'require .*but have' stderr && (exit 77)], [1])])
 AT_XFAIL_IF(
   [case ,$AUTORECONF,$AUTOCONF,$AUTOHEADER,$ACLOCAL,$AUTOMAKE, in *,no,*) :;; *) false;; esac])
 AT_KEYWORDS([autoconf automake])
index d1922a9cd8dc89f7557e27e138d91e39b72d36e4..f1c465bbae83bbb51ba0bc43fda6881a622bc49e 100644 (file)
@@ -110,7 +110,7 @@ done
 # Hypothesis: -version-info is ignored for convenience archives.
 AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo ]dnl
         [-version-info 0:0:0], [], [ignore], [stderr])
-AT_CHECK([grep 'version-info.*ignored for convenience' stderr], [], [ignore])
+AT_CHECK([$GREP 'version-info.*ignored for convenience' stderr], [], [ignore])
 
 # Hypothesis: the deprecated -version-number works.
 # Be sure not to use zero here, it's not portable.
@@ -131,7 +131,7 @@ done
 # Hypothesis: we diagnose when AGE is higher than CURRENT.
 AT_CHECK([$LIBTOOL --mode=link $CC $CFLAGS $LDFLAGS -o liba.la liba1.lo ]dnl
         [-version-info 1:3:2 -rpath $libdir], [1], [ignore], [stderr])
-AT_CHECK([grep 'AGE.*is greater than' stderr], [], [ignore])
+AT_CHECK([$GREP 'AGE.*is greater than' stderr], [], [ignore])
 
 # Hypothesis: we diagnose invalid values.
 for version_info in 1:2:3:4 -1 0:-1 0:0:-1; do