Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AC_LANG_PUSH([C])
- AC_DEFUN(
- [AX_PROGNAME_VER],
- AC_RUN_IFELSE([
- #include <progname/progname.h>
- int main(void) {
- int major=0, minor=10, patch=1;
- if (( PROGNAME_MAJOR > major ) ||
- (( PROGNAME_MAJOR == major ) && ( PROGNAME_MINOR > minor )) ||
- (( PROGNAME_MAJOR == major ) && ( PROGNAME_MINOR == minor ) && ( PROGNAME_PATCH >= patch )))
- {
- printf("%sn", "progname version test passed");
- exit(0);
- }
- else
- {
- printf("%sn", "progname version test FAILED");
- exit(1);
- }
- }], [VERSION_CHECK_PASSED=1], [VERSION_CHECK_PASSED=0],
- )
- )
- AC_LANG_POP
- [ec2-user@ip-172-31-23-235 ~]$ autoreconf -fiv
- autoreconf: Entering directory `.'
- autoreconf: configure.ac: not using Gettext
- autoreconf: running: aclocal --force -I m4
- m4/ac_check_define.m4:67: error: m4_defn: undefined macro: _AC_LANG
- ../../lib/autoconf/lang.m4:107: AC_LANG_POP is expanded from...
- m4/ac_check_define.m4:67: the top level
- autom4te: /usr/bin/m4 failed with exit status: 1
- aclocal: error: echo failed with exit status: 1
- autoreconf: aclocal failed with exit status: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement