]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update from mainline.
authorUlrich Drepper <drepper@redhat.com>
Thu, 31 Jan 2002 19:33:52 +0000 (19:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 31 Jan 2002 19:33:52 +0000 (19:33 +0000)
scripts/cpp

index 4a62f1e5ae1a5aaa6be5ed0f261949023aebb574..24112c663c01d909486d837b5c605be4ddf7d6bf 100755 (executable)
@@ -1,8 +1,9 @@
 #! /bin/sh
 cpp=`which cpp 2>/dev/null`
 if test $? -ne 0; then
-  cpp=`type cpp 2>/dev/null | awk '{ print $NF }'`
-  if test $? -ne 0; then
+  if type cpp 2>/dev/null >/dev/null; then
+    cpp=`type cpp 2>/dev/null | awk '{ print $NF }'`
+  else
     cpp=`gcc -print-file-name=cpp 2>/dev/null`
     if test $? -ne 0; then
       if test -x /lib/cpp; then