Displaying 20 results from an estimated 55 matches for "ac_cache_check".
2008 Jun 07
1
Fail to call AC_CACHE_CHECK on R 2.7.0 for Solaris
...-with-iconv=no is deprecated and will be withdrawn
shortly])
fi
Clearly the value of r_cv_iconv_latin1 determines if this test passes
or fails and so whether the error message that I get is printed or not.
The variable r_cv_iconv_latin1 is never set directly in configure, but
by in a Macro called AC_CACHE_CHECK in the file m4/R.m4.
Looking in that macro r4/R.m4 we see:
AC_CACHE_CHECK([whether iconv accepts "UTF-8", "latin1" and "UCS-
*"],
[r_cv_iconv_latin1],
So it would appear to me that AC_CACHE_CHECK needs to be run in order
that r_cv_iconv_latin will be set properl...
2019 Sep 09
0
[PATCH] autoconf tweaks for C99 compilers
...n(void)
{
dev_t dev = makedev(0, 5, 7);
if (major(dev) != 5 || minor(dev) != 7)
- exit(1);
+ return 1;
return 0;
}
]])],[rsync_cv_MAKEDEV_TAKES_3_ARGS=yes],[rsync_cv_MAKEDEV_TAKES_3_ARGS=no],[rsync_cv_MAKEDEV_TAKES_3_ARGS=no])])
@@ -647,6 +650,7 @@ AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
AC_CACHE_CHECK([for SYS_fallocate],rsync_cv_have_sys_fallocate,[
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/syscall.h>
+#include <unistd.h>
#include <sys/types.h>]], [[syscall(SYS_fallocate, 0, 0, (loff_t)0, (loff_t)0);]])],[rsync_cv_have_sys_fallocate=yes],[rsync_cv_have_sys_fallocate...
2012 Sep 25
0
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v3)
...CFLAGS="$ac_save_CFLAGS"
+ ])
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes],
+ [$2], [$3])
+])
+
+dnl Check if the flag is supported by compiler (cacheable)
+dnl CC_CHECK_CFLAGS([FLAG], [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
+
+AC_DEFUN([CC_CHECK_CFLAGS], [
+ AC_CACHE_CHECK([if $CC supports $1 flag],
+ AS_TR_SH([cc_cv_cflags_$1]),
+ CC_CHECK_CFLAGS_SILENT([$1]) dnl Don't execute actions here!
+ )
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes],
+ [$2], [$3])
+])
+
+dnl CC_CHECK_CFLAG_APPEND(FLAG, [action-if-found], [action-if-not-found])
+d...
2012 Sep 25
3
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v2)
...CFLAGS="$ac_save_CFLAGS"
+ ])
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes],
+ [$2], [$3])
+])
+
+dnl Check if the flag is supported by compiler (cacheable)
+dnl CC_CHECK_CFLAGS([FLAG], [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
+
+AC_DEFUN([CC_CHECK_CFLAGS], [
+ AC_CACHE_CHECK([if $CC supports $1 flag],
+ AS_TR_SH([cc_cv_cflags_$1]),
+ CC_CHECK_CFLAGS_SILENT([$1]) dnl Don't execute actions here!
+ )
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes],
+ [$2], [$3])
+])
+
+dnl CC_CHECK_CFLAG_APPEND(FLAG, [action-if-found], [action-if-not-found])
+d...
2012 Sep 29
2
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v4)
...CFLAGS="$ac_save_CFLAGS"
+ ])
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes],
+ [$2], [$3])
+])
+
+dnl Check if the flag is supported by compiler (cacheable)
+dnl CC_CHECK_CFLAGS([FLAG], [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
+
+AC_DEFUN([CC_CHECK_CFLAGS], [
+ AC_CACHE_CHECK([if $CC supports $1 flag],
+ AS_TR_SH([cc_cv_cflags_$1]),
+ CC_CHECK_CFLAGS_SILENT([$1]) dnl Don't execute actions here!
+ )
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_cflags_$1])[ = xyes],
+ [$2], [$3])
+])
+
+dnl CC_CHECK_CFLAG_APPEND(FLAG, [action-if-found], [action-if-not-found])
+d...
2010 Feb 12
1
[RFC] add support for fallocate()
...t a/configure.in b/configure.in
index 9de88d1..3e6ce55 100644
--- a/configure.in
+++ b/configure.in
@@ -761,6 +761,15 @@ if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then
AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define to 1 if gettimeofday() takes a time-zone arg])
fi
+AC_CACHE_CHECK([if fallocate with mode FALLOC_FL_KEEP_SIZE is available],rsync_cv_HAVE_FALLOCATE,[
+AC_TRY_LINK([#include <fcntl.h>
+#include <linux/falloc.h>],
+[exit(fallocate(0, FALLOC_FL_KEEP_SIZE, 0, 10));],
+rsync_cv_HAVE_FALLOCATE=yes,rsync_cv_HAVE_FALLOCATE=no)])
+if test x"$rsync_cv_HAVE...
2002 Jun 29
0
[Bug 321] New: configure does not work when cross compiling
...424,8 @@
#else
main() { exit(0); }
#endif
-
], [ true ], [ AC_DEFINE(BROKEN_SNPRINTF) ]
+
], [ true ], [ AC_DEFINE(BROKEN_SNPRINTF) ],
+
[ AC_DEFINE(BROKEN_SNPRINTF) ]
)
fi
AC_SUBST(NO_SFTP)
@@ -1523,13 +1531,16 @@
dnl make sure we're using the real structure members and not defines
AC_CACHE_CHECK([for msg_accrights field in struct msghdr],
ac_cv_have_accrights_in_msghdr, [
-
AC_TRY_RUN(
+
AC_TRY_COMPILE(
[
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
+
],
+
[
int main() {
#ifdef msg_accrights
+#error "msg_accrights is a macro"...
2012 Jul 04
0
[xen-unstable test] 13460: regressions - FAIL
...neral.m4:2662: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2679: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:606: AS_IF is expanded from...
../../lib/autoconf/general.m4:2032: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2053: AC_CACHE_CHECK is expanded from...
m4/pthread.m4:21: AX_CHECK_PTHREAD is expanded from...
configure.ac:141: the top level
configure.ac:142: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:194: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf...
2001 Jun 17
1
configure doesn't find perl 5 on suse 7.2
...*version \(.\).*/\1/p'
works on systems with a perl version of "perl, v5.xxx" and "perl, version
5.xxx"
The following patch would correct this problem:
--- ./aclocal.m4.orig Sun Jun 17 14:27:06 2001
+++ ./aclocal.m4 Sun Jun 17 14:45:53 2001
@@ -52,7 +52,8 @@
AC_CACHE_CHECK([whether perl version is at least 5],
r_cv_prog_perl_v5,
[ perl_version=`${PERL} -v | \
- sed -n 's/^.*perl.*version \(.\).*/\1/p'`
+ sed -n 's/^.*perl.*v\([[0-9]]\).*/\1/p; \
+ s/^.*perl.*version \(.\).*/\1/p'`
if test ${perl_ve...
2001 May 21
1
2.9p1 patches
...large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+ ]])
+
+dnl Internal subroutine of AC_SYS_LARGEFILE.
+dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, CACHE-VAR, COMMENT, INCLUDES, FUNCTION-BODY)
+AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
+ [AC_CACHE_CHECK([for $1 value needed for large files], $3,
+ [$3=no
+ AC_TRY_COMPILE([$5],
+ [$6],
+ ,
+ [AC_TRY_COMPILE([#define $1 $2]
+[$5]
+ ,
+ [$6],
+ [$3=$2])])])
+ if test "[$]$3" != no; then
+ AC_DEFINE_UNQUOTED([$1], [$]$3, [$4])
+ fi])
+
+AC_DEFUN(AC_SYS_LARGEFILE,
+...
2001 Sep 17
1
autoconf cleanup for AC_FUNC_GETPGRP and GETPGRP_VOID
...GETPGRP_TEST
-
-
# AC_FUNC_GETPGRP
# ---------------
-# Figure out whether getpgrp takes an argument or not. Try first using
-# prototypes (AC_COMPILE), and if the compiler is of no help, try a runtime
-# test.
+# Figure out whether getpgrp requires zero arguments.
AC_DEFUN([AC_FUNC_GETPGRP],
-[AC_CACHE_CHECK(whether getpgrp takes no argument, ac_cv_func_getpgrp_void,
+[AC_CACHE_CHECK(whether getpgrp requires zero arguments,
+ ac_cv_func_getpgrp_void,
[# Use it with a single arg.
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [getpgrp (0);])],
- [ac_func_getpgrp_1=yes],
-...
2000 Apr 04
1
Perl v5.6.0 breaks the configure script
Hi,
The new version of perl v5.6.0 breaks the configure script.
When it tests for the version the current test
perl -v| sed -n 's/^.*perl.*version \(.\).*/\1/p'
returns null.
perl -v now returns:
This is perl, v5.6.0 built for ppc-linux
Copyright 1987-2000, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which
2000 Apr 04
1
Perl v5.6.0 breaks the configure script
Hi,
The new version of perl v5.6.0 breaks the configure script.
When it tests for the version the current test
perl -v| sed -n 's/^.*perl.*version \(.\).*/\1/p'
returns null.
perl -v now returns:
This is perl, v5.6.0 built for ppc-linux
Copyright 1987-2000, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which
2009 Mar 10
1
Error crosscompiling
Hi,
I was trying to crosscompile dovecot, but I got some error:
--with-notify=inotify
don't work, as it try to run a test program to verify if inotify is
supported in the building platform. Solved with --with-notify=dnotify. Ihmo,
is more a hack than a solution.
| checking whether posix_fallocate() works... configure: error: cannot run
test program while cross compiling
I can't
2001 Aug 21
0
[patch] 64 bit types in bitypes.h
...4_t" = "xyes" ; then
+ AC_DEFINE(HAVE_U_INT64_T)
+ AC_MSG_RESULT([yes])
+ have_u_int64_t=1
+ else
+ AC_MSG_RESULT([no])
+ fi
+fi
+
+# should also explicitly check for inttypes.h, and the various intXX_T
+# and u_intXX_t in there.
+
if test -z "$have_u_intxx_t" ; then
AC_CACHE_CHECK([for uintXX_t types], ac_cv_have_uintxx_t, [
AC_TRY_COMPILE(
2002 Jul 19
0
SOLUTION :to can't copy files to samba volume
...mandrake 8.1)
edit configure.in in the samba source, and add 'LIBS="$LIBS -lattr" before
the check for acl_get_file (at around line 2596, so it looks like:
LIBS="$LIBS -lattr"
AC_CHECK_LIB(acl,acl_get_file)
AC_CACHE_CHECK([for ACL support],samba_cv_HAVE_POSIX_ACL
S,[
AC_TRY_LINK([#include <sys/types.h>
ran "autoconf" to rebuild the configure.in file, and repackaged the samba
tree into the tarball so I could have RPM build things for me.
It all worked great, though changing A...
2004 Dec 23
0
[LLVMdev] small patch for llvm configure.ac
...onfigure.ac that fixes
> wrong AC_SUBST usage and adds AMD64 detection. Please review.
>
> ~Markus
> --- autoconf/configure.ac 22 Dec 2004 05:56:56 -0000 1.147
> +++ autoconf/configure.ac 23 Dec 2004 06:06:04 -0000
> @@ -139,7 +139,8 @@
> dnl the OS.
> AC_CACHE_CHECK([target architecture],[llvm_cv_target_arch],
> [case $target in
> - i*86-*) llvm_cv_target_arch="x86" ;;
> + amd64-* | x86_64-*) llvm_cv_target_arch="amd64" ;;
> + i?86-*) llvm_cv_target_arch="x86" ;;
This change looks fine. I'll commit t...
2004 Dec 23
0
[LLVMdev] small patch for llvm configure.ac
...line patch
>
>
> RCS file: /var/cvs/llvm/llvm/autoconf/configure.ac,v
> retrieving revision 1.148
> diff -u -r1.148 configure.ac
> --- configure.ac 23 Dec 2004 06:22:33 -0000 1.148
> +++ configure.ac 23 Dec 2004 06:32:35 -0000
> @@ -140,7 +140,7 @@
> AC_CACHE_CHECK([target architecture],[llvm_cv_target_arch],
> [case $target in
> i?86-*) llvm_cv_target_arch="x86" ;;
> - amd64-*) llvm_cv_target_arch="amd64" ;;
> + amd64-* | x86_64-*) llvm_cv_target_arch="AMD64" ;;
> sparc*-*) llvm_cv_target_arch...
2002 Jun 17
3
Fix for smbpasswd Samba 2.2.4 on Solaris only taking 8 character passwords
Under Samba 2.2.4 (and possibly earlier), smbpasswd (when run locally) only
really reads the first 8 characters, as opposed to the full password.
Obviously, this can cause mass confusion. :)
The fix is pretty simple (I would offer a diff, but this is the kind of
thing the configure script should check for...) - under Solaris getpass()
will only return 8 characters - you must use getpassphrase()
2015 Nov 06
0
Building R for AIX in 64-bit mode
..._HEADERS(lzma.h, [have_lzma=yes], [have_lzma=no])
- fi
+ [AC_CHECK_LIB(lzma, lzma_version_number, [have_lzma=yes], [have_lzma=no])
+ if test "${have_lzma}" = yes; then
+ AC_CHECK_HEADERS(lzma.h, [have_lzma=yes], [have_lzma=no])
+ fi
if test "x${have_lzma}" = xyes; then
AC_CACHE_CHECK([if lzma version >= 5.0.3], [r_cv_have_lzma],
[AC_LANG_PUSH(C)
@@ -3223,11 +3300,9 @@
if test "x${have_lzma}" = xyes; then
AC_DEFINE(HAVE_LZMA, 1, [Define if your system has lzma >= 5.0.3.])
LIBS="-llzma ${LIBS}"
- fi
else
- have_lzma="no"
+...