Ignore:
Timestamp:
Jul 20, 2008, 1:16:06 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • configure.ac: fix the printf attribute macro.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r2577 r2578  
    113113
    114114AC_MSG_CHECKING(for __printf__ attribute)
     115ac_v_attribute_printf=""
    115116AC_TRY_COMPILE([],
    116117 [extern void foo(const char *, ...)
    117118     __attribute__((__format__(__printf__, 1, 2)));],
    118119 [AC_MSG_RESULT(yes)
    119   AC_DEFINE(ATTRIBUTE_PRINTF(x,y), __attribute__((__format__(__printf__, x, y))), [Define to the __printf__ attribute if present])],
     120  ac_v_attribute_printf="__attribute__((__format__(__printf__, x, y)))"],
    120121 [AC_MSG_RESULT(no)])
     122AC_DEFINE_UNQUOTED(ATTRIBUTE_PRINTF(x,y), $ac_v_attribute_printf, [Define to the __printf__ attribute if present])
    121123
    122124ac_cv_have_getopt_long="no"
Note: See TracChangeset for help on using the changeset viewer.