[SCM] CERNLIB is a suite of data analysis tools and libraries created for use in physics experiments, but also with applications to other fields such as the biological sciences branch, debian-patches/2006-dfsg3-0, updated. cda72ebfe00236b43ba813e81921af4f37b14b5c

Bastien ROUCARIÈS roucaries.bastien at gmail.com
Mon Mar 14 21:52:54 UTC 2011


The following commit has been merged in the debian-patches/2006-dfsg3-0 branch:
commit f52674e5bc3fbee2c6689a32cdaac8dadb66b8aa
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Thu Mar 10 17:33:44 2011 +0100

    Add weak intrac to minuit
    
    In order to be self contained minuit lack intrac. Suply intrac throught a weak alias

diff --git a/configure.ac b/configure.ac
index 5f1d484..4ce75cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,6 +8,20 @@ AC_PROG_FC
 
 LT_INIT
 
+# check compiler 
+#AX_SYS_WEAK_ALIAS
+#if test "$ax_cv_sys_weak_alias" -ne "attribute"; then
+#   AC_MSG_ERROR([Need __attribute__(weak)])
+#fi
+
+# check dependencies
+AC_MSG_CHECKING([whether cfortran/cfortran.h exist])
+AC_PREPROC_IFELSE(
+   [AC_LANG_PROGRAM([[#include <cfortran/cfortran.h>]],
+                    [[return;]])],
+   [AC_MSG_RESULT([OK])],
+   [AC_MSG_ERROR([Lack cfortran/cfortran.h>])])
+
 CERN_CFLAGS=""
 CERN_FFLAGS=""
 CERN_FCFLAGS=""
diff --git a/src/packlib/minuit/code/intrac.c b/src/packlib/minuit/code/intrac.c
new file mode 100644
index 0000000..3b68977
--- /dev/null
+++ b/src/packlib/minuit/code/intrac.c
@@ -0,0 +1,9 @@
+#include <unistd.h>
+#include <cfortran/cfortran.h>
+
+static int cintrac(void)
+{
+   return ((int) isatty(0));
+}
+__attribute__((weak)) FCALLSCFUN0(INT,cintrac,INTRAC,intrac) ;
+

-- 
CERNLIB is a suite of data analysis tools and libraries created for use in physics experiments, but also with applications to other fields such as the biological sciences



More information about the debian-science-commits mailing list