autoheader command in Linux with Examples

autoheader command in Linux is used to create a template file of C “#define” or any other template header for configure to use. If the user will give autoheader an argument, it reads the standard input instead of reading and also writes the header file to the standard output. This command scans the file and figures out which C preprocessor symbols it might have defined.


autoheader [OPTION]... [TEMPLATE-FILE]


  • -h, –help: Display the help message and then exits.
    autoheader -h or autoheader --help

  • -V, –version: Shows the version number and then exits.
    autoheader -V or autoheader --version

  • -v, –verbose: Gives the verbosely report processing.
    autoheader -v filename or autoheader --verbose filename

  • -d, –debug: Makes sure to not remove any files which are temporary.
    autoheader -d filename or autoheader --debug filename

  • -f, –force: Consider all the files as obsolete.
    autoheader -f or autoheader --force

  • -w, –warnings: Reports the warnings falling in the categories.
    autoheader -w category or autoheader --warnings category

    The other warning categories are:

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.