summaryrefslogtreecommitdiff
path: root/BUILD/choose_configure.sh
blob: df1fdf0a55b8115a6584cf355b59bf51aa15815e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Choose whether to use autoconf created configure
# of perl script that calls cmake.

# This is a temporary hack to build 5.5.3-m3:
# The "cmake" way still shows issues in our release build environment.
# Block it temporarily, but in a way that can easily be undone.
HAVE_CMAKE=no

# Ensure cmake and perl are there
cmake -P cmake/check_minimal_version.cmake >/dev/null 2>&1 || HAVE_CMAKE=no
perl --version >/dev/null 2>&1 || HAVE_CMAKE=no
if test "$HAVE_CMAKE" = "no"
then
  sh ./configure.am "$@"
else
  perl ./cmake/configure.pl "$@"
fi