summaryrefslogtreecommitdiff
path: root/configure.com
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2013-02-16 15:33:50 -0600
committerCraig A. Berry <craigberry@mac.com>2013-02-16 15:34:35 -0600
commit139a355e0ad77e9628721330c4ccd5764e401b02 (patch)
tree47ae3754b390e1d395aaee6bfa74bd4198611795 /configure.com
parent25d1c58b20ae91c5d903d37fa8d68b83e2992a05 (diff)
downloadperl-139a355e0ad77e9628721330c4ccd5764e401b02.tar.gz
Implement useversionedarchname in configure.com.
If this ever becomes the default, we should really remove the versioned subdirectory from archlib that we've always had. As of now, using this feature on VMS gives us redundancies such as: archlib='perl_root:[lib.VMS_IA64-5_17_9.5_17_9]'
Diffstat (limited to 'configure.com')
-rw-r--r--configure.com24
1 files changed, 23 insertions, 1 deletions
diff --git a/configure.com b/configure.com
index 42b8733ae6..f4e869d16d 100644
--- a/configure.com
+++ b/configure.com
@@ -929,7 +929,7 @@ $ config_symbols1 ="|installprivlib|installscript|installsitearch|installsitel
$ config_symbols2 ="|prefix|privlib|privlibexp|scriptdir|sitearch|sitearchexp|sitebin|sitelib|sitelib_stem|sitelibexp|usecxx|use64bitall|use64bitint|"
$ config_symbols3 ="|usecasesensitive|usedefaulttypes|usedevel|useieee|useithreads|uselongdouble|usemultiplicity|usemymalloc|usedebugging_perl|"
$ config_symbols4 ="|usesecurelog|usethreads|usevmsdebug|usefaststdio|usemallocwrap|unlink_all_versions|uselargefiles|usesitecustomize|"
-$ config_symbols5 ="|buildmake|builder|usethreadupcalls|usekernelthreads|useshortenedsymbols"
+$ config_symbols5 ="|buildmake|builder|usethreadupcalls|usekernelthreads|useshortenedsymbols|useversionedarchname"
$!
$ open/read CONFIG 'config_sh'
$ rd_conf_loop:
@@ -2379,6 +2379,27 @@ $ echo4 "I'll go with ''archname' anyway..."
$ ENDIF
$ ENDIF
$!
+$ bool_dflt = "n"
+$ if f$type(useversionedarchname) .nes. ""
+$ then
+$ if useversionedarchname .or. useversionedarchname .eqs. "define" then bool_dflt = "y"
+$ endif
+$ rp = "Add the Perl API version to your archname? [''bool_dflt'] "
+$ GOSUB myread
+$ IF ans
+$ THEN
+$ useversionedarchname = "define"
+$ IF F$LOCATE("-''version'", archname) .EQ. F$LENGTH(archname)
+$ THEN
+$ archname = "''archname'-''version'"
+$ echo4 "...setting architecture name to ''archname'."
+$ ELSE
+$ echo4 "...and architecture name already has -''version'."
+$ ENDIF
+$ ELSE
+$ useversionedarchname = "undef"
+$ ENDIF
+$!
$ IF usethreads .OR. usethreads .EQS. "define"
$ THEN
$ echo4 "Threads selected."
@@ -6692,6 +6713,7 @@ $ WC "usesocks='undef'"
$ WC "usethreads='" + usethreads + "'"
$ WC "usethreadupcalls='" + usethreadupcalls + "'" ! VMS-specific
$ WC "usevendorprefix='" + "'" ! try to say no, though we'll be ignored as of MM 5.90_01
+$ WC "useversionedarchname='" + useversionedarchname + "'"
$ WC "usevfork='true'"
$ WC "usevmsdebug='" + usevmsdebug + "'" ! VMS-specific
$ WC "uvoformat='" + uvoformat + "'"