mirror of https://gitee.com/Nocallback/dejagnu.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.0 KiB
69 lines
2.0 KiB
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl Copyright (C) 1992-2019, 2020 Free Software Foundation, Inc.
|
|
dnl
|
|
dnl This file is part of DejaGnu.
|
|
dnl
|
|
dnl DejaGnu is free software; you can redistribute it and/or modify it
|
|
dnl under the terms of the GNU General Public License as published by
|
|
dnl the Free Software Foundation; either version 3 of the License, or
|
|
dnl (at your option) any later version.
|
|
dnl
|
|
dnl DejaGnu is distributed in the hope that it will be useful, but
|
|
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
dnl General Public License for more details.
|
|
dnl
|
|
dnl You should have received a copy of the GNU General Public License
|
|
dnl along with DejaGnu; if not, write to the Free Software Foundation,
|
|
dnl Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
AC_PREREQ(2.50)
|
|
AC_INIT([GNU DejaGnu], 1.6.3-git, [bug-dejagnu@gnu.org])
|
|
AM_INIT_AUTOMAKE([1.14 subdir-objects])
|
|
AM_MAINTAINER_MODE
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_AWK
|
|
AC_PROG_CC
|
|
AC_PROG_CXX
|
|
AC_PROG_INSTALL
|
|
AC_EXEEXT
|
|
|
|
if test -z "$AWK"; then
|
|
AC_MSG_ERROR([AWK not installed])
|
|
fi
|
|
|
|
dnl Search for expect.
|
|
AC_PATH_PROG([EXPECT], [expect])
|
|
if test -z $ac_cv_path_EXPECT ; then
|
|
AC_MSG_ERROR([unable to locate expect])
|
|
fi
|
|
|
|
dnl Check the Tcl version is >= 8.5.
|
|
AC_MSG_CHECKING([Tcl version 8.5 or greater])
|
|
AC_CACHE_VAL(ac_cv_dg_tcl_modern,[
|
|
ac_cv_dg_tcl_modern=`$EXPECT << EOF
|
|
if @<:@ expr \\${tcl_version} >= 8.5 @:>@ then { puts yes } else { puts no }
|
|
EOF`
|
|
])
|
|
if test x${ac_cv_dg_tcl_modern} = xyes ; then
|
|
AC_MSG_RESULT(${ac_cv_dg_tcl_modern})
|
|
else
|
|
AC_MSG_ERROR([Tcl 8.5 or greater is required])
|
|
fi
|
|
|
|
dnl Provide an empty global site file (/dev/null) as default.
|
|
if test x"$DEJAGNU" = x
|
|
then
|
|
DEJAGNU="/dev/null"
|
|
fi
|
|
AC_SUBST(DEJAGNU)
|
|
|
|
# See what branch we're in
|
|
# FIXME: this will need to deal with a release branch and
|
|
# do something different
|
|
BRANCH=$(cd ${srcdir} && git branch | grep '^\*' | cut -d ' ' -f 2)
|
|
AC_SUBST(BRANCH)
|
|
|
|
AC_OUTPUT([Makefile])
|
|
|