From dfbd18466ab39e09be8939135d1b74e3f065e1af Mon Sep 17 00:00:00 2001 From: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE> Date: Fri, 28 Nov 2003 23:00:48 +0000 Subject: [PATCH] Check for tar and gzip and copy DEMO/-directory in case of a VPATH build. --- configure.ac | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f7c646f..cb841ec 100644 --- a/configure.ac +++ b/configure.ac @@ -36,6 +36,8 @@ AC_PREFIX_DEFAULT([`pwd`]) # Checks for programs. AC_PROG_INSTALL AC_PROG_LN_S +AC_CHECK_PROGS([GZIP],[gzip]) +AC_CHECK_PROGS([TAR],[gtar tar]) # Compiler characteristics dnl @@ -85,7 +87,7 @@ dnl set default debugging flags, but allow for user-override dnl if test -z "${ALBERTA_DEBUG_CFLAGS}"; then if test "$GCC" = yes; then - ALBERTA_DEBUG_CFLAGS="-ggdb -fno-inline -fno-builtin" + ALBERTA_DEBUG_CFLAGS="-O0 -ggdb -fno-inline -fno-builtin" else ALBERTA_DEBUG_CFLAGS="-g" fi @@ -247,7 +249,7 @@ dnl NOTA BENE: using NEIGH_IN_EL=1 is probably buggy.], 0) # Debugging # SIMPLE_ENABLE_FLAG([debug], [disable building of ALBERTA libraries with debugging information.], 1) - +- # building of parametric versions is disabled by default, but can be # enabled using --enable-DIMDIMOFWORLD-dimension switches (the macros # below do _not_ enable the builds, but simply implement @@ -263,6 +265,13 @@ ALBERTA_DIMENSION_ENABLE(1,2) ALBERTA_DIMENSION_ENABLE(1,3) ALBERTA_DIMENSION_ENABLE(2,3) +AC_CONFIG_COMMANDS_POST([ +if ! test "$srcdir" = \. ; then + AC_MSG_RESULT([Copying $srcdir/DEMO to current directory]) + ( cd $srcdir && tar cf - DEMO ) | tar xf - + rm -rf `find DEMO -name CVS` +fi]) + # # flush everything to disk # -- GitLab