]> www.ginac.de Git - ginac.git/commitdiff
Patch from Alexei for enabling compilation on MinGW.
authorChris Dams <Chris.Dams@mi.infn.it>
Mon, 31 Jul 2006 16:45:10 +0000 (16:45 +0000)
committerChris Dams <Chris.Dams@mi.infn.it>
Mon, 31 Jul 2006 16:45:10 +0000 (16:45 +0000)
acinclude.m4
check/Makefile.am
check/run_checks
check/run_exams
check/run_times

index 0061968fd13df10dfdbe135aa78ed42482ec9e8d..45ea8dae4661662cbf5709a4b82a96b881c3223d 100644 (file)
@@ -43,6 +43,10 @@ dnl When both libtermcap and libncurses exist, we prefer the latter, because
 dnl libtermcap is being phased out.
 AC_DEFUN([GINAC_TERMCAP],
 [LIBTERMCAP=
 dnl libtermcap is being phased out.
 AC_DEFUN([GINAC_TERMCAP],
 [LIBTERMCAP=
+case $host_os in
+*mingw32*)
+ ;; dnl no termcap libraries are necessary (need hacked libreadline)
+*)
 AC_CHECK_FUNCS(tgetent)
 if test "x$ac_cv_func_tgetent" = "xyes"; then
     :
 AC_CHECK_FUNCS(tgetent)
 if test "x$ac_cv_func_tgetent" = "xyes"; then
     :
@@ -52,6 +56,8 @@ else
         AC_CHECK_LIB(termcap, tgetent, LIBTERMCAP="-ltermcap")
     fi
 fi
         AC_CHECK_LIB(termcap, tgetent, LIBTERMCAP="-ltermcap")
     fi
 fi
+;;
+esac
 AC_SUBST(LIBTERMCAP)
 ])
 
 AC_SUBST(LIBTERMCAP)
 ])
 
index 48e7a999e2a20b3bc79fcc04d5fe28a4a9495721..b7c9d0fbf0972e3010c13771828f88c6530171d9 100644 (file)
@@ -2,6 +2,7 @@
 
 TESTS = run_exams run_checks run_times
 check_PROGRAMS = exams checks times
 
 TESTS = run_exams run_checks run_times
 check_PROGRAMS = exams checks times
+TESTS_ENVIRONMENT = EXEEXT=$(EXEEXT) srcdir=$(srcdir)
 
 checks_SOURCES =  check_numeric.cpp check_inifcns.cpp check_matrices.cpp \
   check_lsolve.cpp genex.cpp checks.cpp checks.h
 
 checks_SOURCES =  check_numeric.cpp check_inifcns.cpp check_matrices.cpp \
   check_lsolve.cpp genex.cpp checks.cpp checks.h
index 6304d18f5b66b09086d9a690a36071bdd9058e9e..93b77065d1b0ca0acbe93fa685c12d1cf6051fc9 100755 (executable)
@@ -1,4 +1,4 @@
 #! /bin/sh
 echo "GiNaC will now run through some rather costly random consistency checks:"
 #! /bin/sh
 echo "GiNaC will now run through some rather costly random consistency checks:"
-./checks 2>checks.out
+./checks${EXEEXT} 2>checks.out
 cmp ${srcdir}/checks.ref checks.out
 cmp ${srcdir}/checks.ref checks.out
index 8c8efa59408cb3c109cb78c0f5abbdc9e5a5ebea..1e7ba46325edb0fb2a661aa5b0206b63ca7ceb28 100755 (executable)
@@ -1,4 +1,4 @@
 #! /bin/sh
 echo "GiNaC will now take an exam with specific input (like a pupils' exam):"
 #! /bin/sh
 echo "GiNaC will now take an exam with specific input (like a pupils' exam):"
-./exams 2>exams.out
+./exams${EXEEXT} 2>exams.out
 cmp ${srcdir}/exams.ref exams.out
 cmp ${srcdir}/exams.ref exams.out
index 3687f1ef59dfb7fe0ba142be3acb24875475d606..eb2380bd7aea8dafb26a40a5aac854039a7b8f56 100755 (executable)
@@ -1,4 +1,4 @@
 #! /bin/sh
 echo "GiNaC will now run through some basic timings:"
 #! /bin/sh
 echo "GiNaC will now run through some basic timings:"
-./times 2>times.out
+./times${EXEEXT} 2>times.out
 cmp ${srcdir}/times.ref times.out
 cmp ${srcdir}/times.ref times.out