please help me a little with autotools

  • Thread starter Henri =?ISO-8859-1?Q?Schom=E4cker?=
  • Start date
H

Henri =?ISO-8859-1?Q?Schom=E4cker?=

Hi folks,

I am developing a apache2 so module in c++.
At the moment, I'm trying to get it to compile with automake & friends, but
don't get it to work. I tried to modify the example in the programmer-docs.
I created a simple c++ project and deleted the src subdir and copied my
sourcecode files into the basedir.
(That's not where I want to let them in the end, but I thought it might be
easier in the beginning)
Then I copied the sample Makefile.am over the existing one and edited it to
what I thought would fit my needs, but It just didn't work. The autotools
just stopped with error code 2. No more "messages", no "problems".

Could please someone help me to make a working Makefile.am out of the sample
info of my manual makefile? - If you're familiar with the autotools, please
point me into the right direction.

I want to build mod_cms.so, dynamically linked to the apache2 and odbc++
libs.

Many thanks in advance,
yours Henri

8<-------- Sample manual makefile 8<--------8<--------8<--------8<--------

###################################################################
# configuring
###################################################################
APXS=apxs2
APACHECTL=apache2ctl

# Get all of apxs's internal values.
APXS_CC=`$(APXS) -q CC`
APXS_TARGET=`$(APXS) -q TARGET`
APXS_CFLAGS=`$(APXS) -q CFLAGS`
APXS_SBINDIR=`$(APXS) -q SBINDIR`
APXS_CFLAGS_SHLIB=`$(APXS) -q CFLAGS_SHLIB`
APXS_INCLUDEDIR=`$(APXS) -q INCLUDEDIR`
APXS_LD_SHLIB=`$(APXS) -q LD_SHLIB`
APXS_LIBEXECDIR=`$(APXS) -q LIBEXECDIR`
APXS_LDFLAGS_SHLIB=`$(APXS) -q LDFLAGS_SHLIB`
APXS_SYSCONFDIR=`$(APXS) -q SYSCONFDIR`
APXS_LIBS_SHLIB=`$(APXS) -q LIBS_SHLIB`

###################################################################
# compiling
###################################################################
mod_cms.o: mod_cms.cpp
libtool g++ -W -c -fPIC -I$(APXS_INCLUDEDIR) -I/usr/include/odbc++ -I. -I-
$(APXS_CFLAGS) $(APXS_CFLAGS_SHLIB) -Wall -o $@ $<

cms_request_data.o: cms_request_data.cpp
libtool g++ -c -fPIC -I$(APXS_INCLUDEDIR) -I. -I- $(APXS_CFLAGS)
$(APXS_CFLAGS_SHLIB) -Wall -o $@ $<

epcre.o: epcre.cpp
libtool g++ -c -fPIC -I/usr/include -I$(APXS_INCLUDEDIR) -I. -I-
$(APXS_CFLAGS) $(APXS_CFLAGS_SHLIB) -Wall -o $@ `pcre-config --cflags` $<

###################################################################
# linking
###################################################################
objects = mod_cms.o cms_request_data.o epcre.o
mod_cms.so: $(objects)
libtool g++ -W -fPIC -shared -L/usr/lib -lodbc++ `pcre-config --libs`
`pcre-config --cflags` -o $@ $(objects)

8<-------- Sample manual makefile 8<--------8<--------8<--------8<--------

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaecker_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
 
H

Henri =?ISO-8859-1?Q?Schom=E4cker?=

White said:

not half a minute after my posting, yesss, youre fast!

But I just don't understand why this question should be offtopic.
And If I am really offtopic with my question, then please tell me which ng
would be the right one!
Your name gets directly into my blacklist with this reply !!!
You're just destructive and will just be ignored in the future !!!

And: You'll never get support by me in any ther group where you are new and
Im established.

btw: no realname?

Many thanks for your reply ;-)
Henri

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaecker_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
 
A

Alf P. Steinbach

not half a minute after my posting, yesss, youre fast!

But I just don't understand why this question should be offtopic.
And If I am really offtopic with my question, then please tell me which ng
would be the right one!
Your name gets directly into my blacklist with this reply !!!
You're just destructive and will just be ignored in the future !!!

Why don't you look at the reference Attila gave?

As folks used to say in the old days, RTFM.


And: You'll never get support by me in any ther group where you are new and
Im established.

Perhaps also see <url:http://www.winternet.com/~mikelr/flame52.html>.


btw: no realname?

Google is your friend.
 
A

Alexander Terekhov

Henri Schomäcker wrote:
[...]
btw: no realname?

Oh NO! Don't get Wolf started on this. And you don't have
"Hungarian to Asshole dictionary" anyway. I guess. ;-) ;-)

regards,
alexander.
 
H

Henri =?ISO-8859-1?Q?Schom=E4cker?=

Alf said:
Why don't you look at the reference Attila gave?

As folks used to say in the old days, RTFM.




Perhaps also see <url:http://www.winternet.com/~mikelr/flame52.html>.




Google is your friend.

1. Didn't want to start a flamewar: You do.
2. I read the files!
3. Don't want to and shouldn't have to ask google for a realname of anyone
posting.
4. If you don't like my question here: Which one IS the right ng for my
autotools question? - This ng is comp.lang.c++: Every open-source unix c++
program uses these, so why should this be offtopic? - No, it's not
restrited to unixes: It's also available and used for win32. - I'll use it
for this.

So, what the hell is your problem?

:-| Henri

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaecker_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
 
K

Kevin Goodsell

Henri said:
not half a minute after my posting, yesss, youre fast!

But I just don't understand why this question should be offtopic.

Then read the links.
And If I am really offtopic with my question, then please tell me which ng
would be the right one!

Also in the links, probably. Besides that, this group is not
alt.find.the.right.group.for.whatever.topic.you.want.
Your name gets directly into my blacklist with this reply !!!

Itchy trigger finger?
You're just destructive and will just be ignored in the future !!!

Off-topic re-directions are not destructive. Off-topic posts are. As the
archives can show, Attila is perfectly willing and able to help people
who post topical questions on this group.
And: You'll never get support by me in any ther group where you are new and
Im established.

Well, considering you can't even find the right group to post in, I'm
not sure he would be eager to seek your help anyway.

-Kevin
 
K

Kevin Goodsell

Henri said:
1. Didn't want to start a flamewar: You do.

If you are trying not to start a flame war, you are doing a bad job of
it. Here's some tips for the future:

1) Don't post off-topic messages.
2) Don't insist your off-topic messages are on-topic.
3) Don't attack regulars for politely re-directing you.
4. If you don't like my question here: Which one IS the right ng for my
autotools question? - This ng is comp.lang.c++: Every open-source unix c++
program uses these, so why should this be offtopic?

If you can show where it's defined in the C++ standard then we'll admit
your question is topical and apologize. If the C++ standard does not
define it, it is not C++.
- No, it's not
restrited to unixes: It's also available and used for win32. - I'll use it
for this.

So, what the hell is your problem?

I don't know about Alf, but my problems with the group mainly consist of
off-topic posters and flame war starters.

-Kevin
 
A

Alf P. Steinbach

1. Didn't want to start a flamewar: You do.
2. I read the files!

but did not grok


3. Don't want to and shouldn't have to ask google for a realname of anyone
posting.
off-topic



4. If you don't like my question here: Which one IS the right ng for my
autotools question?

check around


- This ng is comp.lang.c++: Every open-source unix c++
program uses these, so why should this be offtopic?

this newsgroup is concerned with the c++ _language_ only

see earlier references twice given
 
H

Henri =?ISO-8859-1?Q?Schom=E4cker?=

Kevin said:
3) Don't attack regulars for politely >>?<< re-directing you.

And that is what is to read in http://www.slack.net/~shiva/welcome.txt
If you can show where it's defined in the C++ standard then we'll admit
your question is topical and apologize. If the C++ standard does not
define it, it is not C++.
...
I don't know about Alf, but my problems with the group mainly consist of
off-topic posters and flame war starters.

I agree absolutely, so the first reply to my question should have been:

"This is just a newsgroup for the C++ standard language and not also for the
used tools. Please ask in comp.haven't_found_the_right_one_yet."

.... and everyone would get what he/she wants, like the sound in other ng.
I'm also not posting since yesterday.

O.K. thanks, now I got it...
yours Henri

--
| Henri Schomäcker - VIRTUAL HOMES
| Datendesign für Internet und Intranet
| henri.schomaecker_at_virtual-homes.de
| http://www.virtual-homes.de
| Public Key: /.gnupg/public_key.txt
--
 
W

White Wolf

Henri said:

This my I-have-to-be-right-whatever-it-takes new friend:
"This is just a newsgroup for the C++ standard language and not also
for the used tools. Please ask in
comp.haven't_found_the_right_one_yet."

... and everyone would get what he/she wants, like the sound in other
ng. I'm also not posting since yesterday.

Yes. And if morons would first read the FAQ to see what this newsgroup is
for, we would not need to post any redirections, wouldn't we?
O.K. thanks, now I got it...

Does not seem so, but let's leave it at that.
 
W

White Wolf

Henri Schomäcker wrote:
[SNIP]
Your name gets directly into my blacklist with this reply !!!
You're just destructive and will just be ignored in the future !!!
[SNIP]

Ohh, I have missed that one. How cute. *PLONK*
 
T

Thomas Matthews

Henri said:
1. Didn't want to start a flamewar: You do.
2. I read the files!
3. Don't want to and shouldn't have to ask google for a realname of anyone
posting.
4. If you don't like my question here: Which one IS the right ng for my
autotools question? - This ng is comp.lang.c++: Every open-source unix c++
program uses these, so why should this be offtopic? - No, it's not
restrited to unixes: It's also available and used for win32. - I'll use it
for this.

So, what the hell is your problem?

:-| Henri

The issue is that autotools are not available on _every_ platform
and thus are not standard. There were no autotools on my:
tapedrive, postal meter, laser printer, medical ventilator and
vending machine embedded systems that I have worked on. Yes, these
are valid platforms. Just remember that Windows and Unix are not
the only platforms out there.

The easy way to remember what's on topic: If it is in the C++
specification, it's on topic. Other stuff _may_ be on topic,
but be prepared to get flamed.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
 
A

Attila Feher

Thomas said:
Henri said:
1. Didn't want to start a flamewar: You do.
[SNIP]

The issue is that autotools are not available on _every_ platform
and thus are not standard. There were no autotools on my:
tapedrive, postal meter, laser printer, medical ventilator and
vending machine embedded systems that I have worked on. Yes, these
are valid platforms. Just remember that Windows and Unix are not
the only platforms out there.

The easy way to remember what's on topic: If it is in the C++
specification, it's on topic. Other stuff _may_ be on topic,
but be prepared to get flamed.

He did not get flamed. He flamed. He has been redirected. He has been
given explanation. Then he started to flame.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,126
Latest member
FastBurnketoIngredients
Top