diff options
| author | Andrew Dunstan | 2008-11-12 00:00:05 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2008-11-12 00:00:05 +0000 |
| commit | 466368b8d00cf4a8d54270c3d12149d81badd1ab (patch) | |
| tree | 1c778b38e0bf601b315edbef1217c9b1e6376531 /configure | |
| parent | bd059c2d1d961275da4588de6c4842e109ce230a (diff) | |
Detect and error out on inability to get proper linkage information required for plperl, usually due to absence of perl ExtUtils::Embed module. Backpatch as far as 8.1.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure b/configure index 0dc34608660..37af429c0f6 100755 --- a/configure +++ b/configure @@ -6420,10 +6420,23 @@ echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; } pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts` pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'` perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"` -{ echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5 +if test -z "$perl_embed_ldflags" ; then + { echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6; } + { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl. +This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not +installed." >&5 +echo "$as_me: error: could not determine flags for linking embedded Perl. +This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not +installed." >&2;} + { (exit 1); exit 1; }; } +else + { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5 echo "${ECHO_T}$perl_embed_ldflags" >&6; } fi +fi + if test "$with_python" = yes; then # Extract the first word of "python", so it can be a program name with args. set dummy python; ac_word=$2 |
