Re: Noobie question about doing "src" dirs

2006-05-31 Thread Thomas Dickey
On Wed, 31 May 2006, Stepan Kasal wrote: Hello, On Wed, May 31, 2006 at 12:14:28PM -0700, Douglas Phillipson wrote: The autoconf tutorial states that either a configure.ac or a configure.in can be used initially. What is the difference and why would you use the configure.ac over the configure

Re: Noobie question about doing "src" dirs

2006-05-31 Thread Stepan Kasal
Hello, On Wed, May 31, 2006 at 12:27:42PM -0700, Douglas Phillipson wrote: > You no longer need these anymore?? > > AC_INIT(src/hello.c) > AM_INIT_AUTOMAKE(hello,1.1) > AC_PROG_CC > AC_PROG_INSTALL Of course you do. We were not just speaking about the tail of configure.ac; you start with AC_INI

Re: Noobie question about doing "src" dirs

2006-05-31 Thread Douglas Phillipson
Harlan Stenn wrote: configure.in is the old name, configure.ac is the new name. I prefer: AC_CONFIG_FILES(Makefile) AC_CONFIG_FILES(src/Makefile) AC_OUTPUT and run 'autoreconf -vfi'. H You no longer need these anymore?? AC_INIT(src/hello.c) AM_INIT_AUTOMAKE(hello,1.1) AC_PROG_CC AC_

Re: Noobie question about doing "src" dirs

2006-05-31 Thread Stepan Kasal
Hi, On Wed, May 31, 2006 at 07:21:34PM +, Harlan Stenn wrote: > I prefer: > > AC_CONFIG_FILES(Makefile) > AC_CONFIG_FILES(src/Makefile) > AC_OUTPUT others prefer AC_CONFIG_FILES([ Makefile src/Makefile ]) AC_OUTPUT Stepan

Re: Noobie question about doing "src" dirs

2006-05-31 Thread Stepan Kasal
Hello, On Wed, May 31, 2006 at 12:14:28PM -0700, Douglas Phillipson wrote: > The autoconf tutorial states that either a configure.ac or a > configure.in can be used initially. What is the difference and why > would you use the configure.ac over the configure.in? the only difference is that con

Re: Noobie question about doing "src" dirs

2006-05-31 Thread Harlan Stenn
configure.in is the old name, configure.ac is the new name. I prefer: AC_CONFIG_FILES(Makefile) AC_CONFIG_FILES(src/Makefile) AC_OUTPUT and run 'autoreconf -vfi'. H

Re: Noobie question about doing "src" dirs

2006-05-31 Thread Douglas Phillipson
Tyler MacDonald wrote: Douglas Phillipson <[EMAIL PROTECTED]> wrote: I have: Makefile.am: SUBDIRS = srcbin_PROGRAMS = hello Those two should not be on the same line :-) It's creating the Makefile.in in the "src" dir, but not the top level dir. What Am I doing wrong? Everything else look

Re: Noobie question about doing "src" dirs

2006-05-31 Thread Douglas Phillipson
Tyler MacDonald wrote: Douglas Phillipson <[EMAIL PROTECTED]> wrote: I have: Makefile.am: SUBDIRS = srcbin_PROGRAMS = hello Those two should not be on the same line :-) It's creating the Makefile.in in the "src" dir, but not the top level dir. What Am I doing wrong? Everything else look

Re: Noobie question about doing "src" dirs

2006-05-31 Thread Tyler MacDonald
Douglas Phillipson <[EMAIL PROTECTED]> wrote: > I have: > Makefile.am: > SUBDIRS = srcbin_PROGRAMS = hello Those two should not be on the same line :-) > It's creating the Makefile.in in the "src" dir, but not the top level > dir. What Am I doing wrong? Everything else looks good!

Re: Noobie question about doing "src" dirs

2006-05-31 Thread Douglas Phillipson
Tyler MacDonald wrote: Douglas Phillipson <[EMAIL PROTECTED]> wrote: SUBDIRS = src My top level configure.in: AC_INIT(src/hello.c) AM_INIT_AUTOMAKE(hello,1.1) AC_PROG_CC AC_PROG_INSTALL AC_OUTPUT(Makefile src/Makefile) What else needs to go in src? and What should it contain? Yo

Re: Noobie question about doing "src" dirs

2006-05-26 Thread Tyler MacDonald
Douglas Phillipson <[EMAIL PROTECTED]> wrote: > SUBDIRS = src > > My top level configure.in: > > AC_INIT(src/hello.c) > AM_INIT_AUTOMAKE(hello,1.1) > AC_PROG_CC > AC_PROG_INSTALL > AC_OUTPUT(Makefile src/Makefile) > > What else needs to go in src? and What should it contain? You do ne

Noobie question about doing "src" dirs

2006-05-26 Thread Douglas Phillipson
After going by the tutorial with all my source in one dir, I understood all the required files pretty well. Now I'm trying to do a hello world program where my source files are in "src" off the top level dir. Automake is telling me I'm missing "src/Makefile.in". Now looking at the Makefile.in