Project

General

Profile

« Previous | Next » 

Revision a89ad528

Added by Corentin Lauverjat over 1 year ago

Cleaning up configure.ac by removing now useless informations

View differences:

configure.ac
1 1
define([gitversion], esyscmd([sh -c "git log --oneline | wc -l | tr -d ' \n'"]))
2 2

  
3
AC_INIT([lustrec], 1.7-gitversion, [ploc@garoche.net])
4
AC_SUBST(VERSION_NUMBER, 1.7)
3
AC_INIT([lustrec])
5 4

  
6 5
gitbranch=`git branch | grep \* | sed "s/\*[ ]*//"`
7 6
if test x"$gitbranch" != "xmaster"; then
......
16 15

  
17 16
AC_SUBST(SHARE_PATH, $share)
18 17

  
19
# Next release will be
20
#AC_INIT([lustrec], [1.8], [ploc@garoche.net])
21
AC_MSG_NOTICE(Git branch: [$gitbranch])
22 18
AC_CONFIG_SRCDIR([src/main_lustre_compiler.ml])
23 19
AC_CONFIG_SRCDIR([src/main_lustre_testgen.ml])
24 20

  
25 21
# default prefix is /usr/local
26 22
AC_PREFIX_DEFAULT(./_build/install/default)
27 23

  
28
# Configuration
29
AC_MSG_NOTICE(******** Configuration ********)
30
AC_MSG_NOTICE(bin path:     $prefix/bin)
31
AC_MSG_NOTICE(share path: $prefix/share)
32

  
33

  
34 24
# Seal plugin feature
35 25

  
36 26
AC_ARG_ENABLE(seal, 
......
139 129
AC_SUBST(lustresf_target, "lustresf")
140 130

  
141 131

  
142
# Checking availability of path to regression tests
143
tests_path="../lustrec-tests/regression_tests"
144

  
145
AC_ARG_WITH([tests-path],
146
            [AS_HELP_STRING([--with-tests-path],
147
               [provides path to test suite (default is ../lustrec-test if available)])],
148
            [tests_path="$withval";
149
	     if (test "x$tests_path" = xyes); then
150
	       AC_MSG_ERROR(Option --with-tests-path requires a parameter: eg. --with-tests-path=value);
151
	     fi],
152
            )
153
AC_MSG_NOTICE($tests_path)
154
AC_CHECK_FILE(${tests_path}/CMakeLists.txt,
155
              [
156
	      valid_test_path=true
157
	      ],
158
	      [
159
	      valid_test_path=false
160
	        AC_SUBST(PATH_TO_TESTS, $tests_path)	      ])
161
AC_SUBST(PATH_TO_TESTS_DEFINED, $valid_test_path)
162
AC_SUBST(PATH_TO_TESTS, $tests_path)
163

  
164
# End of config
165 132

  
166 133
AC_DEFUN([AC_DEFINE_DIR], [
167 134
  prefix_NONE=
......
192 159
		 ])
193 160

  
194 161
AC_OUTPUT
195

  
196

  
197

  
198

  
199
AC_MSG_NOTICE(****** Regression Tests  ******)
200
if (test "x$valid_test_path" = xfalse); then
201
  AC_MSG_NOTICE(no valid tests path provided ($tests_path))
202
else
203
AC_MSG_NOTICE(tests path: $tests_path)
204
fi
205
AC_MSG_NOTICE(******** Configuration ********)
206
AC_MSG_NOTICE(Execute "make; make install" now)

Also available in: Unified diff