projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
171e10f
)
Also accept arguments for when invoked by Makefile.
author
Doug Evans
<dje@gnu.org>
Fri, 13 Jun 1997 23:36:41 +0000
(23:36 +0000)
committer
Doug Evans
<dje@gnu.org>
Fri, 13 Jun 1997 23:36:41 +0000
(23:36 +0000)
From-SVN: r14244
gcc/configure.frag
patch
|
blob
|
history
diff --git
a/gcc/configure.frag
b/gcc/configure.frag
index c7c82ad2926abdda2265d39904a96d90ad8363e7..2263be3c51c3c58761c450170f21478fcc6a8df3 100644
(file)
--- a/
gcc/configure.frag
+++ b/
gcc/configure.frag
@@
-23,8
+23,17
@@
rm -f Make-lang
touch Make-lang
-savesrcdir=$srcdir
-savesubdirs="$subdirs"
+# We can either be invoked with . from configure or from Makefile.
+# Some shells can't pass arguments to source'd scripts.
+# ??? This needs some rethinking.
+
+if [ x"$1" != x ] ; then
+ savesrcdir=$1
+ savesubdirs=$2
+else
+ savesrcdir=$srcdir
+ savesubdirs=$subdirs
+fi
for subdir in . $savesubdirs
do