From 15b4be1c9c8abff091a9c6048b3bb5bea256dce9 Mon Sep 17 00:00:00 2001 From: kc8apf Date: Tue, 20 Jan 2009 04:03:31 +0000 Subject: Fixes for handling release versions git-svn-id: svn://svn.berlios.de/openocd/trunk@1347 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- configure.in | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 79e546e8..dd2c70b7 100644 --- a/configure.in +++ b/configure.in @@ -27,6 +27,16 @@ build_bitq=no is_cygwin=no is_mingw=no is_win32=no +build_release=yes + +AC_ARG_ENABLE(release, + AS_HELP_STRING([--enable-release], [Enable Release Build, default no]), + [build_release=$enableval], [build_release=no]) + +if test $build_release = no; then + # check we can find guess-rev.sh + AC_CHECK_FILE("guess-rev.sh", build_release=no, build_release=yes) +fi # We are not *ALWAYS* being installed in the standard place. # We may be installed in a "tool-build" specific location. @@ -627,6 +637,7 @@ fi AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(openocd, 1.0) +AM_CONDITIONAL(RELEASE, test $build_release = yes) AM_CONDITIONAL(PARPORT, test $build_parport = yes) AM_CONDITIONAL(DUMMY, test $build_dummy = yes) AM_CONDITIONAL(GIVEIO, test $parport_use_giveio = yes) -- cgit v1.2.3