1842 |
02 Mar 09 |
peter |
#! /bin/sh |
1842 |
02 Mar 09 |
peter |
# $Id$ |
1842 |
02 Mar 09 |
peter |
3 |
# |
3999 |
08 Oct 20 |
peter |
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2019, 2020 Peter Johansson |
1842 |
02 Mar 09 |
peter |
5 |
# |
1842 |
02 Mar 09 |
peter |
# This file is part of the yat library, http://dev.thep.lu.se/yat |
1842 |
02 Mar 09 |
peter |
7 |
# |
1842 |
02 Mar 09 |
peter |
# The yat library is free software; you can redistribute it |
1842 |
02 Mar 09 |
peter |
# and/or modify it under the terms of the GNU General Public License as |
1842 |
02 Mar 09 |
peter |
# published by the Free Software Foundation; either version 3 of the |
1842 |
02 Mar 09 |
peter |
# License, or (at your option) any later version. |
1842 |
02 Mar 09 |
peter |
12 |
# |
1842 |
02 Mar 09 |
peter |
# The yat library is distributed in the hope that it will be useful, |
1842 |
02 Mar 09 |
peter |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
1842 |
02 Mar 09 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1842 |
02 Mar 09 |
peter |
# General Public License for more details. |
1842 |
02 Mar 09 |
peter |
17 |
# |
1842 |
02 Mar 09 |
peter |
# You should have received a copy of the GNU General Public License |
1842 |
02 Mar 09 |
peter |
# along with yat. If not, see <http://www.gnu.org/licenses/>. |
1842 |
02 Mar 09 |
peter |
20 |
|
1842 |
02 Mar 09 |
peter |
21 |
|
1851 |
05 Mar 09 |
peter |
# test that option --with-yat=no works as expected. |
1842 |
02 Mar 09 |
peter |
23 |
|
2240 |
11 Apr 10 |
peter |
24 |
required="autoconf automake" |
1854 |
07 Mar 09 |
peter |
25 |
|
1842 |
02 Mar 09 |
peter |
26 |
set -e |
1842 |
02 Mar 09 |
peter |
27 |
|
3036 |
03 Jun 13 |
peter |
28 |
. test/init.sh || exit 99 |
1842 |
02 Mar 09 |
peter |
29 |
|
2225 |
22 Mar 10 |
peter |
30 |
cat >> configure.ac <<EOF |
2527 |
26 Jul 11 |
peter |
31 |
AC_LANG([C++]) |
2527 |
26 Jul 11 |
peter |
32 |
AC_PROG_CXXCPP |
2527 |
26 Jul 11 |
peter |
33 |
AC_PROG_CXX |
1854 |
07 Mar 09 |
peter |
34 |
YAT_FIND_YAT(,[AC_MSG_ERROR([yat_find_yat failed - see warning above])]) |
2739 |
07 Jun 12 |
peter |
35 |
YAT_CHECK_VERSION([1.60.2], |
1854 |
07 Mar 09 |
peter |
36 |
[AC_MSG_ERROR([yat_check_version failed - see warning above])]) |
1854 |
07 Mar 09 |
peter |
37 |
YAT_CHECK_HEADER(,[AC_MSG_ERROR([yat_check_header failed - see warning above])]) |
1854 |
07 Mar 09 |
peter |
38 |
YAT_CHECK_LIB(,[AC_MSG_ERROR([yat_check_lib failed - see warning above])]) |
1854 |
07 Mar 09 |
peter |
39 |
YAT_CHECK_YAT([2.7.8],,AC_MSG_ERROR([yat_check_yat failed - see warning above])) |
2225 |
22 Mar 10 |
peter |
40 |
AC_CONFIG_FILES([Makefile]) |
2225 |
22 Mar 10 |
peter |
41 |
AC_OUTPUT |
1851 |
05 Mar 09 |
peter |
42 |
EOF |
1851 |
05 Mar 09 |
peter |
43 |
|
2206 |
28 Feb 10 |
peter |
44 |
bootstrap |
3825 |
18 Jul 19 |
peter |
45 |
./configure CXX="$CXX" $configure_opts --without-yat |
3945 |
20 Jul 20 |
peter |
46 |
$MAKE Makefile |
1842 |
02 Mar 09 |
peter |
47 |
|
2608 |
01 Nov 11 |
peter |
48 |
exit_success |