diff options
Diffstat (limited to 'BUILD/choose_configure.sh')
-rw-r--r-- | BUILD/choose_configure.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/BUILD/choose_configure.sh b/BUILD/choose_configure.sh new file mode 100644 index 00000000000..71243ea09b6 --- /dev/null +++ b/BUILD/choose_configure.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Choose whether to use autoconf created configure +# of perl script that calls cmake. + +# 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 + |