diff options
author | Markus Dittrich <markusle@gentoo.org> | 2006-09-17 01:50:25 +0000 |
---|---|---|
committer | Markus Dittrich <markusle@gentoo.org> | 2006-09-17 01:50:25 +0000 |
commit | c241c121440e224f7fb9fcddef02c656a26b74df (patch) | |
tree | 65b9a3b38d94bddf6c724602ff34b7d5af9c61f7 /sci-mathematics | |
parent | Keywording ~amd64 (diff) | |
download | historical-c241c121440e224f7fb9fcddef02c656a26b74df.tar.gz historical-c241c121440e224f7fb9fcddef02c656a26b74df.tar.bz2 historical-c241c121440e224f7fb9fcddef02c656a26b74df.zip |
Added patch to fix configure problems on x86_64 using gfortran. See bug #135227.
Package-Manager: portage-2.1.1
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/scilab/ChangeLog | 7 | ||||
-rw-r--r-- | sci-mathematics/scilab/Manifest | 30 | ||||
-rw-r--r-- | sci-mathematics/scilab/files/scilab-4.0-configure-gfortran.patch | 413 | ||||
-rw-r--r-- | sci-mathematics/scilab/scilab-4.0.ebuild | 4 |
4 files changed, 434 insertions, 20 deletions
diff --git a/sci-mathematics/scilab/ChangeLog b/sci-mathematics/scilab/ChangeLog index b6ae451b7b8f..60c0ffe6b7e2 100644 --- a/sci-mathematics/scilab/ChangeLog +++ b/sci-mathematics/scilab/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-mathematics/scilab # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.24 2006/07/04 15:17:32 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.25 2006/09/17 01:50:25 markusle Exp $ + + 16 Sep 2006; Markus Dittrich <markusle@gentoo.org> + +files/scilab-4.0-configure-gfortran.patch, scilab-4.0.ebuild: + Added patch to fix configure problems on x86_64 using gfortran. + See bug #135227. 04 Jul 2006; Markus Dittrich <markusle@gentoo.org> +files/scilab-4.0-gtk-fix.patch, scilab-4.0.ebuild: diff --git a/sci-mathematics/scilab/Manifest b/sci-mathematics/scilab/Manifest index 213424a2cb57..2daed120f38d 100644 --- a/sci-mathematics/scilab/Manifest +++ b/sci-mathematics/scilab/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX gzvt2-add-gtk2-flags.patch 702 RMD160 b58c51ae98c3ff7d0cb4240aed7b5a11634e26a3 SHA1 30371d235bcc322cfe39031039ec6dbb2d2758d1 SHA256 346dc6b4c462c77a9c4416bb6e7b91ee201787bf7d9ed5adaccb1204d8175b1d MD5 c67f39d8d53d4f04bbfd44cf6ab4f840 files/gzvt2-add-gtk2-flags.patch 702 RMD160 b58c51ae98c3ff7d0cb4240aed7b5a11634e26a3 files/gzvt2-add-gtk2-flags.patch 702 @@ -9,6 +6,10 @@ AUX scilab-2.7-configure.patch 1702 RMD160 383c8f869eef79214bff028ddef71de53c711 MD5 814dd511c89a14982a5d6c60b09c1709 files/scilab-2.7-configure.patch 1702 RMD160 383c8f869eef79214bff028ddef71de53c71142d files/scilab-2.7-configure.patch 1702 SHA256 5182d4c4177dd088289b828d2a2f5da4b1118937b0a50949c92988fa34bdb4eb files/scilab-2.7-configure.patch 1702 +AUX scilab-4.0-configure-gfortran.patch 14731 RMD160 be5367c2dc91d582fed58ad17733770474690cf3 SHA1 3208c8f48ade5a4934f72cb613400a177abebeb8 SHA256 2e2ef24db30ad6c69fd9fd0c6690841ae9286256e2de71784d48f09d84e0222a +MD5 3d324154234ef4e63b1701f11cdca3bf files/scilab-4.0-configure-gfortran.patch 14731 +RMD160 be5367c2dc91d582fed58ad17733770474690cf3 files/scilab-4.0-configure-gfortran.patch 14731 +SHA256 2e2ef24db30ad6c69fd9fd0c6690841ae9286256e2de71784d48f09d84e0222a files/scilab-4.0-configure-gfortran.patch 14731 AUX scilab-4.0-gtk-fix.patch 929 RMD160 d0b3c0c754431bdd33d41b632eee1af1ab3c18e3 SHA1 7a11bbaf84c784ad7ae86b5d56f7ccba6c512a36 SHA256 25ef3f5dacfb91adb3d239855d7f32655a554b21608a4b485bf2bf3937ae6b85 MD5 1dd4d3fc3ec5b288b97af902e80ca108 files/scilab-4.0-gtk-fix.patch 929 RMD160 d0b3c0c754431bdd33d41b632eee1af1ab3c18e3 files/scilab-4.0-gtk-fix.patch 929 @@ -33,14 +34,14 @@ EBUILD scilab-3.1.1-r3.ebuild 4876 RMD160 61a58eae2dff32abab4e07a5f0049d7234bc8e MD5 88fe35577e6d544b620686c4cca653e9 scilab-3.1.1-r3.ebuild 4876 RMD160 61a58eae2dff32abab4e07a5f0049d7234bc8e76 scilab-3.1.1-r3.ebuild 4876 SHA256 7fdc8b7a28ea71b962d503ab8125241ed7e3ceb531cab4b1d3329510e911c03e scilab-3.1.1-r3.ebuild 4876 -EBUILD scilab-4.0.ebuild 3745 RMD160 aaf31d8307b1d5dfd9335368ac7e441f5550510e SHA1 ebba5a6bf35373e016799b500120fc3729fedcaa SHA256 e89e784450e5f0bbde6b0b6fd780bb484ffbc044103ed89d1fa30010f60fb7b7 -MD5 72eecf0c7e63e87f425917a551c2b941 scilab-4.0.ebuild 3745 -RMD160 aaf31d8307b1d5dfd9335368ac7e441f5550510e scilab-4.0.ebuild 3745 -SHA256 e89e784450e5f0bbde6b0b6fd780bb484ffbc044103ed89d1fa30010f60fb7b7 scilab-4.0.ebuild 3745 -MISC ChangeLog 7650 RMD160 ad5be2346df2a5d7a1a52a58986c1db114dd3a85 SHA1 3cfe7a5e39641804c71a5f9f022f6bc0ce14a1dc SHA256 2e9de3123c412b23eaae777b8825df09f5da301fd3041aab69869353dff9bd34 -MD5 7139122737d6758c2eb99b94fd148733 ChangeLog 7650 -RMD160 ad5be2346df2a5d7a1a52a58986c1db114dd3a85 ChangeLog 7650 -SHA256 2e9de3123c412b23eaae777b8825df09f5da301fd3041aab69869353dff9bd34 ChangeLog 7650 +EBUILD scilab-4.0.ebuild 3850 RMD160 4d9ec68deb6661139f7bef8e62403f280b275a58 SHA1 45528cc6768948788628b7337ca17257a20accd8 SHA256 32524e525b18e4f831b5d8edc4caae827b15acec1c2ba7f21a41370f505a4412 +MD5 e824bb556527e47421730117463e5b94 scilab-4.0.ebuild 3850 +RMD160 4d9ec68deb6661139f7bef8e62403f280b275a58 scilab-4.0.ebuild 3850 +SHA256 32524e525b18e4f831b5d8edc4caae827b15acec1c2ba7f21a41370f505a4412 scilab-4.0.ebuild 3850 +MISC ChangeLog 7854 RMD160 1860fef9a1d61dffbb691bdf1595e8a1cedb3853 SHA1 af42aeb37d8d5dfec2e35f846e36e9911a66e4a1 SHA256 0c7987872d744564af9ebccc72c652acb2158eb9af66610ec262f92ab8d1e7cd +MD5 c543ecc35076a2af3e8a8e9524bd167b ChangeLog 7854 +RMD160 1860fef9a1d61dffbb691bdf1595e8a1cedb3853 ChangeLog 7854 +SHA256 0c7987872d744564af9ebccc72c652acb2158eb9af66610ec262f92ab8d1e7cd ChangeLog 7854 MISC metadata.xml 168 RMD160 d98790cf055dc0f820c63d65f485b9dcfa8950f4 SHA1 95c9e4f7368f82053d631bbcd469612c92ca13cb SHA256 c0cc8d6ab9385750af753ddc504299ed90a70b5c4c655f6c77d865917a8829c9 MD5 30bc69a424d7634aae9c1e4203365d3d metadata.xml 168 RMD160 d98790cf055dc0f820c63d65f485b9dcfa8950f4 metadata.xml 168 @@ -54,10 +55,3 @@ SHA256 ed24da059537820af8919172ca3fb5f378039f30a02fdc870fa36967cfdd8ca4 files/di MD5 942cb58288349d75fab903ad93a89e78 files/digest-scilab-4.0 250 RMD160 f4ee6ebd8218d59dd40f0a904b4dcfd5170a54a4 files/digest-scilab-4.0 250 SHA256 f0a3368ccf9db2d8654c3f0b5ec04a19b9ecabba49457d9f604f18293525b708 files/digest-scilab-4.0 250 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.4 (GNU/Linux) - -iD8DBQFEzkUbwUpWvClEHQoRApgAAJ4rR/kv3xHL7S73lS/MGLdncLdidACfZT6B -nZXgO+PIfCbUlCvmu/VZ0u0= -=vZK6 ------END PGP SIGNATURE----- diff --git a/sci-mathematics/scilab/files/scilab-4.0-configure-gfortran.patch b/sci-mathematics/scilab/files/scilab-4.0-configure-gfortran.patch new file mode 100644 index 000000000000..d5720cc7ad09 --- /dev/null +++ b/sci-mathematics/scilab/files/scilab-4.0-configure-gfortran.patch @@ -0,0 +1,413 @@ +--- scilab-4.0/configure 2006-02-01 15:47:53.000000000 -0500 ++++ scilab-4.0-new/configure 2006-09-16 11:13:29.000000000 -0400 +@@ -4878,7 +4878,7 @@ + ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_f77_compiler_gnu + if test -n "$ac_tool_prefix"; then +- for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 ++ for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 gfortran + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. + set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +@@ -4920,7 +4920,7 @@ + fi + if test -z "$F77"; then + ac_ct_F77=$F77 +- for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 ++ for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 gfortran + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 +@@ -20127,10 +20127,11 @@ + DLD_SUBDIR=dld + MAKEFILE_TARGET=Makefile.linux + ;; +-# Linux gnu: x86_64 distributions added by cdh 2004-09-29 +- x86_64-*-linux-gnu) +- LIEEELIB= +- echo "$as_me:$LINENO: checking for main in -lieee" >&5 ++ ++# Linux gnu: x86_64 distributions added by cdh 2004-09-29 ( modified 2006-06-01 to find gfortran if needed ) ++x86_64-*-linux-gnu) ++ LIEEELIB= ++ echo "$as_me:$LINENO: checking for main in -lieee" >&5 + echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6 + if test "${ac_cv_lib_ieee_main+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +@@ -20138,7 +20139,6 @@ + ac_check_lib_save_LIBS=$LIBS + LIBS="-lieee $LIBS" + cat >conftest.$ac_ext <<_ACEOF +-#line $LINENO "configure" + /* confdefs.h. */ + _ACEOF + cat confdefs.h >>conftest.$ac_ext +@@ -20156,11 +20156,21 @@ + _ACEOF + rm -f conftest.$ac_objext conftest$ac_exeext + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 +- (eval $ac_link) 2>&5 ++ (eval $ac_link) 2>conftest.er1 + ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && +- { ac_try='test -s conftest$ac_exeext' ++ { ac_try='test -z "$ac_c_werror_flag" ++ || test ! -s conftest.err' ++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 ++ (eval $ac_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:$LINENO: \$? = $ac_status" >&5 ++ (exit $ac_status); }; } && ++ { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? +@@ -20173,7 +20183,8 @@ + + ac_cv_lib_ieee_main=no + fi +-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext ++rm -f conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi + echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 +@@ -20182,40 +20193,67 @@ + LIEEELIB=-lieee + fi + +- MALLOC=malloc.o +- if test "$with_intelcompilers" = yes; then +- GCC=no +- CC=$ICC +- FC=$IFC +- CC_OPTIONS='-O -DNDEBUG -Dlinux -DNARROWPROTO -mp' +- CC_PICFLAGS="-fPIC" +-# -cm remove comments displays, -w90 -w95 remove warnings abort f90 f95 non standard +- FC_OPTIONS="-O -cm -w90 -w95 -mp " +- FC_OPTIONS_O0="-cm -w90 -w95 -mp " +- if test "$enable_debug" = yes; then +- CC_OPTIONS='-g -Wall -Dlinux -DNARROWPROTO -mp ' +- FC_OPTIONS="-g -cm -w90 -w95 -mp " +- fi +- CC_LDFLAGS="$LIEEELIB -Wl,-relax" +- FC_LDFLAGS="$LIEEELIB -ldl -lPEPCF90 -Wl,-relax " +- LD=xild +- LD_LDFLAGS="$LIEEELIB -lPEPCF90 -Wl,-relax " +- else +- GCC=yes +- CC=gcc +- # CC_PLAT_OPTIONS is optional, and is used to add CPU specific code generation tuning for Athlon64 presumably Opteron could benefit too but these are not optimized for the Opteron +- CC_PLAT_OPTIONS='-march=athlon64 -mfpmath=sse -msse2 -m3dnow -m64 ' +- CC_OPTIONS="-O2 -DNDEBUG -Dlinux -DNARROWPROTO $CC_PLAT_OPTIONS" +- CC_LDFLAGS=$LIEEELIB +- CC_PICFLAGS=-fPIC +- # find Fortran compiler +- # g77 already asked and found: good +- if test "$WITH_G77" = yes; then +- FC=g77 +- FC_PICFLAGS=-fPIC +- # option with-f2c +- elif test "$with_f2c" = yes; then +- # Extract the first word of "f2c", so it can be a program name with args. ++ MALLOC=malloc.o ++ if test "$with_intelcompilers" = yes; then ++ GCC=no ++ CC=$ICC ++ FC=$IFC ++ CC_OPTIONS='-O -DNDEBUG -Dlinux -DNARROWPROTO -mp' ++ CC_PICFLAGS="-fPIC" ++ # -cm remove comments displays, -w90 -w95 remove warnings abort f90 f95 non standard ++ FC_OPTIONS="-O -cm -w90 -w95 -mp " ++ FC_OPTIONS_O0="-cm -w90 -w95 -mp " ++ if test "$enable_debug" = yes; then ++ CC_OPTIONS='-g -Wall -Dlinux -DNARROWPROTO -mp ' ++ FC_OPTIONS="-g -cm -w90 -w95 -mp " ++ fi ++ CC_LDFLAGS="$LIEEELIB -Wl,-relax" ++ FC_LDFLAGS="$LIEEELIB -ldl -lPEPCF90 -Wl,-relax " ++ LD=xild ++ LD_LDFLAGS="$LIEEELIB -lPEPCF90 -Wl,-relax " ++ else ++ GCC=yes ++ CC=gcc ++ # CC_PLAT_OPTIONS is optional, and is used to add CPU specific code generation tuning for Athlon64 presumably Opteron could benefit too but these are not optimized for the Opteron ++ CC_PLAT_OPTIONS='-march=athlon64 -mfpmath=sse -msse2 -m3dnow -m64' ++ ++ CC_PICFLAGS='-fPIC' ++ FC_PICFLAGS='-fPIC' ++ ++ CC_OPTIONS="-O2 -DNDEBUG -Dlinux -DNARROWPROTO $CC_PLAT_OPTIONS $CC_PICFLAGS " ++ CC_LDFLAGS=$LIEEELIB ++ ++ if test "$enable_debug" = yes; then ++ CC_OPTIONS="-g -Wall -Dlinux -DNARROWPROTO $CC_PLAT_OPTIONS $CC_PICFLAGS " ++ fi ++ # find Fortran compiler ++ # g77 already asked and found: good ++ if test "$WITH_G77" = yes; then ++ FC=g77 ++ FC_PICFLAGS=-fPIC ++ if test "$enable_debug" = yes; then ++ FC_OPTIONS="-g $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS" ++ else ++ FC_OPTIONS="-O $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS" ++ fi ++ elif test "$WITH_GFORTRAN" = yes;then ++ FC=gfortran ++ if test "$enable_debug" = yes; then ++ FC_OPTIONS="-g -ff2c $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="-ff2c $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ else ++ FC_OPTIONS="-O -ff2c $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="-ff2c $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ fi ++ cat >>confdefs.h <<\_ACEOF ++#define G95_FORTRAN 1 ++_ACEOF ++ ++ # option with-f2c ++ elif test "$with_f2c" = yes; then ++ # Extract the first word of "f2c", so it can be a program name with args. + set dummy f2c; ac_word=$2 + echo "$as_me:$LINENO: checking for $ac_word" >&5 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +@@ -20251,16 +20289,23 @@ + echo "${ECHO_T}no" >&6 + fi + +- if test "$F2C" = no; then +- { { echo "$as_me:$LINENO: error: Unable to configure: f2c compiler not found" >&5 ++ if test "$F2C" = no; then ++ { { echo "$as_me:$LINENO: error: Unable to configure: f2c compiler not found" >&5 + echo "$as_me: error: Unable to configure: f2c compiler not found" >&2;} + { (exit 1); exit 1; }; } +- fi +- # script shell f77 have bugs, get ours +- FC='${SCIDIR}/bin/f77-linux' +- else +- # first find g77 +- # Extract the first word of "g77", so it can be a program name with args. ++ fi ++ # script shell f77 have bugs, get ours ++ FC='${SCIDIR}/bin/f77-linux' ++ if test "$enable_debug" = yes; then ++ FC_OPTIONS="-g $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS" ++ else ++ FC_OPTIONS="-O $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS" ++ fi ++ else ++ # first find g77 ++ # Extract the first word of "g77", so it can be a program name with args. + set dummy g77; ac_word=$2 + echo "$as_me:$LINENO: checking for $ac_word" >&5 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +@@ -20296,12 +20341,121 @@ + echo "${ECHO_T}no" >&6 + fi + +- if test "$WITH_G77" = yes; then +- FC=g77 +- FC_PICFLAGS=-fPIC +- else +- # otherwise find f2c +- # Extract the first word of "f2c", so it can be a program name with args. ++ if test "$WITH_G77" = yes; then ++ FC=g77 ++ FC_PICFLAGS=-fPIC ++ if test "$enable_debug" = yes; then ++ FC_OPTIONS="-g $CC_PLAT_OPTIONS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS" ++ else ++ FC_OPTIONS="-O $CC_PLAT_OPTIONS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS" ++ fi ++ else ++ # Extract the first word of "gfortran", so it can be a program name with args. ++set dummy gfortran; ac_word=$2 ++echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++if test "${ac_cv_prog_WITH_GFORTRAN+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$WITH_GFORTRAN"; then ++ ac_cv_prog_WITH_GFORTRAN="$WITH_GFORTRAN" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ ac_cv_prog_WITH_GFORTRAN="yes" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++ test -z "$ac_cv_prog_WITH_GFORTRAN" && ac_cv_prog_WITH_GFORTRAN="no" ++fi ++fi ++WITH_GFORTRAN=$ac_cv_prog_WITH_GFORTRAN ++if test -n "$WITH_GFORTRAN"; then ++ echo "$as_me:$LINENO: result: $WITH_GFORTRAN" >&5 ++echo "${ECHO_T}$WITH_GFORTRAN" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ if test "$WITH_GFORTRAN" = yes; then ++ FC=gfortran ++ FC_PICFLAGS=-fPIC ++ cat >>confdefs.h <<\_ACEOF ++#define G95_FORTRAN 1 ++_ACEOF ++ ++ if test "$enable_debug" = yes; then ++ FC_OPTIONS="-g -ff2c $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="-ff2c $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ else ++ FC_OPTIONS="-O -ff2c $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="-ff2c $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ fi ++ else ++ # Extract the first word of "f95", so it can be a program name with args. ++set dummy f95; ac_word=$2 ++echo "$as_me:$LINENO: checking for $ac_word" >&5 ++echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 ++if test "${ac_cv_prog_WITH_F95+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ if test -n "$WITH_F95"; then ++ ac_cv_prog_WITH_F95="$WITH_F95" # Let the user override the test. ++else ++as_save_IFS=$IFS; IFS=$PATH_SEPARATOR ++for as_dir in $PATH ++do ++ IFS=$as_save_IFS ++ test -z "$as_dir" && as_dir=. ++ for ac_exec_ext in '' $ac_executable_extensions; do ++ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ++ ac_cv_prog_WITH_F95="yes" ++ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 ++ break 2 ++ fi ++done ++done ++ ++ test -z "$ac_cv_prog_WITH_F95" && ac_cv_prog_WITH_F95="no" ++fi ++fi ++WITH_F95=$ac_cv_prog_WITH_F95 ++if test -n "$WITH_F95"; then ++ echo "$as_me:$LINENO: result: $WITH_F95" >&5 ++echo "${ECHO_T}$WITH_F95" >&6 ++else ++ echo "$as_me:$LINENO: result: no" >&5 ++echo "${ECHO_T}no" >&6 ++fi ++ ++ if test "$WITH_F95" = yes; then ++ FC=f95 ++ FC_PICFLAGS=-fPIC ++ cat >>confdefs.h <<\_ACEOF ++#define F95_FORTRAN 1 ++_ACEOF ++ ++ if test "$enable_debug" = yes; then ++ FC_OPTIONS="-g $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS" ++ else ++ FC_OPTIONS="-O $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS " ++ fi ++ else ++ # otherwise find f2c ++ # Extract the first word of "f2c", so it can be a program name with args. + set dummy f2c; ac_word=$2 + echo "$as_me:$LINENO: checking for $ac_word" >&5 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +@@ -20337,30 +20491,32 @@ + echo "${ECHO_T}no" >&6 + fi + +- if test "$F2C" = yes; then +- # script shell f77 have bugs, get ours +- FC='${SCIDIR}/bin/f77-linux' +- else +- { { echo "$as_me:$LINENO: error: Unable to configure: no Fortran compiler found" >&5 ++ if test "$F2C" = yes; then ++ # script shell f77 have bugs, get ours ++ FC='${SCIDIR}/bin/f77-linux' ++ if test "$enable_debug" = yes; then ++ FC_OPTIONS="-g $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS" ++ else ++ FC_OPTIONS="-O $CC_PLAT_OPTIONS $FC_PICFLAGS" ++ FC_OPTIONS_O0="$CC_PLAT_OPTIONS $FC_PICFLAGS" ++ fi ++ else ++ { { echo "$as_me:$LINENO: error: Unable to configure: no Fortran compiler found" >&5 + echo "$as_me: error: Unable to configure: no Fortran compiler found" >&2;} + { (exit 1); exit 1; }; } +- fi +- fi +- fi +- FC_OPTIONS="-O $CC_PLAT_OPTIONS" +- FC_OPTIONS_O0= +- FC_LDFLAGS="$LIEEELIB -ldl -rdynamic -Wl,-relax " +- LD=ld +- LD_LDFLAGS="$LIEEELIB -Wl,-relax " +- if test "$enable_debug" = yes; then +- # CC_PLAT_OPTIONS is optional, and is used to add CPU specific code generation tuning for Athlon64 presumably Opteron could benefit too but these are not optimized for the Opteron +- CC_PLAT_OPTIONS='-march=athlon64 -mfpmath=sse -msse2 -m3dnow -m64 ' +- CC_OPTIONS="-g -Wall -Dlinux -DNARROWPROTO $CC_PLAT_OPTIONS" +- FC_OPTIONS="-g $CC_PLAT_OPTIONS" +- fi +- fi +- MAKEFILE_TARGET=Makefile.linux +- ;; ++ fi ++ fi ++ fi ++ fi ++ fi ++ FC_LDFLAGS="$LIEEELIB -ldl -rdynamic -Wl,-relax " ++ LD=ld ++ LD_LDFLAGS="$LIEEELIB -Wl,-relax " ++ fi ++ MAKEFILE_TARGET=Makefile.linux ++ ;; ++ + # Linux ELF: all standard distributions + i*86-*-linux-gnu | *-pc-linux-gnu ) + LIEEELIB= +@@ -22909,7 +23065,7 @@ + ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' + ac_compiler_gnu=$ac_cv_f77_compiler_gnu + if test -n "$ac_tool_prefix"; then +- for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 ++ for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 gfortran + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. + set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +@@ -22951,7 +23107,7 @@ + fi + if test -z "$F77"; then + ac_ct_F77=$F77 +- for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 ++ for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 gfortran + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 diff --git a/sci-mathematics/scilab/scilab-4.0.ebuild b/sci-mathematics/scilab/scilab-4.0.ebuild index 54e2a30b6bba..8c121d5d8f88 100644 --- a/sci-mathematics/scilab/scilab-4.0.ebuild +++ b/sci-mathematics/scilab/scilab-4.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-4.0.ebuild,v 1.5 2006/07/04 15:17:32 markusle Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-4.0.ebuild,v 1.6 2006/09/17 01:50:25 markusle Exp $ inherit eutils fortran toolchain-funcs multilib autotools @@ -49,6 +49,7 @@ src_unpack() { epatch "${FILESDIR}"/${P}-makefile.patch epatch "${FILESDIR}"/${P}-gtk-fix.patch + epatch "${FILESDIR}"/${P}-configure-gfortran.patch # fix gfortran problems on ppc if [[ "${ARCH}" == "ppc" ]];then @@ -61,6 +62,7 @@ src_unpack() { -i Makefile.OBJ.in || die "Failed to fix Makefile.OBJ.in" sed -e "s:\$(PREFIX):\${D}/\$(PREFIX):g" \ + -e "s:\$(PREFIX)/lib:\$(PREFIX)/$(get_libdir):g" \ -i Makefile.in || die "Failed to fix Makefile.in" sed -e "s:@CC_OPTIONS@:${CFLAGS}:" \ |