Skip to content

Commit

Permalink
openvswitch.m4: Portability improvement
Browse files Browse the repository at this point in the history
${parameter/pattern/string} substituion is not portable.
Replace them with $SED equivalent.

Signed-off-by: YAMAMOTO Takashi <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
yamt committed Nov 26, 2015
1 parent 1e450da commit 43000bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m4/openvswitch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ AC_DEFUN([OVS_CHECK_WIN32],
fi
if test "$cl_cv_x64" = yes; then
PTHREAD_WIN32_DIR=$withval/lib/x64
PTHREAD_WIN32_DIR_DLL=/${withval/:/}/dll/x64
PTHREAD_WIN32_DIR_DLL=/$(echo ${withval} | ${SED} -e '/://')/dll/x64
PTHREAD_WIN32_DIR_DLL_WIN_FORM=$withval/dll/x64
else
PTHREAD_WIN32_DIR=$withval/lib/x86
PTHREAD_WIN32_DIR_DLL=/${withval/:/}/dll/x86
PTHREAD_WIN32_DIR_DLL=/$(echo ${withval} | ${SED} -e '/://')/dll/x64
PTHREAD_WIN32_DIR_DLL_WIN_FORM=$withval/dll/x86
fi
PTHREAD_INCLUDES=-I$withval/include
Expand Down

0 comments on commit 43000bc

Please sign in to comment.