Google Answers Logo
View Question
 
Q: creating Makefile.am and configure.in for use with autoconf and automake ( No Answer,   0 Comments )
Question  
Subject: creating Makefile.am and configure.in for use with autoconf and automake
Category: Computers > Programming
Asked by: chrisstankevitz-ga
List Price: $2.00
Posted: 03 Jul 2002 19:20 PDT
Expires: 06 Jul 2002 13:25 PDT
Question ID: 36366
Hi!  Can you create for me the configure.in and Makefile.am
files I need to build this simple program? I'm not a complete
idiot, but I am finding it frusterating to figure out things
like "how do I specify which libraries need to be linked" and
"How do I specify -I include paths in configure.in".

Requirements:

1. The library libInputOutput.a placed in ./libs/
2. Specify whether or not the preprocessor directive NEWLINE
   is activated for InputOutput by passing "--with-newline"
   to the configure script.
3. After adding COPYING, INSTALL, etc, I am able to
   successfully execute these commands:
    aclocal
    autoconf
    automake
    ./configure
    gmake
    ./wherever/a.out

I am using RedHat 7.3 which includes:
 aclocal  versions 1.4-p5 & 1.5
 automake versions 1.4-p5 & 1.5
 autoconf versions 2.13   & 2.5

Yesterday I learned that one version of automake likes
makefiles in AC_CONFIG_FILES() while another likes
AC_OUTPUT().  If you were not aware of this fact, please do
not provide an answer for me (the idea being I want someone
who knows more about this than I do).

I expect you to provide me with at least these files:
 ./configure.in
 ./Makefile.am
 ./InputOutput/Makefile.am
 ./Application/Makefile.am

Thanks for your help!  Oh, and I won't take "RTFM" as an 
answer... if I wanted that, I'd go to Usenet! :)


Attachments:

//--------------------------------------
// ./InputOutput/InputOutput.h
//--------------------------------------
void Print(const char* s);

//--------------------------------------
// ./InputOutput/InputOutput.cpp
//--------------------------------------
#include "InputOutput.h"
#include <stdio.h>

void Print(const char* s)
{
#ifdef NEWLINE
  printf("%s", s);
#else
  printf("%s\n", s);
#endif
}

//--------------------------------------
// ./Application/Application.cpp
//--------------------------------------
#include <InputOutput/InputOutput.h>

int main()
{
  Print("Hello World!");
}
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy