Hi,
I have
noinst_bin_PROGRAMS = gdbmi_driver
noinst_bindir = $(top_builddir)/progs
and I wasn't using AC_PROG_LIBTOOL. I've never had a problem with 'make
install' before. However, since I've enabled AM_PROG_LIBTOOL,
I'm getting this error,
test -z "../progs" || mkdir -p -- "../progs"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'gdbmi_driver'
'../progs/gdbmi_driver'
libtool: install: `../progs' must be an absolute directory name
Try `libtool --help --mode=install' for more information.
make[2]: *** [install-noinst_binPROGRAMS] Error 1
make[2]: Leaving directory `/home/bob/cvs/gdbmi/builddir/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/bob/cvs/gdbmi/builddir/src'
make: *** [install-recursive] Error 1
Attached is the configure.in and Makefile.am file. Any ideas?
Thanks,
Bob Rossi
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.5)
AC_INIT(gdbmi, 0.1)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LIBTOOL
#AC_PROG_RANLIB
AM_PROG_LEX
AC_PROG_YACC
dnl Checks for header files.
AC_HEADER_STDC
dnl determine other headers for tgdb, Error if they do not exist
AC_CHECK_HEADERS(stdio.h stdlib.h string.h,,AC_MSG_ERROR)
dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_ARG_ENABLE(tcl-extension,[ --enable-tcl-extension Build the TCL extension],
[case "${enableval}" in
yes) enable_tcl_extension=true ;;
no) enable_tcl_extension=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-tcl-extension) ;;
esac],[enable_tcl_extension=false])
AM_CONDITIONAL(ENABLE_TCL_EXTENSION, test x$enable_tcl_extension = xtrue)
AC_OUTPUT(Makefile src/Makefile)
# libgdbmi
noinst_LIBRARIES=libgdbmi.a
libgdbmi_a_SOURCES= \
gdbmi_grammar.y \
gdbmi_lexer.l \
gdbmi_pt.c \
gdbmi_parser.c
EXTRA_DIST = gdbmi_parser.h gdbmi_pt.h gdbmi_grammar.h
# gdbmi driver program
noinst_bin_PROGRAMS = gdbmi_driver
noinst_bindir = $(top_builddir)/progs
gdbmi_driver_LDFLAGS = -L.
gdbmi_driver_LDADD = -lgdbmi
gdbmi_driver_SOURCES = gdbmi_driver.c
################################################################################
# If this package was compiled with --enable-tcl-extension, then the gdbmi
# tcl extension will also be compiled.
################################################################################
if ENABLE_TCL_EXTENSION
TCL_EXTENSION = libgdbmi_tclext-1.0.la
else
TCL_EXTENSION =
endif
lib_LTLIBRARIES = $(TCL_EXTENSION)
libgdbmi_tclext_1_0_la_SOURCES = \
gdbmi_tclext.c \
$libgdbmi_a_SOURCES
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool