On Wed, May 01, 2013 at 02:37:56PM -0400, Jasper St. Pierre wrote:Actually, config.h is generated by running ./configure.
> config.h is generated by automake.
No, you will not need them for normal compilation from tarballs.
> You will need to use autoconf / automake
The GNU build system is constructed precisely with that goal that such
special tools are only needed on the developer's system, *not* on the
target system where you compile the programs or libraries.
> And because compile environmet setting, I should build it without usingWhat exactly prevents you from running configure? You don't have
> Makefile.in and Makefile.am.
anything like a POSIX shell there and can't have anything like that
there?
This approach might go smoothly for hello-world. But the build process
> So I put all *.c and *.h of Pango source code into a folder and compile
> them with gcc.
of most packages is much more complex. If you want to replicate it you
must study very carefully what the original Makefiles do.
config.h is generated by configure from config.h.in and contains all
> Where is this config.h? which one I should include?
kinds of information gathered about the system. You have to fill the
information manually. It is likely you will need handle similarly
a number of other files.
Yeti