Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how do i work automake [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Sun Mar 23, 2008 8:27 am    Post subject: how do i work automake [solved] Reply with quote

i downloaded a tgz file with the following files:

Code:
authenticate.c  check_bacula.c  check_bacula.h  Makefile.in


how do i build it? never used automake before, and i don't see a ./configure... :wink: :lol:

thanks in advance
_________________
goodbye fgo. it was nice knowing you.


Last edited by bunder on Mon Mar 24, 2008 3:59 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 6828

PostPosted: Sun Mar 23, 2008 3:57 pm    Post subject: Reply with quote

That tgz looks incomplete. Automake would be used to convert a Makefile.am into a Makefile.in. Since you already have a Makefile.in, you can skip Automake and go directly to converting Makefile.in into a Makefile. Unfortunately, that task is typically done by configure. Where did you get the tgz? Are there any supporting files in a secondary tarball?

If not, you will need to convert the Makefile.in into a Makefile by hand. This is usually a time-consuming process, since it was meant to be done by an autoconf-generated configure script. The other option is to write your own configure.ac and hope that Autoconf produces a configure which does all the necessary substitutions. If you want help writing a basic configure.ac, post back. Some autotools guru can probably hack one up, especially if we can see the contents of Makefile.in.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Sun Mar 23, 2008 8:27 pm    Post subject: Reply with quote

darn. i guess i'll have wait for someone to fix it...

thanks
_________________
goodbye fgo. it was nice knowing you.
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 6828

PostPosted: Sun Mar 23, 2008 9:23 pm    Post subject: Reply with quote

Basic configure.ac files are not hard to write. If you point me to a copy of the Makefile.in, I will try to write one. Configure scripts only get complex when they start to support fancy features like conditionally enabling a package feature or searching for a library.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Mon Mar 24, 2008 4:00 am    Post subject: Reply with quote

solved - i found a website for the tarball, and says i need to compile it using a nagios-plugins source tarball. :?
_________________
goodbye fgo. it was nice knowing you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum