From 2ba15491411212c68afa0cb90df0e8924af4e5bf Mon Sep 17 00:00:00 2001
From: Rene Brun <Rene.Brun@cern.ch>
Date: Fri, 17 Nov 2006 20:36:25 +0000
Subject: [PATCH] Add gdml as an optional package

git-svn-id: http://root.cern.ch/svn/root/trunk@16816 27541ba8-7e3a-0410-8455-c3a389f83636
---
 configure | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/configure b/configure
index e7e71e5e03b..8c51d1ce507 100755
--- a/configure
+++ b/configure
@@ -41,6 +41,7 @@ options="                    \
    enable_exceptions         \
    enable_explicitlink       \
    enable_fftw3              \
+   enable_gdml               \
    enable_gfal               \
    enable_globus             \
    enable_krb5               \
@@ -89,6 +90,7 @@ for c in $options ; do eval ${c}="yes" ; done
 for c in $options ; do eval ${c}_explicit="no" ; done
 
 enable_afs=no
+enable_gdml=no
 enable_explicitlink=no
 enable_pythia=no
 enable_qt=no
@@ -836,6 +838,7 @@ enable/disable options, prefix with either --enable- or --disable-
   exceptions         Turn on compiler exception handling capability
   explicitlink       Explicitly link with all dependent libraries
   fftw3              Fast Fourier Transform support, requires libfftw3
+  gdml               GDML writer and reader
   gfal               GFAL support, requires libgfal
   globus             Globus authentication support, requires Globus toolkit
   krb5               Kerberos5 support, requires Kerberos libs
@@ -3715,6 +3718,19 @@ else
     result "no"
 fi
 
+######################################################################
+#
+### echo %%% GDML Library - Contributed library
+#
+message "Checking whether to build libGdml"
+if test "x$enable_gdml" = "xyes" || test ! "x$GDML" = "x"; then
+    enable_gdml="yes"
+    result "yes"
+else
+    enable_gdml=""
+    result "no"
+fi
+
 ######################################################################
 #
 ### echo %%% Table Library - Contributed library
@@ -4140,6 +4156,7 @@ sed -e "s|@aclocaldir@|$aclocaldir|"            \
     -e "s|@buildroofit@|$enable_roofit|"        \
     -e "s|@buildminuit2@|$enable_minuit2|"      \
     -e "s|@buildunuran@|$enable_unuran|"        \
+    -e "s|@buildgdml@|$enable_gdml|"            \
     -e "s|@buildmonalisa@|$enable_monalisa|"    \
     -e "s|@enable_pch@|$enable_pch|"            \
     -e "s|@buildtable@|$enable_table|"          \
-- 
GitLab