Răsfoiți Sursa

configure: add --with-bash option

... for cross-compilation

AC_PATH_PROG finds bash on the build host, which differs from the
target system path in cross-compilation environments. Add
--with-bash=PATH to allow explicitly specifying the bash path on
the target system.

When not specified, the existing auto-detection behaviour is
unchanged.

Signed-off-by: Sven Kirmess <sven.kirmess@kzone.ch>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Sven Kirmess 1 săptămână în urmă
părinte
comite
9946ee9e06
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      configure.ac

+ 5 - 1
configure.ac

@@ -79,7 +79,11 @@ AC_PROG_LN_S
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
 PKG_PROG_PKG_CONFIG
-AC_PATH_PROG([BASHPATH], [bash])
+AC_ARG_WITH([bash],
+  [AS_HELP_STRING([--with-bash=PATH],
+    [path to bash on the target system @<:@default=auto-detect@:>@])],
+  [BASHPATH="$withval"],
+  [AC_PATH_PROG([BASHPATH], [bash])])
 AC_CHECK_PROGS([GROFF], [groff])
 
 # Checks for typedefs.