|
Packit |
62fe53 |
dnl Process this file with autoconf to produce a configure script.
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
dnl Copyright (C) 1992-2016 Free Software Foundation, Inc.
|
|
Packit |
62fe53 |
dnl
|
|
Packit |
62fe53 |
dnl This file is part of DejaGnu.
|
|
Packit |
62fe53 |
dnl
|
|
Packit |
62fe53 |
dnl DejaGnu is free software; you can redistribute it and/or modify it
|
|
Packit |
62fe53 |
dnl under the terms of the GNU General Public License as published by
|
|
Packit |
62fe53 |
dnl the Free Software Foundation; either version 3 of the License, or
|
|
Packit |
62fe53 |
dnl (at your option) any later version.
|
|
Packit |
62fe53 |
dnl
|
|
Packit |
62fe53 |
dnl DejaGnu is distributed in the hope that it will be useful, but
|
|
Packit |
62fe53 |
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
62fe53 |
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
62fe53 |
dnl General Public License for more details.
|
|
Packit |
62fe53 |
dnl
|
|
Packit |
62fe53 |
dnl You should have received a copy of the GNU General Public License
|
|
Packit |
62fe53 |
dnl along with DejaGnu; if not, write to the Free Software Foundation,
|
|
Packit |
62fe53 |
dnl Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
AC_PREREQ(2.50)
|
|
Packit |
62fe53 |
AC_INIT([GNU DejaGnu], 1.6.1, [bug-dejagnu@gnu.org])
|
|
Packit |
62fe53 |
AM_INIT_AUTOMAKE([1.14 subdir-objects])
|
|
Packit |
62fe53 |
AM_MAINTAINER_MODE
|
|
Packit |
62fe53 |
AC_PROG_MAKE_SET
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
AC_PROG_CC
|
|
Packit |
62fe53 |
AC_PROG_CXX
|
|
Packit |
62fe53 |
AC_PROG_INSTALL
|
|
Packit |
62fe53 |
AC_EXEEXT
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
dnl Search for expect.
|
|
Packit |
62fe53 |
AC_PATH_PROG([EXPECT], [expect])
|
|
Packit |
62fe53 |
if test -z $ac_cv_path_EXPECT ; then
|
|
Packit |
62fe53 |
AC_MSG_ERROR([unable to locate expect])
|
|
Packit |
62fe53 |
fi
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
dnl Check the Tcl version is >= 8.5.
|
|
Packit |
62fe53 |
AC_MSG_CHECKING([Tcl version 8.5 or greater])
|
|
Packit |
62fe53 |
AC_CACHE_VAL(ac_cv_dg_tcl_modern,[
|
|
Packit |
62fe53 |
ac_cv_dg_tcl_modern=`$EXPECT << EOF
|
|
Packit |
62fe53 |
if @<:@ expr \\${tcl_version} >= 8.5 @:>@ then { puts yes } else { puts no }
|
|
Packit |
62fe53 |
EOF`
|
|
Packit |
62fe53 |
])
|
|
Packit |
62fe53 |
if test x${ac_cv_dg_tcl_modern} = xyes ; then
|
|
Packit |
62fe53 |
AC_MSG_RESULT(${ac_cv_dg_tcl_modern})
|
|
Packit |
62fe53 |
else
|
|
Packit |
62fe53 |
AC_MSG_ERROR([Tcl 8.5 or greater is required])
|
|
Packit |
62fe53 |
fi
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
if test x"$DEJAGNU" = x
|
|
Packit |
62fe53 |
then
|
|
Packit |
62fe53 |
DEJAGNU="/dev/null"
|
|
Packit |
62fe53 |
fi
|
|
Packit |
62fe53 |
AC_SUBST(DEJAGNU)
|
|
Packit |
62fe53 |
|
|
Packit |
62fe53 |
AC_CONFIG_SUBDIRS([example/calc example/mathhelper])
|
|
Packit |
62fe53 |
AC_OUTPUT([Makefile])
|