Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
get rid of -i option of sed
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Dec 28, 2019
1 parent 13a5434 commit ac32b13
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build/pkgs/gsl/spkg-configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ SAGE_SPKG_CONFIGURE([gsl], [
SAGE_SPKG_DEPCHECK([atlas openblas], [
PKG_CHECK_MODULES([GSL], [gsl >= $SAGE_GSL_MINVER], [
PKG_CHECK_VAR([GSLPCDIR], [gsl], [pcfiledir], [
AC_CONFIG_FILES([$SAGE_LOCAL/lib/pkgconfig/gsl.pc:$GSLPCDIR/gsl.pc])
AC_CONFIG_COMMANDS([GSLPCPROCESS], [
$SED -i'' -e 's/\${GSL_CBLAS_LIB}\ //' "$SAGE_LOCAL"/lib/pkgconfig/gsl.pc
$SED -i'' -e 's/GSL_CBLAS_LIB.*/Require: cblas/' "$SAGE_LOCAL"/lib/pkgconfig/gsl.pc
], [SED=$ac_cv_path_SED])
$SED -e 's/\${GSL_CBLAS_LIB}\ //' \
-e 's/GSL_CBLAS_LIB.*/Require: cblas/' $GSL_PC \
> "$SAGE_LOCAL"/lib/pkgconfig/gsl.pc
], [
SED=$ac_cv_path_SED
GSL_PC="$GSLPCDIR"/gsl.pc
])
], [
AC_MSG_WARN([Unable to locate the directory of gsl.pc. This should not happen!])
sage_spkg_install_gsl=yes
Expand Down

0 comments on commit ac32b13

Please sign in to comment.