configure.ac (a44fea77) configure.ac (aee29faa)
1dnl /******************************************************************
2dnl * vi:set sw=3 ts=3 et:
3dnl *
4dnl * Name: configure.in
5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland
6dnl * Date: $Date: 2008-09-08 07:38:40 $
7dnl *
8dnl * Desc: This file serves as input for the GNU autoconf package

--- 1630 unchanged lines hidden (view full) ---

1639fi
1640AC_SUBST(GNUMAKE)
1641
1642dnl ===================================================================
1643dnl Search for a pre-installed dmake
1644dnl ===================================================================
1645AC_MSG_CHECKING([for dmake])
1646AC_PATH_PROG(DMAKE, dmake, no)
1dnl /******************************************************************
2dnl * vi:set sw=3 ts=3 et:
3dnl *
4dnl * Name: configure.in
5dnl * Auth: Willem van Dorp, Ross Nicholson, Oisin Boydell - Sun Microsystems Ireland
6dnl * Date: $Date: 2008-09-08 07:38:40 $
7dnl *
8dnl * Desc: This file serves as input for the GNU autoconf package

--- 1630 unchanged lines hidden (view full) ---

1639fi
1640AC_SUBST(GNUMAKE)
1641
1642dnl ===================================================================
1643dnl Search for a pre-installed dmake
1644dnl ===================================================================
1645AC_MSG_CHECKING([for dmake])
1646AC_PATH_PROG(DMAKE, dmake, no)
1647IS_SYSTEM_DMAKE=NO
1647if test "$DMAKE" != "no"; then
1648 AC_MSG_RESULT([using system dmake])
1648if test "$DMAKE" != "no"; then
1649 AC_MSG_RESULT([using system dmake])
1649else
1650 DMAKE_PATH="$DMAKE"
1651 IS_SYSTEM_DMAKE=YES
1652elif test -n "$with_dmake_path" ; then
1650 # Did not find pre-installed dmake.
1651 # Is it at a nonstandard location provided by --with-dmake-path ?
1653 # Did not find pre-installed dmake.
1654 # Is it at a nonstandard location provided by --with-dmake-path ?
1652 if test -n "$with_dmake_path" ; then
1653 AC_PATH_PROG(DMAKE, dmake, no, "$with_dmake_path")
1654 if test "$DMAKE" != "no"; then
1655 AC_MSG_RESULT([using user provided dmake])
1656 fi
1655 AC_MSG_NOTICE([looking for dmake at $DMAKE_PATH])
1656 if test -x "$with_dmake_path" ; then
1657 AC_MSG_RESULT([using user provided dmake])
1658 DMAKE=$with_dmake_path
1657 fi
1658fi
1659
1660DMAKE_URL=
1661if test "$DMAKE" = "no"; then
1662 AC_MSG_NOTICE([no system or user-provided dmake found])
1663 # Check if a URL was supplied from which we can download the source and compile it.
1664 if test -n "$with_dmake_url" ; then
1665 # At this moment we can not verify the URL or the content that we want to download.
1666 # Neither can we apply the test below for ruling out that it is the SunStudio dmake.
1667 DMAKE_URL=$with_dmake_url
1668 AC_MSG_RESULT([dmake will be downloaded and compiled in bootstrap])
1669 DMAKE=
1670 else
1659 fi
1660fi
1661
1662DMAKE_URL=
1663if test "$DMAKE" = "no"; then
1664 AC_MSG_NOTICE([no system or user-provided dmake found])
1665 # Check if a URL was supplied from which we can download the source and compile it.
1666 if test -n "$with_dmake_url" ; then
1667 # At this moment we can not verify the URL or the content that we want to download.
1668 # Neither can we apply the test below for ruling out that it is the SunStudio dmake.
1669 DMAKE_URL=$with_dmake_url
1670 AC_MSG_RESULT([dmake will be downloaded and compiled in bootstrap])
1671 DMAKE=
1672 else
1671 AC_MSG_WARN([no URL for dmake source code specified, either.])
1673 AC_MSG_ERROR([no URL for dmake source code specified, either.])
1672 BUILD_DMAKE=YES
1674 BUILD_DMAKE=YES
1673 AC_MSG_WARN([dmake will be built from internal sources but these will be removed in the future"])
1674 fi
1675else
1676 AC_MSG_CHECKING([whether the found dmake is the right dmake])
1677 # we need to find out whether that dmake we found is "our" dmake
1678 # or the dmake from Sun's SunStudio Compiler which is something
1679 # different
1680 # This test _should_ work because the one accepts -V (ours) and one
1681 # (the other) not...

--- 16 unchanged lines hidden (view full) ---

1698 AC_MSG_WARN([no])
1699 DMAKE=no
1700 fi
1701fi
1702if test "$DMAKE" = "no"; then
1703 AC_MSG_ERROR([please use --with-dmake-path or --with-dmake-url to specify dmake executable or source])
1704fi
1705AC_SUBST(DMAKE_URL)
1675 fi
1676else
1677 AC_MSG_CHECKING([whether the found dmake is the right dmake])
1678 # we need to find out whether that dmake we found is "our" dmake
1679 # or the dmake from Sun's SunStudio Compiler which is something
1680 # different
1681 # This test _should_ work because the one accepts -V (ours) and one
1682 # (the other) not...

--- 16 unchanged lines hidden (view full) ---

1699 AC_MSG_WARN([no])
1700 DMAKE=no
1701 fi
1702fi
1703if test "$DMAKE" = "no"; then
1704 AC_MSG_ERROR([please use --with-dmake-path or --with-dmake-url to specify dmake executable or source])
1705fi
1706AC_SUBST(DMAKE_URL)
1706AC_SUBST(DMAKE)
1707AC_SUBST(DMAKE_PATH)
1708AC_SUBST(IS_SYSTEM_DMAKE)
1707
1708
1709dnl ===================================================================
1710dnl Search all the common names for GNU or BSD tar
1711dnl ===================================================================
1712AC_MSG_CHECKING([for GNU or BSD compatible tar])
1713for a in $GNUTAR gtar gnutar bsdtar tar; do
1714 $a --version 2> /dev/null | egrep "GNU|libarchive" 2>&1 > /dev/null

--- 5531 unchanged lines hidden ---
1709
1710
1711dnl ===================================================================
1712dnl Search all the common names for GNU or BSD tar
1713dnl ===================================================================
1714AC_MSG_CHECKING([for GNU or BSD compatible tar])
1715for a in $GNUTAR gtar gnutar bsdtar tar; do
1716 $a --version 2> /dev/null | egrep "GNU|libarchive" 2>&1 > /dev/null

--- 5531 unchanged lines hidden ---