Skip to content

Commit a6a7579

Browse files
zhangyue1818tuhaihe
authored andcommitted
Fix sed -i compatibility in configure.ac
Apply the same macOS BSD sed fix from 7e867f6 to configure.ac, so that users regenerating configure from source also get the compatibility fix.
1 parent af533b2 commit a6a7579

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

configure.ac

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3204,4 +3204,11 @@ AC_OUTPUT
32043204
# The configure args contain '-Wl,-rpath,\$$ORIGIN`, when it falls
32053205
# as a C literal string, it's invalid, so converting `\` to `\\`
32063206
# to be correct for C program.
3207-
sed -i '/define CONFIGURE_ARGS/s,\([[^\\]]\)\\\$\$,\1\\\\$$,g' src/include/pg_config.h
3207+
case $build_os in
3208+
darwin*)
3209+
sed -i '' '/define CONFIGURE_ARGS/s,\([[^\\]]\)\\\$\$,\1\\\\$$,g' src/include/pg_config.h
3210+
;;
3211+
*)
3212+
sed -i '/define CONFIGURE_ARGS/s,\([[^\\]]\)\\\$\$,\1\\\\$$,g' src/include/pg_config.h
3213+
;;
3214+
esac

0 commit comments

Comments
 (0)