Changeset 9b42f3e


Ignore:
Timestamp:
05/29/14 16:17:32 (7 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
bd119b3
Parents:
c7021d9
Message:

Fixed missing AC_LANG_SOURCE from the new m4 macros.

More recent autoconfs are quite strict about this compared with
whatever is in Debian Squeeze.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/attributes.m4

    rc7021d9 r9b42f3e  
    1616    [saved="$CFLAGS"
    1717     CFLAGS="$CFLAGS -Werror"
    18      AC_COMPILE_IFELSE([int a;],
     18     AC_COMPILE_IFELSE([AC_LANG_SOURCE([int a;])],
    1919       [eval lt_cv_werror_flag='yes'],
    2020       [eval lt_cv_werror_flag='no'])
     
    3434      [saved="$CFLAGS"
    3535       CFLAGS="$CFLAGS $errflag"
    36        AC_COMPILE_IFELSE(
    37          [struct s { char a; char b; int val; long val2; void *ptr;} __attribute__((packed));],
     36       AC_COMPILE_IFELSE([AC_LANG_SOURCE(
     37         [struct s { char a; char b; int val; long val2; void *ptr;} __attribute__((packed));])],
    3838         [lt_cv_attribute_packed=yes],
    3939         [lt_cv_attribute_packed=no]
     
    6060      [saved="$CFLAGS"
    6161       CFLAGS="$CFLAGS $errflag"
    62        AC_COMPILE_IFELSE(
    63          [void func(int a, __attribute__((unused)) int b);],
     62       AC_COMPILE_IFELSE([AC_LANG_SOURCE(
     63         [void func(int a, __attribute__((unused)) int b);])],
    6464         [lt_cv_attribute_unused=yes],
    6565         [lt_cv_attribute_unused=no]
     
    8686      [saved="$CFLAGS"
    8787       CFLAGS="$CFLAGS $errflag"
    88        AC_COMPILE_IFELSE(
    89          [void func(int a, int b) __attribute__((deprecated));],
     88       AC_COMPILE_IFELSE([AC_LANG_SOURCE(
     89         [void func(int a, int b) __attribute__((deprecated));])],
    9090         [lt_cv_attribute_deprecated=yes],
    9191         [lt_cv_attribute_deprecated=no]
     
    112112      [saved="$CFLAGS"
    113113       CFLAGS="$CFLAGS $errflag"
    114        AC_COMPILE_IFELSE(
    115          [void __attribute__((format(printf, 1, 2))) foo(const char *fmt, ...);],
     114       AC_COMPILE_IFELSE([AC_LANG_SOURCE(
     115         [void __attribute__((format(printf, 1, 2))) foo(const char *fmt, ...);])],
    116116         [lt_cv_attribute_format=yes],
    117117         [lt_cv_attribute_format=no]
     
    138138      [saved="$CFLAGS"
    139139       CFLAGS="$CFLAGS $errflag"
    140        AC_COMPILE_IFELSE(
    141          [void func(int a, int b) __attribute__((pure));],
     140       AC_COMPILE_IFELSE([AC_LANG_SOURCE(
     141         [void func(int a, int b) __attribute__((pure));])],
    142142         [lt_cv_attribute_pure=yes],
    143143         [lt_cv_attribute_pure=no]
Note: See TracChangeset for help on using the changeset viewer.