LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2005, 12:58 PM   #1
STEBEL
LQ Newbie
 
Registered: Aug 2003
Location: Lodz, POLAND
Posts: 4

Rep: Reputation: 0
Need help with configure.in and Makefile.am


Hi

I have a tiny HelloWorld like app written in C++. Let's call it app.cc

The app will be using firing a few perl scripts and save data to paricular folder locations. Additionaly, basing on given parameters during installation, it should generate same files consisting of those params.

My files look like these:

Makefile.am
Quote:
bin_PROGRAMS = app
AM_CXXFLAGS = $(INTI_CFLAGS)
app_SOURCES = app.cc
app_LDADD = $(INTI_LIBS)
configure.in
Quote:
AC_INIT(app.cc)
PACKAGE=test
VERSION=1.0
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AC_SUBST(INTI_CFLAGS)
AC_SUBST(INTI_LIBS)
AC_PROG_CXX
AC_OUTPUT(Makefile Makefile)
What I need o achieve

1. Currently when giving ./configure --prefix /var/test the whole process generates additional dir app inside /var/test/bin/app - I need it to be /var/test/app

2. What commands and where should I put them to make the scripts copy/create dirs given by params to configure or make.

3. How can I make scripts automatically create files basing on passed params.

Thanks in advance for any help given
 
Old 12-11-2005, 01:14 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
you just have to go with the way it works or find a configure system you like better
i would imagine that one is set up to use --exec_prefix=

always do ./configure --help on your configure script to see how it works
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure doesn't create a Makefile (with anjuta) crashmakerMX Programming 5 06-24-2005 04:48 PM
configure and Makefile Ephracis Programming 7 11-16-2004 02:41 PM
Create my own configure and Makefile Ephracis Linux - Software 1 10-11-2004 08:00 PM
what are 'makefile', 'configure'? LongName Programming 3 08-27-2004 09:08 PM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration