1 dnl ----------------------------------------------------------------------
2 dnl This whole bit snagged from libgfortran.
4 sinclude(../libtool.m4)
5 dnl The lines below arrange for aclocal not to bring an installed
6 dnl libtool.m4 into aclocal.m4, while still arranging for automake to
7 dnl add a definition of LIBTOOL to Makefile.in.
8 ifelse(,,,[AC_SUBST(LIBTOOL)
9 AC_DEFUN([AM_PROG_LIBTOOL])
15 dnl Initialize the rest of the library configury. At this point we have
16 dnl variables like $host.
19 dnl libvtv_builddir (absolute path)
20 dnl libvtv_srcdir (absolute path)
21 dnl toplevel_builddir (absolute path)
22 dnl toplevel_srcdir (absolute path)
25 dnl with_target_subdir
27 dnl - the variables in LIBVTV_CHECK_HOST / configure.host
28 dnl - default settings for all AM_CONDITIONAL test variables
29 dnl - lots of tools, like CC and CXX
31 AC_DEFUN([LIBVTV_CONFIGURE], [
33 # These need to be absolute paths, yet at the same time need to
34 # canonicalize only relative paths, because then amd will not unmount
35 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
36 libvtv_builddir=`${PWDCMD-pwd}`
38 [\\/$]* | ?:[\\/]*) libvtv_srcdir=${srcdir} ;;
39 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
41 toplevel_builddir=${libvtv_builddir}/..
42 toplevel_srcdir=${libvtv_srcdir}/..
43 AC_SUBST(libvtv_builddir)
44 AC_SUBST(libvtv_srcdir)
45 AC_SUBST(toplevel_builddir)
46 AC_SUBST(toplevel_srcdir)