Search code examples
autotoolsautomake

Invoke external script using Autotools


I am using Autotools, and trying to get configure.ac and the resulting configure script to call an external build_library.sh script.

How can this be done?


Solution

  • configure.ac is just a shell script with a "few" macros added on top of it. So, you can put any shell code in there:

    $ac_top_srcdir/build_library.sh
    

    (The $ac_top_srcdir makes sure that your script can be found even if you are running ./configure from another directory.)