Redo of r24076. Modify configure
(instead of libtool.m4
) within
`autogen.pl` to properly handle all Sun Fortran version strings. This commit was SVN r24080. The following SVN revision numbers were found above: r24076 --> open-mpi/ompi@ca0b0efada
Этот коммит содержится в:
родитель
b2d457f049
Коммит
1d5785153f
34
autogen.pl
34
autogen.pl
@ -1111,17 +1111,41 @@ $c =~ s/pgf77\* \| pgf90\* \| pgf95\*\)/pgf77* | pgf90* | pgf95* | pgfortran*)/g
|
||||
print("=== Patching configure for Libtool PGI version number regexps\n");
|
||||
$c =~ s/\*pgCC\\ \[1-5\]\* \| \*pgcpp\\ \[1-5\]\*/*pgCC\\ [1-5]\.* | *pgcpp\\ [1-5]\.*/g;
|
||||
|
||||
# Similar issue as above -- fix the case statements that handle the Sun
|
||||
# Fortran version strings.
|
||||
#
|
||||
# Note: we have to use octal escapes to match '*Sun\ F*) and the
|
||||
# four succeeding lines in the bourne shell switch statement.
|
||||
# \ = 134
|
||||
# ) = 051
|
||||
# * = 052
|
||||
#
|
||||
# Below is essentially an upstream patch for Libtool which we want
|
||||
# made available to Open MPI users running older versions of Libtool
|
||||
my $bad_pattern = '\052Sun\134 F.\051\n.*\n.*\n.*\n.*\n.*\n';
|
||||
my $good_pattern = '
|
||||
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
|
||||
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
||||
lt_prog_compiler_pic=\'-KPIC\'
|
||||
lt_prog_compiler_static=\'-Bstatic\'
|
||||
lt_prog_compiler_wl=\'\'
|
||||
;;
|
||||
*Sun\ F* | *Sun*Fortran*)
|
||||
lt_prog_compiler_pic=\'-KPIC\'
|
||||
lt_prog_compiler_static=\'-Bstatic\'
|
||||
lt_prog_compiler_wl=\'-Qoption ld \'
|
||||
;;
|
||||
';
|
||||
|
||||
print("Patching configure for Sun Studio Fortran version strings\n");
|
||||
$c =~ s/$bad_pattern/$good_pattern/g;
|
||||
|
||||
open(OUT, ">configure.patched") || die "Can't open configure.patched";
|
||||
print OUT $c;
|
||||
close(OUT);
|
||||
# Use cp so that we preserve permissions on configure
|
||||
safe_system("cp configure.patched configure");
|
||||
unlink("configure.patched");
|
||||
|
||||
# Patch libtool.m4 so that the correct linker options are used in
|
||||
# all versions of Sun Studio Fortran
|
||||
#verbose "=== Patching Sun Studio Fortran version strings in libtool.m4\n";
|
||||
#system("patch -N -p0 < config/libtool-sun-fortran.diff >/dev/null 2>&1");
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
verbose "
|
||||
|
@ -1,42 +0,0 @@
|
||||
--- config/libtool.m4
|
||||
+++ config/libtool.m4
|
||||
@@ -4024,12 +4024,17 @@
|
||||
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
;;
|
||||
- *Sun\ F*)
|
||||
+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
|
||||
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
||||
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
||||
;;
|
||||
+ *Sun\ F* | *Sun*Fortran*)
|
||||
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
||||
+ ;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
--- opal/libltdl/m4/libtool.m4
|
||||
+++ opal/libltdl/m4/libtool.m4
|
||||
@@ -4024,12 +4024,17 @@
|
||||
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||
;;
|
||||
- *Sun\ F*)
|
||||
+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
|
||||
# Sun Fortran 8.3 passes all unrecognized flags to the linker
|
||||
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
|
||||
;;
|
||||
+ *Sun\ F* | *Sun*Fortran*)
|
||||
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
|
||||
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
|
||||
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
|
||||
+ ;;
|
||||
esac
|
||||
;;
|
||||
esac
|
Загрузка…
Ссылка в новой задаче
Block a user