how to write a configure script in linux

来源:互联网 发布:微信运动可添加数据 编辑:程序博客网 时间:2024/05/21 09:36

To create the standard "configure" script you need GNU autoconf.You may need GNU automake and libtool too.

There are tons of documentation and howtos.Google for something like "autoconf automake howto".The good documentation is in the official manual pages:

  • Autoconf: http://www.gnu.org/software/autoconf/
  • Automake: http://www.gnu.org/software/automake/automake.html
  • Libtool: http://www.gnu.org/software/libtool/libtool.html

Autoconf will create your configure script starting from the"configure.ac" file.The "Makefile.am" file will instruct automake on how to create yourmakefile by the configure string. Libtool is needed to simplifylibraries handling around your code.

You can start creating a configure.ac file by hand or you may usethe "autoscan" helper that may help you to create somethingsemi-automatic for you.

Then, when you are ready, this one will do the magic:

autoreconf -i

0 0
原创粉丝点击