Displaying 20 results from an estimated 59 matches for "ac_compile_ifelse".
2017 Jul 13
3
[PATCH supermin v2] ext2: Create symlinks properly (RHBZ#1470157).
The ext2 filesystem on disk format has two ways to store symlinks.
For symlinks >= 60 bytes in length, they are stored as files
(so-called "slow symlinks"). For shorter symlinks the symlink is
stored in the inode ("fast symlinks").
Previously we only created slow symlinks even if they are shorter than
60 bytes. This didn't matter until recently, when a change went
2017 Jul 12
3
[PATCH supermin] ext2: Create symlinks properly (RHBZ#1470157).
The ext2 filesystem on disk format has two ways to store symlinks.
For symlinks >= 60 bytes in length, they are stored as files
(so-called "slow symlinks"). For shorter symlinks the symlink is
stored in the inode ("fast symlinks").
Previously we only created slow symlinks even if there are shorter
than 60 bytes. This didn't matter until recently, when a change went
2012 May 03
2
Portablility patch for openssh 6.0p1 configure.ac
...r member `val' in something not a structure or union
sftp-server.c:510: error: request for member `val' in something not a structure or union
The patch is:
--- configure.ac.orig 2012-04-19 05:46:38.000000000 -0600
+++ configure.ac 2012-05-03 08:25:49.429260884 -0600
@@ -3236,6 +3236,7 @@
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/param.h>
#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
Thanks,
Pieter
2008 Mar 20
3
[LLVMdev] Just got bitten by accidentally using the wrong gcc
llvm's ./configure already does that for gcc < 3.
What are valid versions? Exactly 4.0 and 4.2? 4.0 and >=4.2?
dnl Verify that GCC is version 3.0 or higher
if test "$GCC" = "yes"
then
AC_COMPILE_IFELSE([[#if !defined(__GNUC__) || __GNUC__ < 3
#error Unsupported GCC version
#endif
]], [], [AC_MSG_ERROR([gcc 3.x required, but you have a lower
version])])
fi
Shantonu Sen
ssen at apple.com
Sent from my Mac Pro
On Mar 20, 2008, at 3:14 PM, Eric Christopher wrote:
>
> On Mar 20, 2008, a...
2019 Sep 09
0
[PATCH] autoconf tweaks for C99 compilers
...| 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=no])])
if test x"$rsync_cv_have_sys_fallocate" = x"y...
2004 Oct 21
3
1.0-test51
http://dovecot.org/test/
This release is built with autoconf 2.59 and libtool 1.9. We'll see how
it works out :) The required changes were done by Matthias Andree.
- The last fix for connection hanging made IDLE use 100% CPU
- We don't use Maildir/.INBOX/ directory anymore, indexes are stored
in Maildir-root
- Don't crash with FETCH BODY[n.MIME]
- Changed %p (protocol)
2009 Mar 10
2
[LLVMdev] linux mixed 32/64 systems
Currently the build systems sets ARCH based on the result of 'uname -m'.
On a mixed 32/64 system (one with a 64-bit kernel and a 32-bit
userspace) this will result in "x86_64" which is wrong.
We'd like the ARCH variable to represent the userspace we're compiling
in/for, not what the kernel happens to be.
Does anyone know of a clean way to detect this sort of system
2009 Mar 10
0
[LLVMdev] linux mixed 32/64 systems
...t; We'd like the ARCH variable to represent the userspace we're compiling
> in/for, not what the kernel happens to be.
>
> Does anyone know of a clean way to detect this sort of system
> configuration?
Cleanest way is probably to explicitly test if __x86_64__ is defined, ie
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[#ifndef __x86_64__
error: Not x86-64 even if uname says so!
#endif
]])],
[ARCH=x86_64],
[ARCH=i386])
Or in the alternative you can always key off sizeof(void *) == 8.
Cheers,
Nathan
2014 Jun 21
1
[PATCH 1/2] glamor: fix build without glamor.h
...diff --git a/configure.ac b/configure.ac
index c34e575..92e047a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -128,7 +128,13 @@ XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION
AC_MSG_CHECKING([whether to include GLAMOR support])
-if pkg-config --exists "xorg-server >= 1.15.99.901"
+
+AC_COMPILE_IFELSE(AC_LANG_PROGRAM(
+[[
+ #include <glamor.h>
+]],[[]]),[found_glamor_header=yes],[found_glamor_header=no])
+
+if test "$found_glamor_header" = "yes" && pkg-config --exists "xorg-server >= 1.15.99.901"
then
AC_DEFINE(HAVE_GLAMOR, 1, [Build support for...
2013 Nov 27
2
non-standard alloca.h
....ac.orig 2013-07-31 06:27:54.930255200 +0000
+++ opus-1.1-beta/configure.ac 2013-07-31 06:28:56.746104800 +0000
@@ -99,9 +99,13 @@
AS_IF([test "$has_var_arrays" = "no"],
[
AC_CHECK_HEADERS([alloca.h])
+ AC_CHECK_HEADERS([malloc.h])
AC_MSG_CHECKING(for alloca)
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <alloca.h>]],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef HAVE_ALLOCA_H
+ #include <alloca.h>
+ #endif
+ #include <malloc.h>]],...
2008 Mar 20
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
...engcc so
there is a reasonable basis.
The list isn't comprehensive, of course, and will likely grow in the
future. OTOH extending it as new problems come up should be easy to do.
> dnl Verify that GCC is version 3.0 or higher
> if test "$GCC" = "yes"
> then
> AC_COMPILE_IFELSE([[#if !defined(__GNUC__) || __GNUC__ < 3
> #error Unsupported GCC version
> #endif
> ]], [], [AC_MSG_ERROR([gcc 3.x required, but you have a lower
> version])])
> fi
It might be simpler (and faster) to check the output of gcc -v.
Extending the list to other tools would be easie...
2001 Sep 17
1
autoconf cleanup for AC_FUNC_GETPGRP and GETPGRP_VOID
...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],
- [ac_func_getpgrp_1=no])
-# Use it with no arg.
-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT], [getpgrp ();])],
- [ac_func_getpgrp_0=yes],
-...
2012 Sep 25
0
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v3)
...])])
+ ])
+])
+
+AC_DEFUN([CC_CHECK_ATTRIBUTE], [
+ AC_REQUIRE([CC_CHECK_WERROR])
+ AC_CACHE_CHECK([if $CC supports __attribute__(( ifelse([$2], , [$1], [$2]) ))],
+ AS_TR_SH([cc_cv_attribute_$1]),
+ [ac_save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $cc_cv_werror"
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([$3])],
+ [eval "AS_TR_SH([cc_cv_attribute_$1])='yes'"],
+ [eval "AS_TR_SH([cc_cv_attribute_$1])='no'"])
+ CFLAGS="$ac_save_CFLAGS"
+ ])
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_attribute_$1])[ = xyes],
+ [AC_DEFINE...
2015 Apr 08
10
Build-system cleanups
Hi everyone
Following are a number of build-system cleanup patches. Some of them are
prep-work for a possible upcoming automake/gnulib introduction.
Best regards,
Tiziano
2012 Sep 25
3
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v2)
...])])
+ ])
+])
+
+AC_DEFUN([CC_CHECK_ATTRIBUTE], [
+ AC_REQUIRE([CC_CHECK_WERROR])
+ AC_CACHE_CHECK([if $CC supports __attribute__(( ifelse([$2], , [$1], [$2]) ))],
+ AS_TR_SH([cc_cv_attribute_$1]),
+ [ac_save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $cc_cv_werror"
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([$3])],
+ [eval "AS_TR_SH([cc_cv_attribute_$1])='yes'"],
+ [eval "AS_TR_SH([cc_cv_attribute_$1])='no'"])
+ CFLAGS="$ac_save_CFLAGS"
+ ])
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_attribute_$1])[ = xyes],
+ [AC_DEFINE...
2012 Sep 29
2
[libopusfile PATCH] build: implement autotools build system for libopusfile. (v4)
...)])
+ ])
+])
+
+AC_DEFUN([CC_CHECK_ATTRIBUTE], [
+ AC_REQUIRE([CC_CHECK_WERROR])
+ AC_CACHE_CHECK([if $CC supports __attribute__(( ifelse([$2], , [$1],
[$2]) ))],
+ AS_TR_SH([cc_cv_attribute_$1]),
+ [ac_save_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS $cc_cv_werror"
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([$3])],
+ [eval "AS_TR_SH([cc_cv_attribute_$1])='yes'"],
+ [eval "AS_TR_SH([cc_cv_attribute_$1])='no'"])
+ CFLAGS="$ac_save_CFLAGS"
+ ])
+
+ AS_IF([eval test x$]AS_TR_SH([cc_cv_attribute_$1])[ = xyes],
+ [AC_DEFINE...
2014 Dec 09
1
[RFC PATCH v2] armv7: celt_pitch_xcorr: Introduce ARM neon intrinsics
..."No in-line ASM for your platform, please send patches"
"inline" is one word.
> + AC_MSG_CHECKING(if compiler supports arm neon intrinsics)
Capitalize ARM and NEON, please.
> + save_CFLAGS="$CFLAGS"; CFLAGS="-mfpu=neon $CFLAGS"
> + AC_COMPILE_IFELSE(
Can we use AC_LINK_IFELSE? We had a problem where sometimes if SSE/AVX
was not available, but the headers existed, the #include would succeed
but no functions would get defined. My arm_neon.h seems to be written
better than that, but I'd like to guard against other implementations
having...
2020 Apr 28
1
[PATCH nbdkit] freebsd, openbsd: Add an extern decl for environ.
...ron' is not always declared in public header files:
+dnl Linux => <unistd.h> Haiku => <stdlib.h>
+dnl FreeBSD & OpenBSD => not declared
+dnl On platforms where it's not declared we must add an extern decl.
+AC_MSG_CHECKING([if environ is declared in header files])
+AC_COMPILE_IFELSE([
+AC_LANG_SOURCE([[
+#include <stdlib.h>
+#include <unistd.h>
+static int
+test (void)
+{
+ const char **env = environ;
+ return env ? 1 : 0; // this just forces env to be used
+}
+]])
+ ],[
+ AC_MSG_RESULT([yes])
+ AC_DEFINE([HAVE_ENVIRON_DECL],[1],[environ is declared in h...
2015 Jun 28
2
[Bug 11369] New: obsoleted autoconf macros
...us.name
QA Contact: rsync-qa at samba.org
There are a few autoconf macros in use deemed obsolete upstream with straight
forward alternatives. The autoscan tool can correct most of them, but there are
two that take a little bit of code analysis.
Most items are replacing AC_TRY_COMPILE with AC_COMPILE_IFELSE.
Of those taking a bit more code analysis, there is the assessment by the
autoconf developers that sufficient time has passed that you can assume the
signal return type. In other words, it's my understanding that instead of
having it return RETSIGTYPE and having autoconf determine the type, it...
2016 Mar 30
2
[Bug 11813] New: m4/socklen_t.m4 uses obsolete AC_TRY_COMPILE macro
...Severity: trivial
Priority: P5
Component: core
Assignee: wayned at samba.org
Reporter: brant at gurganus.name
QA Contact: rsync-qa at samba.org
socklen_t.m4 uses the AC_TRY_COMPILE macro that is labeled obsolete and
replaced trivially with a AC_COMPILE_IFELSE construct.
This prevents autoreconf --warnings=all,error from succeeding.
--
You are receiving this mail because:
You are the QA Contact for the bug.