@@ -860,6 +860,7 @@ Optional Packages:
860860 --without-tk do not build Tk interfaces if Tcl is enabled
861861 --with-tclconfig=DIR tclConfig.sh and tkConfig.sh are in DIR
862862 --with-tkconfig=DIR tkConfig.sh is in DIR
863+ --with-perl build Perl interface and PL/Perl
863864 --with-python build Python interface module
864865 --with-java build JDBC interface and Java tools
865866 --with-krb4[=DIR] build with Kerberos 4 support [/usr/athena]
@@ -2944,6 +2945,41 @@ echo "$as_me: error: argument required for --with-tkconfig option" >&2;}
29442945fi ;
29452946
29462947
2948+ #
2949+ # Optionally build Perl modules (Pg.pm and PL/Perl)
2950+ #
2951+ echo " $as_me :$LINENO : checking whether to build Perl modules" >&5
2952+ echo $ECHO_N " checking whether to build Perl modules...$ECHO_C " >&6
2953+
2954+
2955+
2956+ # Check whether --with-perl or --without-perl was given.
2957+ if test " ${with_perl+set} " =set ; then
2958+ withval=" $with_perl "
2959+
2960+ case $withval in
2961+ yes)
2962+ :
2963+ ;;
2964+ no)
2965+ :
2966+ ;;
2967+ * )
2968+ { {echo " $as_me :$LINENO : error: no argument expected for --with-perl option" >&5
2969+ echo " $as_me : error: no argument expected for --with-perl option" >&2 ; }
2970+ { (exit 1); exit 1; }; }
2971+ ;;
2972+ esac
2973+
2974+ else
2975+ with_perl=no
2976+
2977+ fi ;
2978+
2979+ echo " $as_me :$LINENO : result:$with_perl " >&5
2980+ echo " ${ECHO_T} $with_perl " >&6
2981+
2982+
29472983#
29482984# Optionally build Python interface module
29492985#
@@ -4120,6 +4156,87 @@ echo "$as_me: error: 'wish' is required for Tk support" >&2;}
41204156 { (exit 1); exit 1; }; }
41214157fi
41224158
4159+ # Extract the first word of "perl", so it can be a program name with args.
4160+ set dummy perl; ac_word=$2
4161+ echo " $as_me :$LINENO : checking for$ac_word " >&5
4162+ echo $ECHO_N " checking for$ac_word ...$ECHO_C " >&6
4163+ if test " ${ac_cv_path_PERL+set} " =set ; then
4164+ echo $ECHO_N " (cached)$ECHO_C " >&6
4165+ else
4166+ case $PERL in
4167+ [\\ /]* |? :[\\ /]* )
4168+ ac_cv_path_PERL=" $PERL " # Let the user override the test with a path.
4169+ ;;
4170+ * )
4171+ as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
4172+ for as_dir in $PATH
4173+ do
4174+ IFS=$as_save_IFS
4175+ test -z" $as_dir " && as_dir=.
4176+ for ac_exec_ext in ' ' $ac_executable_extensions ; do
4177+ if $as_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
4178+ ac_cv_path_PERL=" $as_dir /$ac_word$ac_exec_ext "
4179+ echo " $as_me :$LINENO : found$as_dir /$ac_word$ac_exec_ext " >&5
4180+ break 2
4181+ fi
4182+ done
4183+ done
4184+
4185+ ;;
4186+ esac
4187+ fi
4188+ PERL=$ac_cv_path_PERL
4189+
4190+ if test -n" $PERL " ; then
4191+ echo " $as_me :$LINENO : result:$PERL " >&5
4192+ echo " ${ECHO_T} $PERL " >&6
4193+ else
4194+ echo " $as_me :$LINENO : result: no" >&5
4195+ echo " ${ECHO_T} no" >&6
4196+ fi
4197+
4198+ if test " $with_perl " = yes; then
4199+
4200+ echo " $as_me :$LINENO : checking for Perl installsitearch" >&5
4201+ echo $ECHO_N " checking for Perl installsitearch...$ECHO_C " >&6
4202+ perl_installsitearch=` $PERL -MConfig -e' print $Config{installsitearch}' `
4203+ echo " $as_me :$LINENO : result:$perl_installsitearch " >&5
4204+ echo " ${ECHO_T} $perl_installsitearch " >&6
4205+ echo " $as_me :$LINENO : checking for Perl installman3dir" >&5
4206+ echo $ECHO_N " checking for Perl installman3dir...$ECHO_C " >&6
4207+ perl_installman3dir=` $PERL -MConfig -e' print $Config{installman3dir}' `
4208+ echo " $as_me :$LINENO : result:$perl_installman3dir " >&5
4209+ echo " ${ECHO_T} $perl_installman3dir " >&6
4210+ echo " $as_me :$LINENO : checking for Perl archlibexp" >&5
4211+ echo $ECHO_N " checking for Perl archlibexp...$ECHO_C " >&6
4212+ perl_archlibexp=` $PERL -MConfig -e' print $Config{archlibexp}' `
4213+ echo " $as_me :$LINENO : result:$perl_archlibexp " >&5
4214+ echo " ${ECHO_T} $perl_archlibexp " >&6
4215+ echo " $as_me :$LINENO : checking for Perl privlibexp" >&5
4216+ echo $ECHO_N " checking for Perl privlibexp...$ECHO_C " >&6
4217+ perl_privlibexp=` $PERL -MConfig -e' print $Config{privlibexp}' `
4218+ echo " $as_me :$LINENO : result:$perl_privlibexp " >&5
4219+ echo " ${ECHO_T} $perl_privlibexp " >&6
4220+ echo " $as_me :$LINENO : checking for Perl useshrplib" >&5
4221+ echo $ECHO_N " checking for Perl useshrplib...$ECHO_C " >&6
4222+ perl_useshrplib=` $PERL -MConfig -e' print $Config{useshrplib}' `
4223+ echo " $as_me :$LINENO : result:$perl_useshrplib " >&5
4224+ echo " ${ECHO_T} $perl_useshrplib " >&6
4225+ echo " $as_me :$LINENO : checking for Perl man3ext" >&5
4226+ echo $ECHO_N " checking for Perl man3ext...$ECHO_C " >&6
4227+ perl_man3ext=` $PERL -MConfig -e' print $Config{man3ext}' `
4228+ echo " $as_me :$LINENO : result:$perl_man3ext " >&5
4229+ echo " ${ECHO_T} $perl_man3ext " >&6
4230+
4231+ echo " $as_me :$LINENO : checking for flags to link embedded Perl" >&5
4232+ echo $ECHO_N " checking for flags to link embedded Perl...$ECHO_C " >&6
4233+ pgac_tmp1=` $PERL -MExtUtils::Embed -e ldopts`
4234+ pgac_tmp2=` $PERL -MConfig -e' print $Config{ccdlflags}' `
4235+ perl_embed_ldflags=` echo X" $pgac_tmp1 " | sed" s/^X//;s%$pgac_tmp2 %%" `
4236+ echo " $as_me :$LINENO : result:$perl_embed_ldflags " >&5
4237+ echo " ${ECHO_T} $perl_embed_ldflags " >&6
4238+ fi
4239+
41234240if test " $with_python " = yes; then
41244241# Extract the first word of "python", so it can be a program name with args.
41254242set dummy python; ac_word=$2
@@ -16173,6 +16290,7 @@ s,@autodepend@,$autodepend,;t t
1617316290s,@INCLUDES@,$INCLUDES ,;t t
1617416291s,@with_tcl@,$with_tcl ,;t t
1617516292s,@with_tk@,$with_tk ,;t t
16293+ s,@with_perl@,$with_perl ,;t t
1617616294s,@with_python@,$with_python ,;t t
1617716295s,@ANT@,$ANT ,;t t
1617816296s,@with_java@,$with_java ,;t t
@@ -16200,6 +16318,14 @@ s,@STRIP_SHARED_LIB@,$STRIP_SHARED_LIB,;t t
1620016318s,@YACC@,$YACC ,;t t
1620116319s,@YFLAGS@,$YFLAGS ,;t t
1620216320s,@WISH@,$WISH ,;t t
16321+ s,@PERL@,$PERL ,;t t
16322+ s,@perl_installsitearch@,$perl_installsitearch ,;t t
16323+ s,@perl_installman3dir@,$perl_installman3dir ,;t t
16324+ s,@perl_archlibexp@,$perl_archlibexp ,;t t
16325+ s,@perl_privlibexp@,$perl_privlibexp ,;t t
16326+ s,@perl_useshrplib@,$perl_useshrplib ,;t t
16327+ s,@perl_man3ext@,$perl_man3ext ,;t t
16328+ s,@perl_embed_ldflags@,$perl_embed_ldflags ,;t t
1620316329s,@PYTHON@,$PYTHON ,;t t
1620416330s,@python_version@,$python_version ,;t t
1620516331s,@python_prefix@,$python_prefix ,;t t