Project

General

Profile

Revision a86bae77 configure.ac

View differences:

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

  
3
AC_INIT([lustrec], [1.4-gitversion], [ploc@garoche.net])
2
define([gitbranch], esyscmd([sh -c "git branch | grep \* | cut -d ' ' -f2"]))
3
AC_INIT([lustrec], 1.4-gitversion, [ploc@garoche.net])
4 4
AC_SUBST(VERSION_CODENAME, "Xia/Xiang-dev")
5
AC_SUBST(GITBRANCH, gitbranch)
5 6
# Next release will be
6 7
#AC_INIT([lustrec], [1.5], [ploc@garoche.net])
7 8
#AC_SUBST(VERSION_CODENAME, "Xia/Shao Kang")
......
90 91
mpfr=no])
91 92

  
92 93

  
93

  
94
# Checking availability of path to regression tests
95
tests_path="../lustrec-tests/regression_tests"
96

  
97
AC_ARG_WITH([tests-path],
98
            [AS_HELP_STRING([--with-tests-path],
99
               [provides path to test suite (default is ../lustrec-test if available)])],
100
            [tests_path="$withval";
101
	     if (test "x$tests_path" = xyes); then
102
	       AC_MSG_ERROR(Option --with-tests-path requires a parameter: eg. --with-tests-path=value);
103
	     fi],
104
            )
105
AC_MSG_NOTICE($tests_path)
106
AC_CHECK_FILE(${tests_path}/CMakeLists.txt,
107
              [
108
	      valid_test_path=true	
109
	      ],
110
	      [
111
	      valid_test_path=false
112
	        AC_SUBST(PATH_TO_TESTS, $tests_path)	      ])
113
AC_SUBST(PATH_TO_TESTS_DEFINED, $valid_test_path)
114
AC_SUBST(PATH_TO_TESTS, $tests_path)
94 115

  
95 116
# End of config
96 117

  
......
129 150
AC_MSG_NOTICE(********    Plugins    ********)
130 151

  
131 152
  if (test "x$gmp" = xyes -a "x$mpfr" = xyes ); then
132
      AC_MSG_NOTICE([-mpfr option enable])
153
      AC_MSG_NOTICE([MPFR option enabled])
133 154
  else 
134 155
      AC_MSG_WARN([MPFR option cannot be activated. Requires GMP and MPFR libs])
135 156
  fi
136 157

  
137
  if (test "x$salsa" = xyes -a "x$enable_salsa" = xyes); then
158
  if (test "x$salsa" = xyes -a "x$enable_salsa" != xno); then
138 159
      AC_MSG_NOTICE([Salsa plugin enabled])
139 160
  else 
140 161
      AC_MSG_NOTICE([Salsa plugin disabled])
141 162
  fi
142

  
163
AC_MSG_NOTICE(****** Regression Tests  ******)
164
if (test "x$valid_test_path" = xfalse); then
165
  AC_MSG_NOTICE(no valid tests path provided ($tests_path))
166
else
167
AC_MSG_NOTICE(tests path: $tests_path)
168
fi
143 169
AC_MSG_NOTICE(******** Configuration ********)
144 170
AC_MSG_NOTICE(Execute "make; make install" now)

Also available in: Unified diff