Skip to content
  • Nick Mathewson's avatar
    Try making our configure.ac script build with AC 2.70. · 02816d60
    Nick Mathewson authored
    In versions <=2.69, according to the autoconf docs, AC_PROG_CC_C99
    is needed with some compilers, if they require extra arguments to
    build C99 programs.  In versions >=2.70, AC_PROG_CC checks for these
    compilers automatically, and so the AC_PROG_CC_C99 macro is
    obsolete.
    
    So, what can you do if you want your script to work right with both
    autoconf versions?  IIUC, neither including AC_PROG_CC_C99 macro nor
    leaving it out will give you the right behavior with both versions.
    It looks like you need to look at the autoconf version explicitly.
    
    (Now, the autoconf manual implies that it's "against autoconf
    philosophy" to look at the autoconf version rather than trying the
    behavior to see if it works, but they don't actually tell you how to
    detect recoverably at autoconf-time whether a macro is obsolete or
    not, and I can't find a way to do that.)
    
    So, is it safe to use m4_version_prereq, like I do here?  It isn't
    listed in the autoconf 2.63 manual (which is ...
    02816d60