Quick divert() 2.13/2.6x portability macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Having plenty of problems getting our old 2.13-based autoconf setup
working under the new diversions in 2.6

I tried an initial naiive approach of simply wrapping divert in a
version check like this:

AC_DEFUN([PHP_DIVERT],[
   ifdef([AC_AUTOCONF_VERSION],
     [
       m4_case([$1],
         [1],[divert(1001)],
         [2],[divert(1002)],
         [3],[divert(1003)],
         [4],[divert(1004)],
         [5],[divert(1005)])
     ],
     [
       divert($1)
     ])
])

Under 2.13 it seems happy enough with it, but with 2.64 I get:

configure.in:4: error: m4_divert_pop(GROW): diversion mismatch:
configure.in:4: m4_divert: 1001
../../lib/m4sugar/m4sugar.m4:3251: m4_divert_push: KILL
autom4te: /usr/bin/m4 failed with exit status: 1

There must be a better way to map 2.13 behaviour to 2.6.  Has anybody
tackled this?

-Rasmus


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux