Changeset 708837d


Ignore:
Timestamp:
Jun 25, 2011, 3:10:24 PM (6 years ago)
Author:
David Benjamin <davidben@mit.edu>
Children:
1bdbcb1
Parents:
bad4496
git-author:
David Benjamin <davidben@mit.edu> (06/25/11 14:57:29)
git-committer:
David Benjamin <davidben@mit.edu> (06/25/11 15:10:24)
Message:
Revert "Replace obsolete AX_C_CHECK_FLAG with AX_CHECK_COMPILE_FLAG"

This reverts commit f2a96c0fd0bab7380da67a9616eb04308488ff8f. It uses a
macro AS_VAR_IF which is not available on some development environments
we still support. (Entertainingly, AX_CHECK_COMPILE_FLAG itself only
claims an AC_PREREQ of 2.59 which is probably a bug.)
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rf2a96c0 r708837d  
    1717
    1818AS_IF([test "x$with_stack_protector" != xno],
    19   [AX_CHECK_COMPILE_FLAG([-fstack-protector],
     19  [AX_C_CHECK_FLAG([-fstack-protector],[],[],
    2020    [AM_CFLAGS="$AM_CFLAGS -fstack-protector"],
    2121    [if test "x$with_stack_protector" != xcheck; then
     
    129129
    130130AX_CFLAGS_WARN_ALL([AM_CFLAGS])
    131 AX_APPEND_COMPILE_FLAGS([-Wstrict-prototypes -Wwrite-strings],[AM_CFLAGS])
     131AX_C_CHECK_FLAG([-Wstrict-prototypes],[],[],[AM_CFLAGS="$AM_CFLAGS -Wstrict-prototypes"])
     132AX_C_CHECK_FLAG([-Wwrite-strings],[],[],[AM_CFLAGS="$AM_CFLAGS -Wwrite-strings"])
    132133
    133134dnl Shut gcc up about zero-length format strings; the warning's apparently for
    134135dnl efficiency reasons, which is bogus for custom functions.
    135 AX_APPEND_COMPILE_FLAGS([-Wno-format-zero-length],[AM_CFLAGS])
     136AX_C_CHECK_FLAG([-Wno-format-zero-length],[],[],[AM_CFLAGS="$AM_CFLAGS -Wno-format-zero-length"])
    136137
    137 AX_APPEND_COMPILE_FLAGS([-Wno-pointer-sign -Wno-empty-body -Wno-unused-value],[LIBFAIM_CFLAGS])
     138m4_foreach([myflag],
     139  [[-Wno-pointer-sign],[-Wno-empty-body],[-Wno-unused-value]],
     140  [AX_C_CHECK_FLAG([myflag],[],[],[LIBFAIM_CFLAGS="$LIBFAIM_CFLAGS myflag"])])
    138141
    139142AM_CONDITIONAL([ENABLE_ZCRYPT], [test "$HAVE_DES_STRING_TO_KEY" && dnl
Note: See TracChangeset for help on using the changeset viewer.