]> git.ipfire.org Git - thirdparty/gcc.git/blame - libvtv/acinclude.m4
PR c++/87554 - ICE with extern template and reference member.
[thirdparty/gcc.git] / libvtv / acinclude.m4
CommitLineData
b710ec85 1dnl ----------------------------------------------------------------------
2dnl This whole bit snagged from libgfortran.
3
4sinclude(../libtool.m4)
20c60140 5sinclude(../config/enable.m4)
6sinclude(../config/cet.m4)
b710ec85 7dnl The lines below arrange for aclocal not to bring an installed
8dnl libtool.m4 into aclocal.m4, while still arranging for automake to
9dnl add a definition of LIBTOOL to Makefile.in.
10ifelse(,,,[AC_SUBST(LIBTOOL)
11AC_DEFUN([AM_PROG_LIBTOOL])
12])
13
14
15
16dnl
17dnl Initialize the rest of the library configury. At this point we have
18dnl variables like $host.
19dnl
20dnl Substs:
21dnl libvtv_builddir (absolute path)
22dnl libvtv_srcdir (absolute path)
23dnl toplevel_builddir (absolute path)
24dnl toplevel_srcdir (absolute path)
25dnl with_cross_host
26dnl with_newlib
27dnl with_target_subdir
28dnl plus
29dnl - the variables in LIBVTV_CHECK_HOST / configure.host
30dnl - default settings for all AM_CONDITIONAL test variables
31dnl - lots of tools, like CC and CXX
32dnl
33AC_DEFUN([LIBVTV_CONFIGURE], [
34
b710ec85 35 # These need to be absolute paths, yet at the same time need to
36 # canonicalize only relative paths, because then amd will not unmount
37 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
38 libvtv_builddir=`${PWDCMD-pwd}`
39 case $srcdir in
40 [\\/$]* | ?:[\\/]*) libvtv_srcdir=${srcdir} ;;
41 *) libvtv_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
42 esac
43 toplevel_builddir=${libvtv_builddir}/..
44 toplevel_srcdir=${libvtv_srcdir}/..
45 AC_SUBST(libvtv_builddir)
46 AC_SUBST(libvtv_srcdir)
47 AC_SUBST(toplevel_builddir)
48 AC_SUBST(toplevel_srcdir)
49])