Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. AC_LANG_PUSH([C])
  2. AC_DEFUN(
  3. [AX_PROGNAME_VER],
  4. AC_RUN_IFELSE([
  5. #include <progname/progname.h>
  6. int main(void) {
  7. int major=0, minor=10, patch=1;
  8.  
  9. if (( PROGNAME_MAJOR > major ) ||
  10. (( PROGNAME_MAJOR == major ) && ( PROGNAME_MINOR > minor )) ||
  11. (( PROGNAME_MAJOR == major ) && ( PROGNAME_MINOR == minor ) && ( PROGNAME_PATCH >= patch )))
  12. {
  13. printf("%sn", "progname version test passed");
  14. exit(0);
  15. }
  16. else
  17. {
  18. printf("%sn", "progname version test FAILED");
  19. exit(1);
  20. }
  21. }], [VERSION_CHECK_PASSED=1], [VERSION_CHECK_PASSED=0],
  22. )
  23. )
  24. AC_LANG_POP
  25.  
  26. [ec2-user@ip-172-31-23-235 ~]$ autoreconf -fiv
  27. autoreconf: Entering directory `.'
  28. autoreconf: configure.ac: not using Gettext
  29. autoreconf: running: aclocal --force -I m4
  30. m4/ac_check_define.m4:67: error: m4_defn: undefined macro: _AC_LANG
  31. ../../lib/autoconf/lang.m4:107: AC_LANG_POP is expanded from...
  32. m4/ac_check_define.m4:67: the top level
  33. autom4te: /usr/bin/m4 failed with exit status: 1
  34. aclocal: error: echo failed with exit status: 1
  35. autoreconf: aclocal failed with exit status: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement