add base packages..
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-base / autofs / autofs-4.1.4 / cross.patch
1 Index: autofs-4.1.4/aclocal.m4
2 ===================================================================
3 --- autofs-4.1.4.orig/aclocal.m4
4 +++ autofs-4.1.4/aclocal.m4
5 @@ -9,6 +9,8 @@ dnl ------------------------------------
6  AC_DEFUN(AF_PATH_INCLUDE,
7  [AC_PATH_PROGS($1,$2,$3,$4)
8  if test -n "$$1"; then
9 +  AH_TEMPLATE([HAVE_$1], [Have $2])
10 +  AH_TEMPLATE([PATH_$1], [Have $2])
11    AC_DEFINE(HAVE_$1,1,[define if you have $1])
12    AC_DEFINE_UNQUOTED(PATH_$1, "$$1", [define if you have $1])
13    HAVE_$1=1
14 Index: autofs-4.1.4/configure.in
15 ===================================================================
16 --- autofs-4.1.4.orig/configure.in
17 +++ autofs-4.1.4/configure.in
18 @@ -135,12 +135,14 @@ AC_PROG_CC
19  cat > pietest.c <<EOF
20  int main(void) { return 0; }
21  EOF
22 +AF_tmp_ldflags="$LDFLAGS"
23 +AF_tmp_cflags="$CFLAGS"
24  CFLAGS=-fPIE
25  LDFLAGS=-pie
26  DAEMON_CFLAGS=
27  DAEMON_LDFLAGS=
28  AC_MSG_CHECKING([whether gcc -fPIE works])
29 -AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
30 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int main(void) {return 0;}]])],
31               [gcc_supports_pie=yes], [gcc_supports_pie=no])
32  AC_MSG_RESULT([$gcc_supports_pie])
33  if test $gcc_supports_pie = yes ; then
34 @@ -150,6 +152,8 @@ fi
35  rm -f pietest.c
36  AC_SUBST(DAEMON_CFLAGS)
37  AC_SUBST(DAEMON_LDFLAGS)
38 +CFLAGS="${AF_tmp_cflags}"
39 +LDFLAGS="${AF_tmp_ldflags}"
40  
41  #
42  # Location of init.d directory?