]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix cross-compile support in ./configure
authorAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 29 Aug 2010 13:58:51 +0000 (07:58 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Sun, 29 Aug 2010 13:58:51 +0000 (07:58 -0600)
configure.in
helpers/negotiate_auth/squid_kerb_auth/configure.in

index 58cfa3e913c708f8336fbdc1988f76157d32adf3..6cc385522d6ef8c0946088155ce029d6eba02c38 100644 (file)
@@ -366,7 +366,7 @@ AC_ARG_ENABLE(debug-cbdata,
 
 dnl Nasty hack to get autoconf 2.64 on Linux to run.
 dnl all other uses of RUN_IFELSE are wrapped inside CACHE_CHECK which breaks on 2.64
-AC_RUN_IFELSE([AC_LANG_SOURCE([[ int main(int argc, char **argv) { return 0; } ]])],[],[],[])
+AC_RUN_IFELSE([AC_LANG_SOURCE([[ int main(int argc, char **argv) { return 0; } ]])],[],[],[:])
 
 dnl This is a developer only option.. developers know how to set defines
 dnl
@@ -1331,7 +1331,7 @@ int main(int argc, char **argv)
     }
     return 0;
 }
-      ]])],[ac_cv_epoll_works=yes],[ac_cv_epoll_works=no],[]))
+      ]])],[ac_cv_epoll_works=yes],[ac_cv_epoll_works=no],[:]))
   fi
 
   if test "$force_epoll" = "yes" && test "$ac_cv_epoll_works" = "no" ; then
@@ -3075,7 +3075,7 @@ AC_CACHE_CHECK(if setresuid is implemented, ac_cv_func_setresuid,
     }
     return 0;
   }
-  ]])],[ac_cv_func_setresuid="yes"],[ac_cv_func_setresuid="no"],[])
+  ]])],[ac_cv_func_setresuid="yes"],[ac_cv_func_setresuid="no"],[:])
 )
 if test "$ac_cv_func_setresuid" = "yes" ; then
   AC_DEFINE(HAVE_SETRESUID,1,[Yay! Another Linux brokenness.  Its not good enough to know that setresuid() exists, because RedHat 5.0 declare setresuid() but doesn't implement it.])
@@ -3100,7 +3100,7 @@ int main(int argc, char **argv)
     strnstr(str, "fubar", size);
     return 0;
 }
-  ]])],[ac_cv_func_strnstr="yes"],[ac_cv_func_strnstr="no"],[])
+  ]])],[ac_cv_func_strnstr="yes"],[ac_cv_func_strnstr="no"],[:])
 )
 if test "$ac_cv_func_strnstr" = "yes" ; then
   AC_DEFINE(HAVE_STRNSTR,1,[Yay! We have a working strnstr!])
@@ -3125,7 +3125,7 @@ AC_CACHE_CHECK(if va_copy is implemented, ac_cv_func_va_copy,
          return 0;
       }
       int main(int argc, char **argv) { return f (0, 42); }
-      ]])],[ac_cv_func_va_copy="yes"],[ac_cv_func_va_copy="no"],[])
+      ]])],[ac_cv_func_va_copy="yes"],[ac_cv_func_va_copy="no"],[:])
 )
 if test "$ac_cv_func_va_copy" = "yes" ; then
   AC_DEFINE(HAVE_VA_COPY, 1, [If your system have va_copy])
@@ -3148,7 +3148,7 @@ AC_CACHE_CHECK(if __va_copy is implemented, ac_cv_func___va_copy,
          return 0;
       }
       int main(int argc, char **argv) { return f (0, 42); }
-      ]])],[ac_cv_func___va_copy="yes"],[ac_cv_func___va_copy="no"],[])
+      ]])],[ac_cv_func___va_copy="yes"],[ac_cv_func___va_copy="no"],[:])
 )
 if test "$ac_cv_func___va_copy" = "yes" ; then
   AC_DEFINE(HAVE___VA_COPY, 1, [Some systems have __va_copy instead of va_copy])
index e2bbf2f0f2177b6f43a8c93de21875b1e801c9c8..8c6038c61b56513f40be891ab39eb904bf1c22f1 100644 (file)
@@ -377,7 +377,8 @@ return 1;
 #endif
 }],
   ac_cv_have_squid=yes,
-  ac_cv_have_squid=no)
+  ac_cv_have_squid=no,
+  ac_cv_have_squid=yes)
 ])
 LDFLAGS="$LDFLAGS -L../../../lib"
 if test "x$ac_cv_have_squid" = "xyes"; then