This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [4.5] [RFC] Move line-map.* to its own library (libloc)


* Manuel López-Ibáñez wrote on Tue, Nov 18, 2008 at 12:14:18AM CET:
> 2008/11/15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>:
> >
> > FWIW, I don't see why you shouldn't be able to use automake for libloc.
> > The Makefile.am file could probably be
> 
> I get the following errors:
> 
> configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
> configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
> configure.ac: that aclocal.m4 is present in the top-level directory,
> configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
> Makefile.am: required file `./INSTALL' not found

> /usr/share/automake-1.9/am/depend2.am: am__fastdepCC does not appear
> in AM_CONDITIONAL
> /usr/share/automake-1.9/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL

Please look at for example libgomp/configure.ac for settings you need
for Automake, esp. AM_INIT_AUTOMAKE([foreign...]).  Adjust those, then run
  autoreconf -vi

inside the libloc directory once, to install needed files.  You will
likely also need AC_CONFIG_AUX_DIR([..]) (those are literal dots).
You can probably drop all of these from configure.ac:

+AC_PROG_MAKE_SET
+AC_PROG_INSTALL
+MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
+AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
+AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
+AC_CHECK_PROGS([AUTOHEADER], [autoheader], [$MISSING autoheader])
+# Dependency checking.
+ZW_CREATE_DEPDIR
+ZW_PROG_COMPILER_DEPENDENCIES([CC])

HTH.

Cheers,
Ralf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]