(autoconf.info)Obsolete Macros


Prev: Suggested Ordering Up: Dependencies Between Macros
Enter node , (file) or (file)node

7.4.3 Obsolete Macros
---------------------

Configuration and portability technology has evolved over the years.
Often better ways of solving a particular problem are developed, or
ad-hoc approaches are systematized.  This process has occurred in many
parts of Autoconf.  One result is that some of the macros are now
considered "obsolete"; they still work, but are no longer considered the
best thing to do.  Autoconf provides the 'AC_OBSOLETE' macro to warn
users producing 'configure' scripts when they use obsolete macros, to
encourage them to modernize.  A sample call is:

     AC_OBSOLETE([$0], [; use AC_CHECK_HEADERS(unistd.h) instead])dnl

 -- Macro: AC_OBSOLETE (THIS-MACRO-NAME [, SUGGESTION])
     Make 'm4' print a message on the standard error output warning that
     THIS-MACRO-NAME is obsolete, and giving the file and line number
     where it was called.  THIS-MACRO-NAME should be the name of the
     macro that is calling 'AC_OBSOLETE'.  If SUGGESTION is given, it is
     printed at the end of the warning message; for example, it can be a
     suggestion for what to use instead of THIS-MACRO-NAME.


automatically generated by info2www version 1.2.2.9