[toolsÂ] autoconf: make bin/autoconf relocatable as well
[openwrt.git] / tools / autoconf / patches / 000-relocatable.patch
index c66e55e..98661e2 100644 (file)
    unshift @INC, $pkgdatadir;
  
    # Override SHELL.  On DJGPP SHELL may not be set to a shell
+--- a/bin/autoconf.as
++++ b/bin/autoconf.as
+@@ -85,7 +85,11 @@ exit_missing_arg='
+ # restore font-lock: '
+ # Variables.
+-: ${AUTOM4TE='@bindir@/@autom4te-name@'}
++if test -n "$STAGING_DIR"; then
++      : ${AUTOM4TE="$STAGING_DIR/../host/bin/@autom4te-name@"}
++else
++      : ${AUTOM4TE='@bindir@/@autom4te-name@'}
++fi
+ autom4te_options=
+ outfile=
+ verbose=false
This page took 0.019417 seconds and 4 git commands to generate.