Blame SOURCES/autofs-5.0.7-configure-in-allow-cross-compilation.patch

306fa1
autofs-5.0.7 - configure.in: allow cross compilation
306fa1
306fa1
From: Chris Packham <chris.packham@alliedtelesis.co.nz>
306fa1
306fa1
The default behaviour of AC_RUN_IFELSE is to stop with an error if cross
306fa1
compiling. Avoid this by providing the optional 4th argument to set
306fa1
gcc_supports_pie=no if support for PIE cannot be detected.
306fa1
306fa1
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
306fa1
---
306fa1
306fa1
 CHANGELOG    |    1 +
306fa1
 configure.in |    2 +-
306fa1
 2 files changed, 2 insertions(+), 1 deletions(-)
306fa1
306fa1
306fa1
diff --git a/CHANGELOG b/CHANGELOG
306fa1
index 961e340..fe801e8 100644
306fa1
--- a/CHANGELOG
306fa1
+++ b/CHANGELOG
306fa1
@@ -9,6 +9,7 @@
306fa1
 - add timeout option description to man page.
306fa1
 - fix null map entry order handling.
306fa1
 - make description of default MOUNT_WAIT setting clear.
306fa1
+- configure.in: allow cross compilation.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
diff --git a/configure.in b/configure.in
306fa1
index 1a24e34..90bda62 100644
306fa1
--- a/configure.in
306fa1
+++ b/configure.in
306fa1
@@ -307,7 +307,7 @@ DAEMON_CFLAGS=
306fa1
 DAEMON_LDFLAGS=
306fa1
 AC_MSG_CHECKING([whether gcc -fPIE works])
306fa1
 AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
306fa1
-	      [gcc_supports_pie=yes], [gcc_supports_pie=no])
306fa1
+	      [gcc_supports_pie=yes], [gcc_supports_pie=no], [gcc_supports_pie=no])
306fa1
 AC_MSG_RESULT([$gcc_supports_pie])
306fa1
 if test $gcc_supports_pie = yes ; then
306fa1
 	DAEMON_CFLAGS="-fPIE"