* stat: initialize common block.
* Move debug_init.f90/stat_init.f90 to dbgini.f/staini.f.
In cases where one has 2 fortran compilers (F77+F90), the reference code
base and (missing) related common initialisations will be compiled
consistently by the same (F77) compiler. F90 will handle ICB (f2003-f2008)
that could not be compiled by F77.
Note: in F77, code starts at col 7, continuation line with & at col 6,
length line is limited, names must be smaller than 7 chars (no underscore).
* [BUG FIX] compile dbgini.f staini.f with AND without ICB.
Cosmetic bug ("better" way to get same thing - without this, sigma which
is used as an input, is implicitely converted from real to complex. Same
thing for the callee, but more "logical" for the caller).
* [CLEAN] ICB saves you from old-fashion-boring-cumbersome-fortran/C crap...
* Run old-fashion cubersome Fortan/C tests only if ICB=OFF.
Getting them to work with BOTH ICB=ON/OFF would be adding tricky-messy
to already cubersome-crappy black magic...
Note that icb_arpack_c test (ICB=ON) do the same than bug_1315_*
tests (ICB=OFF): icb_arpack_c was initially a copy of bug_1315_*.
In the end, you don't loose anything (same functional coverage).
* [CLEAN] always define ICB.
* [BUG FIX] Can't call AC_PROG_CXX conditionally.
https://lists.gnu.org/archive/html/bug-automake/2002-11/msg00020.html
* [BUG FIX] ICB: set default value.
* Check options are set as expected.
Note: before previous fix, options were NOT set correctly !...
Main problems found in the original version are:
I. C vs iso_c_binding:
1. Mismatch between float complex and float parameters in C prototypes and
icba*.f90 files
2. Mismatch between passing of some arguments by pointer vs by value
II. iso_c_binding vs Fortran:
1. Mismatch between real and complex parameters
2. Wrong intent for 'workev'
These problems lead to UB, which, in particular, resulted in test
crashes on i686 targets. This patch fixes them.
Without this line, pkg-config 0.29.2 refuses to parse the arpack.pc file:
# pkg-config --libs arpack
Variable 'includedir' not defined in '/usr/lib/pkgconfig/arpack.pc'