home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume41 / dist-3.0 / patch15 next >
Encoding:
Text File  |  1993-12-19  |  38.4 KB  |  1,279 lines

  1. Newsgroups: comp.sources.misc
  2. From: Raphael Manfredi <ram@acri.fr>
  3. Subject: v41i045:  dist-3.0 - Configure script generator and related tools, Patch15
  4. Message-ID: <1993Dec19.211653.361@sparky.sterling.com>
  5. X-Md4-Signature: b7eb8936af0e86d2f95102dbc6ee138e
  6. Sender: kent@sparky.sterling.com (Kent Landfield)
  7. Organization: Advanced Computer Research Institute, Lyon, France
  8. Date: Sun, 19 Dec 1993 21:16:53 GMT
  9. Approved: kent@sparky.sterling.com
  10.  
  11. Submitted-by: Raphael Manfredi <ram@acri.fr>
  12. Posting-number: Volume 41, Issue 45
  13. Archive-name: dist-3.0/patch15
  14. Environment: UNIX, Perl, RCS
  15. Patch-To: dist-3.0: Volume 39, Issue 5-32
  16.  
  17. [The latest patch for dist version 3.0 is #15.]
  18.  
  19. System: dist version 3.0
  20. Patch #: 15
  21. Priority: LOW
  22. Subject: typo fix in Artistic license
  23. Subject: updated Configure with new metaconfig
  24. Subject: typo fix in README file
  25. Subject: added new cpp symbols __bsdi__ and BSD_NET2
  26. Subject: variable d_bsd was not always set properly
  27. Subject: added /sbin:/usr/sbin:/usr/libexec in PATH for BSD/386
  28. Subject: now set _test variable when test is built-in
  29. Subject: fixed rare cases where echo is not needed
  30. Subject: new variables cpprun and cpplast, guaranteed wrapper-free
  31. Subject: cppstdin now tries to use cc, even at the cost of a wrapper
  32. Subject: created four new units
  33. Subject: did not strip variables properly when needed
  34. Subject: now also strips down variables from trylist
  35. Subject: now also looks under /var/mail for BSD/386
  36. Subject: force zero exit status in all mkdep scripts
  37. Subject: four new files
  38. Date: Wed Dec 15 09:23:04 MET 1993
  39. From: Raphael Manfredi <ram@acri.fr>
  40.  
  41. Description:
  42.     Some minor typo and bug fixes.
  43.  
  44.     Added /sbin:/usr/sbin:/usr/libexec in PATH for BSD/386, as
  45.     well as new cpp symbols __bsdi__ and BSD_NET2.
  46.  
  47.     Loc.U now sets _test variable when test is built-in, so that
  48.     test is properly restored later on by Oldconfig.U.
  49.  
  50.     Fixed rare cases where echo is not needed and where Loc.U was
  51.     aborting with a fatal error.
  52.  
  53.     New variables cpprun and cpplast, guaranteed wrapper-free,
  54.     while cppstdin now tries to use cc, even at the cost of a
  55.     wrapper. Some users requested this feature in order to
  56.     guarantee that defines found by cppstdin will indeed be the
  57.     same for cc. On the other hand, CPPRUN may be used in C
  58.     program to invoke *a* cpp, not *the* cpp used by the C
  59.     compiler.
  60.  
  61.     Created four new units for:
  62.         mmap()
  63.         munmap()
  64.         msync()
  65.         strdup()
  66.  
  67.     Unit d_portable.U did not strip variables properly when needed.
  68.     Besides, it now also strips down variables from trylist.
  69.  
  70.     Unit maildir.U now also looks under /var/mail for BSD/386.
  71.  
  72.     Force zero exit status in all mkdep scripts, in order to
  73.     avoid the 'make depend' failure even when the mkdep aborts
  74.     on some error. Indeed, even when the 'make depend' phase does
  75.     not proceed successfully, it is still possible to compile a
  76.     package.
  77.  
  78.  
  79. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your dist source
  80.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  81.     If you don't have the patch program, apply the following by hand,
  82.     or get patch (version 2.0, latest patchlevel).
  83.  
  84.     After patching:
  85.         Configure -ders
  86.         make
  87.         make install
  88.         make install.man
  89.  
  90.     If patch indicates that patchlevel is the wrong version, you may need
  91.     to apply one or more previous patches, or the patch may already
  92.     have been applied.  See the patchlevel.h file to find out what has or
  93.     has not been applied.  In any event, don't continue with the patch.
  94.  
  95.     If you are missing previous patches they can be obtained from me:
  96.  
  97.         Raphael Manfredi <ram@acri.fr>
  98.  
  99.     If you send a mail message of the following form it will greatly speed
  100.     processing:
  101.  
  102.         Subject: Command
  103.         @SH mailpatch PATH dist 3.0 LIST
  104.                ^ note the c
  105.  
  106.     where PATH is a return path FROM ME TO YOU either in Internet notation,
  107.     or in bang notation from some well-known host, and LIST is the number
  108.     of one or more patches you need, separated by spaces, commas, and/or
  109.     hyphens.  Saying 35- says everything from 35 to the end.
  110.  
  111.     To get some more detailed instructions, send me the following mail:
  112.  
  113.         Subject: Command
  114.         @SH mailhelp PATH
  115.  
  116.  
  117. Index: patchlevel.h
  118. Prereq: 14
  119. 4c4
  120. < #define PATCHLEVEL 14
  121. ---
  122. > #define PATCHLEVEL 15
  123.  
  124. Index: mcon/U/cppstdin.U
  125. Prereq: 3.0.1.1
  126. *** mcon/U/cppstdin.U.old    Wed Dec 15 09:22:56 1993
  127. --- mcon/U/cppstdin.U    Wed Dec 15 09:22:57 1993
  128. ***************
  129. *** 1,4 ****
  130. ! ?RCS: $Id: cppstdin.U,v 3.0.1.1 1993/08/25 14:00:53 ram Exp $
  131.   ?RCS:
  132.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  133.   ?RCS: 
  134. --- 1,4 ----
  135. ! ?RCS: $Id: cppstdin.U,v 3.0.1.2 1993/12/15 08:18:58 ram Exp $
  136.   ?RCS:
  137.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  138.   ?RCS: 
  139. ***************
  140. *** 9,14 ****
  141. --- 9,18 ----
  142.   ?RCS: of the source tree for dist 3.0.
  143.   ?RCS:
  144.   ?RCS: $Log: cppstdin.U,v $
  145. + ?RCS: Revision 3.0.1.2  1993/12/15  08:18:58  ram
  146. + ?RCS: patch15: new variables cpprun and cpplast, guaranteed wrapper-free
  147. + ?RCS: patch15: cppstdin now tries to use cc, even at the cost of a wrapper
  148. + ?RCS:
  149.   ?RCS: Revision 3.0.1.1  1993/08/25  14:00:53  ram
  150.   ?RCS: patch6: remove wrapper when not actually used
  151.   ?RCS:
  152. ***************
  153. *** 15,21 ****
  154.   ?RCS: Revision 3.0  1993/08/18  12:05:38  ram
  155.   ?RCS: Baseline for dist 3.0 netwide release.
  156.   ?RCS:
  157. ! ?MAKE:cppstdin cppminus: contains test Myread Oldconfig Loc cpp cc rm
  158.   ?MAKE:    -pick add $@ %<
  159.   ?S:cppstdin:
  160.   ?S:    This variable contains the command which will invoke the C
  161. --- 19,26 ----
  162.   ?RCS: Revision 3.0  1993/08/18  12:05:38  ram
  163.   ?RCS: Baseline for dist 3.0 netwide release.
  164.   ?RCS:
  165. ! ?MAKE:cppstdin cppminus cpprun cpplast: contains test Myread Oldconfig Loc \
  166. !     cpp cc rm
  167.   ?MAKE:    -pick add $@ %<
  168.   ?S:cppstdin:
  169.   ?S:    This variable contains the command which will invoke the C
  170. ***************
  171. *** 29,38 ****
  172.   ?S:    output.  This variable will have the value "-" if cppstdin needs a minus
  173.   ?S:    to specify standard input, otherwise the value is "".
  174.   ?S:.
  175.   ?C:CPPSTDIN:
  176.   ?C:    This symbol contains the first part of the string which will invoke
  177.   ?C:    the C preprocessor on the standard input and produce to standard
  178. ! ?C:    output.     Typical value of "cc -E" or "/lib/cpp".
  179.   ?C:.
  180.   ?C:CPPMINUS:
  181.   ?C:    This symbol contains the second part of the string which will invoke
  182. --- 34,56 ----
  183.   ?S:    output.  This variable will have the value "-" if cppstdin needs a minus
  184.   ?S:    to specify standard input, otherwise the value is "".
  185.   ?S:.
  186. + ?S:cpprun:
  187. + ?S:    This variable contains the command which will invoke a C preprocessor
  188. + ?S:    on standard input and put the output to stdout. It is guaranteed not
  189. + ?S:    to be a wrapper and may be a null string if no preprocessor can be
  190. + ?S:    made directly available. This preprocessor might be different from the
  191. + ?S:    one used by the C compiler. Don't forget to append cpplast after the
  192. + ?S:    preprocessor options.
  193. + ?S:.
  194. + ?S:cpplast:
  195. + ?S:    This variable has the same functionality as cppminus, only it applies to
  196. + ?S:    cpprun and not cppstdin.
  197. + ?S:.
  198.   ?C:CPPSTDIN:
  199.   ?C:    This symbol contains the first part of the string which will invoke
  200.   ?C:    the C preprocessor on the standard input and produce to standard
  201. ! ?C:    output.     Typical value of "cc -E" or "/lib/cpp", but it can also
  202. ! ?C:    call a wrapper. See CPPRUN.
  203.   ?C:.
  204.   ?C:CPPMINUS:
  205.   ?C:    This symbol contains the second part of the string which will invoke
  206. ***************
  207. *** 40,49 ****
  208.   ?C:    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  209.   ?C:    to specify standard input, otherwise the value is "".
  210.   ?C:.
  211.   ?H:#define CPPSTDIN "$cppstdin"
  212.   ?H:#define CPPMINUS "$cppminus"
  213.   ?H:.
  214. ! ?T:wrapper
  215.   : see how we invoke the C preprocessor
  216.   echo " "
  217.   echo "Now, how can we feed standard input to your C preprocessor..." >&4
  218. --- 58,78 ----
  219.   ?C:    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  220.   ?C:    to specify standard input, otherwise the value is "".
  221.   ?C:.
  222. + ?C:CPPRUN:
  223. + ?C:    This symbol contains the string which will invoke a C preprocessor on
  224. + ?C:    the standard input and produce to standard output. It needs to end
  225. + ?C:    with CPPLAST, after all other preprocessor flags have been specified.
  226. + ?C:    The main difference with CPPSTDIN is that this program will never be a
  227. + ?C:    pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
  228. + ?C:    available directly to the user. Note that it may well be different from
  229. + ?C:    the preprocessor used to compile the C program.
  230. + ?C:.
  231.   ?H:#define CPPSTDIN "$cppstdin"
  232.   ?H:#define CPPMINUS "$cppminus"
  233. + ?H:#define CPPRUN "$cpprun"
  234. + ?H:#define CPPLAST "$cpplast"
  235.   ?H:.
  236. ! ?T:wrapper x_cpp x_minus ok
  237.   : see how we invoke the C preprocessor
  238.   echo " "
  239.   echo "Now, how can we feed standard input to your C preprocessor..." >&4
  240. ***************
  241. *** 56,121 ****
  242.   echo 'cat >.$$.c; '"$cc"' -E ${1+"$@"} .$$.c; rm .$$.c' >cppstdin
  243.   chmod 755 cppstdin
  244.   wrapper=`pwd`/cppstdin
  245.   cd UU
  246.   if $test "X$cppstdin" != "X" && \
  247.       $cppstdin $cppminus <testcpp.c >testcpp.out 2>&1 && \
  248. !     $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  249.       echo "You used to use $cppstdin $cppminus so we'll use that again."
  250. ! elif $test "$cc" = gcc && \
  251. !     (echo "Using gcc, eh?  We'll try to force gcc -E using a wrapper..."; \
  252. !     $wrapper <testcpp.c >testcpp.out 2>&1; \
  253. !     $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1) ; then
  254. !     echo "Yup, we can."
  255. !     cppstdin="$wrapper"
  256. !     cppminus='';
  257.   elif echo 'Maybe "'"$cc"' -E" will work...'; \
  258.       $cc -E <testcpp.c >testcpp.out 2>&1; \
  259.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  260.       echo "Yup, it does."
  261. !     cppstdin="$cc -E"
  262. !     cppminus='';
  263.   elif echo 'Nope...maybe "'"$cc"' -E -" will work...'; \
  264.       $cc -E - <testcpp.c >testcpp.out 2>&1; \
  265.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  266.       echo "Yup, it does."
  267. !     cppstdin="$cc -E"
  268. !     cppminus='-';
  269. ! elif echo 'No such luck, maybe "'$cpp'" will work...'; \
  270. !     $cpp <testcpp.c >testcpp.out 2>&1; \
  271. !     $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  272. !     echo "It works!"
  273. !     cppstdin="$cpp"
  274. !     cppminus='';
  275. ! elif echo 'Nixed again...maybe "'$cpp' -" will work...'; \
  276. !     $cpp - <testcpp.c >testcpp.out 2>&1; \
  277. !     $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  278. !     echo "Hooray, it works!  I was beginning to wonder."
  279. !     cppstdin="$cpp"
  280. !     cppminus='-';
  281.   elif echo 'Nope...maybe "'"$cc"' -P" will work...'; \
  282.       $cc -P <testcpp.c >testcpp.out 2>&1; \
  283.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  284.       echo "Yipee, that works!"
  285. !     cppstdin="$cc -P"
  286. !     cppminus='';
  287.   elif echo 'Nope...maybe "'"$cc"' -P -" will work...'; \
  288.       $cc -P - <testcpp.c >testcpp.out 2>&1; \
  289.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  290.       echo "At long last!"
  291. !     cppstdin="$cc -P"
  292. !     cppminus='-';
  293.   elif echo 'Uh-uh.  Time to get fancy.  Trying a wrapper...'; \
  294.       $wrapper <testcpp.c >testcpp.out 2>&1; \
  295.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  296. !     cppstdin="$wrapper"
  297. !     cppminus=''
  298.       echo "Eureka!"
  299.   else
  300.       dflt=''
  301.       rp="No dice.  I can't find a C preprocessor.  Name one:"
  302.       . ./myread
  303. !     cppstdin="$ans"
  304. !     $cppstdin <testcpp.c >testcpp.out 2>&1
  305.       if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  306.           echo "OK, that will do." >&4
  307.       else
  308. --- 85,176 ----
  309.   echo 'cat >.$$.c; '"$cc"' -E ${1+"$@"} .$$.c; rm .$$.c' >cppstdin
  310.   chmod 755 cppstdin
  311.   wrapper=`pwd`/cppstdin
  312. + ok='false'
  313.   cd UU
  314. + ?X:
  315. + ?X: We'll run the cpp tests again if we don't have any valid C preprocessor
  316. + ?X: yet or don't know how to proceed without a wrapper (in which case cpprun
  317. + ?X: is empty and that's really annoying...)
  318. + ?X:
  319.   if $test "X$cppstdin" != "X" && \
  320.       $cppstdin $cppminus <testcpp.c >testcpp.out 2>&1 && \
  321. !     $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1
  322. ! then
  323.       echo "You used to use $cppstdin $cppminus so we'll use that again."
  324. !     case "$cpprun" in
  325. !     '') echo "But let's see if we can live without a wrapper..." ;;
  326. !     *)
  327. !         if $cpprun $cpplast <testcpp.c >testcpp.out 2>&1 && \
  328. !             $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1
  329. !         then
  330. !             echo "(And we'll use $cpprun $cpplast to preprocess directly.)"
  331. !             ok='true'
  332. !         else
  333. !             echo "(However, $cpprun $cpplast does not work, let's see...)"
  334. !         fi
  335. !         ;;
  336. !     esac
  337. ! else
  338. !     case "$cppstdin" in
  339. !     '') ;;
  340. !     *)
  341. !         echo "Good old $cppstdin $cppminus does not seem to be of any help..."
  342. !         ;;
  343. !     esac
  344. ! fi
  345. ! if $ok; then
  346. !     : nothing
  347.   elif echo 'Maybe "'"$cc"' -E" will work...'; \
  348.       $cc -E <testcpp.c >testcpp.out 2>&1; \
  349.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  350.       echo "Yup, it does."
  351. !     x_cpp="$cc -E"
  352. !     x_minus='';
  353.   elif echo 'Nope...maybe "'"$cc"' -E -" will work...'; \
  354.       $cc -E - <testcpp.c >testcpp.out 2>&1; \
  355.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  356.       echo "Yup, it does."
  357. !     x_cpp="$cc -E"
  358. !     x_minus='-';
  359.   elif echo 'Nope...maybe "'"$cc"' -P" will work...'; \
  360.       $cc -P <testcpp.c >testcpp.out 2>&1; \
  361.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  362.       echo "Yipee, that works!"
  363. !     x_cpp="$cc -P"
  364. !     x_minus='';
  365.   elif echo 'Nope...maybe "'"$cc"' -P -" will work...'; \
  366.       $cc -P - <testcpp.c >testcpp.out 2>&1; \
  367.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  368.       echo "At long last!"
  369. !     x_cpp="$cc -P"
  370. !     x_minus='-';
  371. ! elif echo 'No such luck, maybe "'$cpp'" will work...'; \
  372. !     $cpp <testcpp.c >testcpp.out 2>&1; \
  373. !     $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  374. !     echo "It works!"
  375. !     x_cpp="$cpp"
  376. !     x_minus='';
  377. ! elif echo 'Nixed again...maybe "'$cpp' -" will work...'; \
  378. !     $cpp - <testcpp.c >testcpp.out 2>&1; \
  379. !     $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  380. !     echo "Hooray, it works!  I was beginning to wonder."
  381. !     x_cpp="$cpp"
  382. !     x_minus='-';
  383.   elif echo 'Uh-uh.  Time to get fancy.  Trying a wrapper...'; \
  384.       $wrapper <testcpp.c >testcpp.out 2>&1; \
  385.       $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  386. !     x_cpp="$wrapper"
  387. !     x_minus=''
  388.       echo "Eureka!"
  389.   else
  390.       dflt=''
  391.       rp="No dice.  I can't find a C preprocessor.  Name one:"
  392.       . ./myread
  393. !     x_cpp="$ans"
  394. !     x_minus=''
  395. !     $x_cpp <testcpp.c >testcpp.out 2>&1
  396.       if $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1 ; then
  397.           echo "OK, that will do." >&4
  398.       else
  399. ***************
  400. *** 123,128 ****
  401. --- 178,221 ----
  402.           exit 1
  403.       fi
  404.   fi
  405. + case "$ok" in
  406. + false)
  407. +     cppstdin="$x_cpp"
  408. +     cppminus="$x_minus"
  409. +     cpprun="$x_cpp"
  410. +     cpplast="$x_minus"
  411. + ?X:
  412. + ?X: If /lib/cpp is used, try using a wrapper to increase our chances to have
  413. + ?X: the C compiler and our $cppstdin agree on the same symbols... However,
  414. + ?X: since cpprun is guaranteed not to be a wrapper, we must clear it if the
  415. + ?X: only preprocessor we found was a wrapper, with all our luck...
  416. + ?X:
  417. +     set X $x_cpp
  418. +     shift
  419. +     case "$1" in
  420. +     "$cpp")
  421. +         echo "Perhaps can we force $cc -E using a wrapper..."
  422. +         if $wrapper <testcpp.c >testcpp.out 2>&1; \
  423. +             $contains 'abc.*xyz' testcpp.out >/dev/null 2>&1
  424. +         then
  425. +             echo "Yup, we can."
  426. +             cppstdin="$wrapper"
  427. +             cppminus='';
  428. +         else
  429. +             echo "Nope, we'll have to live without it..."
  430. +         fi
  431. +         ;;
  432. +     esac
  433. +     case "$cpprun" in
  434. +     "$wrapper")
  435. +         cpprun=''
  436. +         cpplast=''
  437. +         ;;
  438. +     esac
  439. +     ;;
  440. + esac
  441.   case "$cppstdin" in
  442.   "$wrapper") ;;
  443.   *) $rm -f $wrapper;;
  444.  
  445. Index: Configure
  446. Prereq: 3.0.1.3
  447. *** Configure.old    Wed Dec 15 09:22:52 1993
  448. --- Configure    Wed Dec 15 09:22:52 1993
  449. ***************
  450. *** 18,26 ****
  451.   # archive site. Check with Archie if you don't know where that can be.)
  452.   #
  453.   
  454. ! # $Id: Configure,v 3.0.1.3 1993/10/16 13:45:31 ram Exp $
  455.   #
  456. ! # Generated on Sat Oct 16 14:42:24 MET 1993 [metaconfig 3.0 PL11]
  457.   
  458.   cat >/tmp/c1$$ <<EOF
  459.   ARGGGHHHH!!!!!
  460. --- 18,26 ----
  461.   # archive site. Check with Archie if you don't know where that can be.)
  462.   #
  463.   
  464. ! # $Id: Configure,v 3.0.1.4 1993/12/15 08:13:03 ram Exp $
  465.   #
  466. ! # Generated on Wed Dec 15 09:10:18 MET 1993 [metaconfig 3.0 PL14]
  467.   
  468.   cat >/tmp/c1$$ <<EOF
  469.   ARGGGHHHH!!!!!
  470. ***************
  471. *** 61,67 ****
  472.   
  473.   : On HP-UX, large Configure scripts may exercise a bug in /bin/sh
  474.   if test -f /hp-ux -a -f /bin/ksh; then
  475. !     if (alias -x) >/dev/null 2>&1; then
  476.           : already under /bin/ksh
  477.       else
  478.           cat <<'EOM'
  479. --- 61,67 ----
  480.   
  481.   : On HP-UX, large Configure scripts may exercise a bug in /bin/sh
  482.   if test -f /hp-ux -a -f /bin/ksh; then
  483. !     if (PATH=.; alias -x) >/dev/null 2>&1; then
  484.           : already under /bin/ksh
  485.       else
  486.           cat <<'EOM'
  487. ***************
  488. *** 71,77 ****
  489.       fi
  490.   else
  491.       : Warn them if they use ksh on other systems
  492. !     (alias -x) >/dev/null 2>&1 && \
  493.           cat <<'EOM'
  494.   (I see you are using the Korn shell.  Some ksh's blow up on Configure,
  495.   especially on exotic machines.  If yours does, try the Bourne shell instead.)
  496. --- 71,77 ----
  497.       fi
  498.   else
  499.       : Warn them if they use ksh on other systems
  500. !     (PATH=.; alias -x) >/dev/null 2>&1 && \
  501.           cat <<'EOM'
  502.   (I see you are using the Korn shell.  Some ksh's blow up on Configure,
  503.   especially on exotic machines.  If yours does, try the Bourne shell instead.)
  504. ***************
  505. *** 327,333 ****
  506.       -s) shift; silent=true;;
  507.       -E) shift; alldone=exit;;
  508.       -S) shift; extractsh=true;;
  509. !     -V) echo "Configure generated by metaconfig 3.0 PL11." >&2
  510.           exit 0;;
  511.       --) break;;
  512.       -*) echo "Configure: unknown option $1" >&2; shift; error=true;;
  513. --- 327,333 ----
  514.       -s) shift; silent=true;;
  515.       -E) shift; alldone=exit;;
  516.       -S) shift; extractsh=true;;
  517. !     -V) echo "Configure generated by metaconfig 3.0 PL14." >&2
  518.           exit 0;;
  519.       --) break;;
  520.       -*) echo "Configure: unknown option $1" >&2; shift; error=true;;
  521. ***************
  522. *** 379,387 ****
  523.   
  524.   : set package name
  525.   package=dist
  526. - first=`echo $package | sed -e 's/^\(.\).*/\1/'`
  527. - last=`echo $package | sed -e 's/^.\(.*\)/\1/'`
  528. - spackage=`echo $first | tr '[a-z]' '[A-Z]'`$last
  529.   
  530.   : Eunice requires " " instead of "", can you believe it
  531.   echo " "
  532. --- 379,384 ----
  533. ***************
  534. *** 848,853 ****
  535. --- 845,851 ----
  536.       if sh -c "PATH= test true" >/dev/null 2>&1; then
  537.           echo "Using the test built into your sh."
  538.           test=test
  539. +         _test=test
  540.       fi
  541.       ;;
  542.   esac
  543. ***************
  544. *** 855,860 ****
  545. --- 853,859 ----
  546.   echo)
  547.       echo "Hopefully echo is built into your sh."
  548.       ;;
  549. + '') ;;
  550.   *)
  551.       echo " "
  552.   echo "Checking compatibility between $echo and builtin echo (if any)..." >&4
  553. ***************
  554. *** 973,980 ****
  555.   . ./myread
  556.   case "$ans" in
  557.       y*) d_portable="$define"
  558. !     for file in $loclist; do
  559. !         eval $file=$file
  560.       done
  561.       ;;
  562.       *)  d_portable="$undef" ;;
  563. --- 972,979 ----
  564.   . ./myread
  565.   case "$ans" in
  566.       y*) d_portable="$define"
  567. !     for file in $loclist $trylist; do
  568. !         eval $file="\$_$file"
  569.       done
  570.       ;;
  571.       *)  d_portable="$undef" ;;
  572. ***************
  573. *** 1428,1433 ****
  574. --- 1427,1433 ----
  575.   echo exit 1 >eunice
  576.   echo exit 1 >xenix
  577.   echo exit 1 >venix
  578. + d_bsd="$undef"
  579.   $cat /usr/include/signal.h /usr/include/sys/signal.h >foo 2>/dev/null
  580.   if test -f /osf_boot || $contains 'OSF/1' /usr/include/ctype.h >/dev/null 2>&1
  581.   then
  582. ***************
  583. *** 1447,1453 ****
  584.           fi
  585.           echo exit 0 >usg
  586.       fi
  587. -     d_bsd="$undef"
  588.   elif $contains SIGTSTP foo >/dev/null 2>&1 ; then
  589.       echo "Looks kind of like a BSD system, but we'll see..."
  590.       d_bsd="$define"
  591. --- 1447,1452 ----
  592. ***************
  593. *** 1454,1460 ****
  594.       echo exit 0 >bsd
  595.   else
  596.       echo "Looks kind of like a Version 7 system, but we'll see..."
  597. -     d_bsd="$undef"
  598.       echo exit 0 >v7
  599.   fi
  600.   case "$eunicefix" in
  601. --- 1453,1458 ----
  602.  
  603. Index: mcon/U/Loc.U
  604. Prereq: 3.0.1.1
  605. *** mcon/U/Loc.U.old    Wed Dec 15 09:22:56 1993
  606. --- mcon/U/Loc.U    Wed Dec 15 09:22:56 1993
  607. ***************
  608. *** 1,4 ****
  609. ! ?RCS: $Id: Loc.U,v 3.0.1.1 1993/09/13 15:47:13 ram Exp $
  610.   ?RCS:
  611.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  612.   ?RCS: 
  613. --- 1,4 ----
  614. ! ?RCS: $Id: Loc.U,v 3.0.1.2 1993/12/15 08:16:52 ram Exp $
  615.   ?RCS:
  616.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  617.   ?RCS: 
  618. ***************
  619. *** 9,14 ****
  620. --- 9,18 ----
  621.   ?RCS: of the source tree for dist 3.0.
  622.   ?RCS:
  623.   ?RCS: $Log: Loc.U,v $
  624. + ?RCS: Revision 3.0.1.2  1993/12/15  08:16:52  ram
  625. + ?RCS: patch15: now set _test variable when test is built-in
  626. + ?RCS: patch15: fixed rare cases where echo is not needed
  627. + ?RCS:
  628.   ?RCS: Revision 3.0.1.1  1993/09/13  15:47:13  ram
  629.   ?RCS: patch10: test program not always in /bin/test (WAD)
  630.   ?RCS:
  631. ***************
  632. *** 40,46 ****
  633.       rmail sed sendmail sh shar sleep smail sort submit tail tar tbl test \
  634.       touch tr troff uname uniq uuname vi zcat
  635.   ?V::pth loclist trylist
  636. ! ?T:thing xxx dir file say
  637.   : find out where common programs are
  638.   echo " "
  639.   echo "Locating common programs..." >&4
  640. --- 44,50 ----
  641.       rmail sed sendmail sh shar sleep smail sort submit tail tar tbl test \
  642.       touch tr troff uname uniq uuname vi zcat
  643.   ?V::pth loclist trylist
  644. ! ?T:thing xxx dir file say _test
  645.   : find out where common programs are
  646.   echo " "
  647.   echo "Locating common programs..." >&4
  648. ***************
  649. *** 195,201 ****
  650. --- 199,211 ----
  651.   *)
  652.       if sh -c "PATH= test true" >/dev/null 2>&1; then
  653.           echo "Using the test built into your sh."
  654. + ?X:
  655. + ?X: We need to set both test and _test, since Oldconfig.U will use the _test
  656. + ?X: value to systematically restore computed paths, which may be wrong if
  657. + ?X: we choose to load an old config.sh generated on another platform.
  658. + ?X:
  659.           test=test
  660. +         _test=test
  661.       fi
  662.       ;;
  663.   esac
  664. ***************
  665. *** 204,209 ****
  666. --- 214,221 ----
  667.   echo)
  668.       echo "Hopefully echo is built into your sh."
  669.       ;;
  670. + ?X: For those rare cases where we don't need $echo...
  671. + '') ;;
  672.   *)
  673.       echo " "
  674.   echo "Checking compatibility between $echo and builtin echo (if any)..." >&4
  675.  
  676. Index: mcon/U/Cppsym.U
  677. Prereq: 3.0
  678. *** mcon/U/Cppsym.U.old    Wed Dec 15 09:22:54 1993
  679. --- mcon/U/Cppsym.U    Wed Dec 15 09:22:54 1993
  680. ***************
  681. *** 1,4 ****
  682. ! ?RCS: $Id: Cppsym.U,v 3.0 1993/08/18 12:04:50 ram Exp $
  683.   ?RCS:
  684.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  685.   ?RCS: 
  686. --- 1,4 ----
  687. ! ?RCS: $Id: Cppsym.U,v 3.0.1.1 1993/12/15 08:14:14 ram Exp $
  688.   ?RCS:
  689.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  690.   ?RCS: 
  691. ***************
  692. *** 9,14 ****
  693. --- 9,17 ----
  694.   ?RCS: of the source tree for dist 3.0.
  695.   ?RCS:
  696.   ?RCS: $Log: Cppsym.U,v $
  697. + ?RCS: Revision 3.0.1.1  1993/12/15  08:14:14  ram
  698. + ?RCS: patch15: added new cpp symbols __bsdi__ and BSD_NET2
  699. + ?RCS:
  700.   ?RCS: Revision 3.0  1993/08/18  12:04:50  ram
  701.   ?RCS: Baseline for dist 3.0 netwide release.
  702.   ?RCS:
  703. ***************
  704. *** 25,31 ****
  705.   ?T:attrlist sym list unknown status
  706.   ?X: The attrlist is in alpha order for ease of maintenance...
  707.   ?INIT:: list of known cpp symbols
  708. ! ?INIT:attrlist="__alpha DGUX M_I186 M_I286 M_I386 M_I8086 M_XENIX UTS __DGUX__"
  709.   ?INIT:attrlist="$attrlist _AIX __STDC__ __m88k__ ansi bsd4_2 gcos gimpel"
  710.   ?INIT:attrlist="$attrlist hp9000s300 hp9000s400 hp9000s500 hp9000s700"
  711.   ?INIT:attrlist="$attrlist hp9000s800 hpux"
  712. --- 28,35 ----
  713.   ?T:attrlist sym list unknown status
  714.   ?X: The attrlist is in alpha order for ease of maintenance...
  715.   ?INIT:: list of known cpp symbols
  716. ! ?INIT:attrlist="__alpha __bsdi__ BSD_NET2 DGUX M_I186 M_I286 M_I386"
  717. ! ?INIT:attrlist="$attrlist M_I8086 M_XENIX UTS __DGUX__"
  718.   ?INIT:attrlist="$attrlist _AIX __STDC__ __m88k__ ansi bsd4_2 gcos gimpel"
  719.   ?INIT:attrlist="$attrlist hp9000s300 hp9000s400 hp9000s500 hp9000s700"
  720.   ?INIT:attrlist="$attrlist hp9000s800 hpux"
  721.  
  722. Index: mcon/U/Guess.U
  723. Prereq: 3.0.1.2
  724. *** mcon/U/Guess.U.old    Wed Dec 15 09:22:54 1993
  725. --- mcon/U/Guess.U    Wed Dec 15 09:22:55 1993
  726. ***************
  727. *** 1,4 ****
  728. ! ?RCS: $Id: Guess.U,v 3.0.1.2 1993/08/30 08:57:14 ram Exp $
  729.   ?RCS:
  730.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  731.   ?RCS: 
  732. --- 1,4 ----
  733. ! ?RCS: $Id: Guess.U,v 3.0.1.3 1993/12/15 08:14:35 ram Exp $
  734.   ?RCS:
  735.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  736.   ?RCS: 
  737. ***************
  738. *** 9,14 ****
  739. --- 9,17 ----
  740.   ?RCS: of the source tree for dist 3.0.
  741.   ?RCS:
  742.   ?RCS: $Log: Guess.U,v $
  743. + ?RCS: Revision 3.0.1.3  1993/12/15  08:14:35  ram
  744. + ?RCS: patch15: variable d_bsd was not always set properly
  745. + ?RCS:
  746.   ?RCS: Revision 3.0.1.2  1993/08/30  08:57:14  ram
  747.   ?RCS: patch8: fixed comment which wrongly attributed the usrinc symbol
  748.   ?RCS: patch8: no more ugly messages when no /usr/include/ctype.h
  749. ***************
  750. *** 73,78 ****
  751. --- 76,82 ----
  752.   echo exit 1 >eunice
  753.   echo exit 1 >xenix
  754.   echo exit 1 >venix
  755. + d_bsd="$undef"
  756.   ?X:
  757.   ?X: Do not use 'usrinc', or we get a circular dependency. because
  758.   ?X: usrinc is defined in usrinc.U, which relies on us...
  759. ***************
  760. *** 96,102 ****
  761.           fi
  762.           echo exit 0 >usg
  763.       fi
  764. -     d_bsd="$undef"
  765.   elif $contains SIGTSTP foo >/dev/null 2>&1 ; then
  766.       echo "Looks kind of like a BSD system, but we'll see..."
  767.       d_bsd="$define"
  768. --- 100,105 ----
  769. ***************
  770. *** 103,109 ****
  771.       echo exit 0 >bsd
  772.   else
  773.       echo "Looks kind of like a Version 7 system, but we'll see..."
  774. -     d_bsd="$undef"
  775.       echo exit 0 >v7
  776.   fi
  777.   case "$eunicefix" in
  778. --- 106,111 ----
  779.  
  780. Index: mcon/U/Head.U
  781. Prereq: 3.0.1.2
  782. *** mcon/U/Head.U.old    Wed Dec 15 09:22:55 1993
  783. --- mcon/U/Head.U    Wed Dec 15 09:22:55 1993
  784. ***************
  785. *** 1,4 ****
  786. ! ?RCS: $Id: Head.U,v 3.0.1.2 1993/11/10 17:32:35 ram Exp $
  787.   ?RCS:
  788.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  789.   ?RCS: 
  790. --- 1,4 ----
  791. ! ?RCS: $Id: Head.U,v 3.0.1.3 1993/12/15 08:15:07 ram Exp $
  792.   ?RCS:
  793.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  794.   ?RCS: 
  795. ***************
  796. *** 9,14 ****
  797. --- 9,17 ----
  798.   ?RCS: of the source tree for dist 3.0.
  799.   ?RCS:
  800.   ?RCS: $Log: Head.U,v $
  801. + ?RCS: Revision 3.0.1.3  1993/12/15  08:15:07  ram
  802. + ?RCS: patch15: added /sbin:/usr/sbin:/usr/libexec in PATH for BSD/386
  803. + ?RCS:
  804.   ?RCS: Revision 3.0.1.2  1993/11/10  17:32:35  ram
  805.   ?RCS: patch14: ensure PATH is reset to '.' before testing for alias
  806.   ?RCS:
  807. ***************
  808. *** 59,65 ****
  809.   ?X: by your version, not mine: It credits your work.
  810.   ?X:
  811.   
  812. ! # $Id: Head.U,v 3.0.1.2 1993/11/10 17:32:35 ram Exp $
  813.   #
  814.   # Generated on <DATE> [metaconfig <VERSION> PL<PATCHLEVEL>]
  815.   
  816. --- 62,68 ----
  817.   ?X: by your version, not mine: It credits your work.
  818.   ?X:
  819.   
  820. ! # $Id: Head.U,v 3.0.1.3 1993/12/15 08:15:07 ram Exp $
  821.   #
  822.   # Generated on <DATE> [metaconfig <VERSION> PL<PATCHLEVEL>]
  823.   
  824. ***************
  825. *** 103,108 ****
  826. --- 106,112 ----
  827.   PATH=$PATH:'/sys5.3/bin:/sys5.3/usr/bin:/bsd4.3/bin:/bsd4.3/usr/ucb'
  828.   PATH=$PATH:'/bsd4.3/usr/bin:/usr/bsd:/bsd43/bin:/usr/ccs/bin'
  829.   PATH=$PATH:'/etc:/usr/lib:/usr/ucblib:/lib:/usr/ccs/lib'
  830. + PATH=$PATH:'/sbin:/usr/sbin:/usr/libexec'
  831.   export PATH
  832.   
  833.   if test ! -t 0; then
  834.  
  835. Index: mcon/U/d_portable.U
  836. Prereq: 3.0
  837. *** mcon/U/d_portable.U.old    Wed Dec 15 09:22:59 1993
  838. --- mcon/U/d_portable.U    Wed Dec 15 09:22:59 1993
  839. ***************
  840. *** 1,4 ****
  841. ! ?RCS: $Id: d_portable.U,v 3.0 1993/08/18 12:06:48 ram Exp $
  842.   ?RCS:
  843.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  844.   ?RCS: 
  845. --- 1,4 ----
  846. ! ?RCS: $Id: d_portable.U,v 3.0.1.1 1993/12/15 08:21:17 ram Exp $
  847.   ?RCS:
  848.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  849.   ?RCS: 
  850. ***************
  851. *** 9,14 ****
  852. --- 9,18 ----
  853.   ?RCS: of the source tree for dist 3.0.
  854.   ?RCS:
  855.   ?RCS: $Log: d_portable.U,v $
  856. + ?RCS: Revision 3.0.1.1  1993/12/15  08:21:17  ram
  857. + ?RCS: patch15: did not strip variables properly when needed
  858. + ?RCS: patch15: now also strips down variables from trylist
  859. + ?RCS:
  860.   ?RCS: Revision 3.0  1993/08/18  12:06:48  ram
  861.   ?RCS: Baseline for dist 3.0 netwide release.
  862.   ?RCS:
  863. ***************
  864. *** 55,62 ****
  865.   . ./myread
  866.   case "$ans" in
  867.       y*) d_portable="$define"
  868. !     for file in $loclist; do
  869. !         eval $file=$file
  870.       done
  871.       ;;
  872.       *)  d_portable="$undef" ;;
  873. --- 59,71 ----
  874.   . ./myread
  875.   case "$ans" in
  876.       y*) d_portable="$define"
  877. ! ?X:
  878. ! ?X: Strip down paths in located executables. For each file, e.g. vi, there
  879. ! ?X: is a $vi variable whose value is for instance '/usr/bin/vi'. By resetting
  880. ! ?X: $vi to 'vi', we rely on the PATH variable to locate the executable...
  881. ! ?X:
  882. !     for file in $loclist $trylist; do
  883. !         eval $file="\$file"
  884.       done
  885.       ;;
  886.       *)  d_portable="$undef" ;;
  887.  
  888. Index: mcon/U/mkdep.U
  889. Prereq: 3.0
  890. *** mcon/U/mkdep.U.old    Wed Dec 15 09:23:02 1993
  891. --- mcon/U/mkdep.U    Wed Dec 15 09:23:02 1993
  892. ***************
  893. *** 1,4 ****
  894. ! ?RCS: $Id: mkdep.U,v 3.0 1993/08/18 12:09:16 ram Exp $
  895.   ?RCS:
  896.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  897.   ?RCS: 
  898. --- 1,4 ----
  899. ! ?RCS: $Id: mkdep.U,v 3.0.1.1 1993/12/15 08:22:39 ram Exp $
  900.   ?RCS:
  901.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  902.   ?RCS: 
  903. ***************
  904. *** 9,14 ****
  905. --- 9,17 ----
  906.   ?RCS: of the source tree for dist 3.0.
  907.   ?RCS:
  908.   ?RCS: $Log: mkdep.U,v $
  909. + ?RCS: Revision 3.0.1.1  1993/12/15  08:22:39  ram
  910. + ?RCS: patch15: force zero exit status in all mkdep scripts
  911. + ?RCS:
  912.   ?RCS: Revision 3.0  1993/08/18  12:09:16  ram
  913.   ?RCS: Baseline for dist 3.0 netwide release.
  914.   ?RCS:
  915. ***************
  916. *** 75,80 ****
  917. --- 78,84 ----
  918.   do
  919.       $cpp -M -I. $cppflags \$flags \$srcfile 2>/dev/null
  920.   done
  921. + exit 0
  922.   EOM
  923.       mkdep=$toplev/mkdep
  924.       chmod +x $mkdep
  925. ***************
  926. *** 100,105 ****
  927. --- 104,110 ----
  928.   do
  929.       $cc -MM -I. $cppflags \$flags \$srcfile 2>/dev/null
  930.   done
  931. + exit 0
  932.   EOM
  933.       mkdep=$toplev/mkdep
  934.       chmod +x $mkdep
  935. ***************
  936. *** 135,140 ****
  937. --- 140,146 ----
  938.           -e 's|: *$|: '\$srcfile'|' | \\
  939.       $grep -v '^#' | $sort | $uniq
  940.   done
  941. + exit 0
  942.   EOS
  943.       mkdep=$toplev/mkdep
  944.       chmod +x $mkdep
  945. ***************
  946. *** 197,202 ****
  947. --- 203,209 ----
  948.       IFS=' '
  949.       $rm -f /tmp/mkdep\$\$
  950.   done
  951. + exit 0
  952.   EOS
  953.           mkdep=$toplev/mkdep
  954.           chmod +x $mkdep
  955.  
  956. Index: MANIFEST
  957. *** MANIFEST.old    Wed Dec 15 09:23:02 1993
  958. --- MANIFEST    Wed Dec 15 09:23:03 1993
  959. ***************
  960. *** 176,186 ****
  961. --- 176,189 ----
  962.   mcon/U/d_memmove.U         Do we have memmove()?
  963.   mcon/U/d_memset.U          Do we have memset()?
  964.   mcon/U/d_mkdir.U           Do we have mkdir()?
  965. + mcon/U/d_mmap.U            Do we have mmap()?
  966.   mcon/U/d_msg.U             Do we have full msg(2) support?
  967.   mcon/U/d_msgctl.U          Do we have msgctl()?
  968.   mcon/U/d_msgget.U          Do we have msgget()?
  969.   mcon/U/d_msgrcv.U          Do we have msgrcv()?
  970.   mcon/U/d_msgsnd.U          Do we have msgsnd()?
  971. + mcon/U/d_msync.U           Do we have msync()?
  972. + mcon/U/d_munmap.U          Do we have munmap()?
  973.   mcon/U/d_newsadm.U         Who is news administrator?
  974.   mcon/U/d_nolnbuf.U         Is stdout line buffered?
  975.   mcon/U/d_normsig.U         signal() vs sigset()
  976. ***************
  977. *** 236,241 ****
  978. --- 239,245 ----
  979.   mcon/U/d_strchr.U          Use strchr() or index()?
  980.   mcon/U/d_strcspn.U         Do we have strcspn()?
  981.   mcon/U/d_strctcpy.U        Do we do struct copies?
  982. + mcon/U/d_strdup.U          Do we have strdup()?
  983.   mcon/U/d_strerror.U        Do we have strerror()?
  984.   mcon/U/d_strftime.U        Do we have strftime()?
  985.   mcon/U/d_strstr.U          Do we have strtr()?
  986.  
  987. Index: mcon/U/d_strdup.U
  988. *** mcon/U/d_strdup.U.old    Wed Dec 15 09:22:59 1993
  989. --- mcon/U/d_strdup.U    Wed Dec 15 09:23:00 1993
  990. ***************
  991. *** 0 ****
  992. --- 1,32 ----
  993. + ?RCS: $Id: d_strdup.U,v 3.0.1.1 1993/12/15 08:21:41 ram Exp $
  994. + ?RCS:
  995. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  996. + ?RCS: 
  997. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  998. + ?RCS: as specified in the README file that comes with the distribution.
  999. + ?RCS: You may reuse parts of this distribution only within the terms of
  1000. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  1001. + ?RCS: of the source tree for dist 3.0.
  1002. + ?RCS:
  1003. + ?RCS: $Log: d_strdup.U,v $
  1004. + ?RCS: Revision 3.0.1.1  1993/12/15  08:21:41  ram
  1005. + ?RCS: patch15: created
  1006. + ?RCS:
  1007. + ?MAKE:d_strdup: Inlibc
  1008. + ?MAKE:    -pick add $@ %<
  1009. + ?S:d_strdup:
  1010. + ?S:    This variable conditionally defines HAS_STRDUP if strdup() is
  1011. + ?S:    available to duplicate strings in memory.
  1012. + ?S:.
  1013. + ?C:HAS_STRDUP:
  1014. + ?C:    This symbol, if defined, indicates that the strdup routine is
  1015. + ?C:    available to duplicate strings in memory. Otherwise, roll up
  1016. + ?C:    your own...
  1017. + ?C:.
  1018. + ?H:#$d_strdup HAS_STRDUP        /**/
  1019. + ?H:.
  1020. + ?LINT:set d_strdup
  1021. + : see if strdup exists
  1022. + set strdup d_strdup
  1023. + eval $inlibc
  1024.  
  1025. Index: mcon/U/d_munmap.U
  1026. *** mcon/U/d_munmap.U.old    Wed Dec 15 09:22:58 1993
  1027. --- mcon/U/d_munmap.U    Wed Dec 15 09:22:58 1993
  1028. ***************
  1029. *** 0 ****
  1030. --- 1,31 ----
  1031. + ?RCS: $Id: d_munmap.U,v 3.0.1.1 1993/12/15 08:19:22 ram Exp $
  1032. + ?RCS:
  1033. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1034. + ?RCS: 
  1035. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  1036. + ?RCS: as specified in the README file that comes with the distribution.
  1037. + ?RCS: You may reuse parts of this distribution only within the terms of
  1038. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  1039. + ?RCS: of the source tree for dist 3.0.
  1040. + ?RCS:
  1041. + ?RCS: $Log: d_munmap.U,v $
  1042. + ?RCS: Revision 3.0.1.1  1993/12/15  08:19:22  ram
  1043. + ?RCS: patch15: created
  1044. + ?RCS:
  1045. + ?MAKE:d_munmap: Inlibc
  1046. + ?MAKE:    -pick add $@ %<
  1047. + ?S:d_munmap:
  1048. + ?S:    This variable conditionally defines HAS_MUNMAP if munmap() is
  1049. + ?S:    available to unmap a region mapped by mmap().
  1050. + ?S:.
  1051. + ?C:HAS_MUNMAP:
  1052. + ?C:    This symbol, if defined, indicates that the munmap system call is
  1053. + ?C:    available to unmap a region, usually mapped by mmap().
  1054. + ?C:.
  1055. + ?H:#$d_munmap HAS_MUNMAP        /**/
  1056. + ?H:.
  1057. + ?LINT:set d_munmap
  1058. + : see if munmap exists
  1059. + set munmap d_munmap
  1060. + eval $inlibc
  1061.  
  1062. Index: mcon/U/mailfile.U
  1063. Prereq: 3.0
  1064. *** mcon/U/mailfile.U.old    Wed Dec 15 09:23:01 1993
  1065. --- mcon/U/mailfile.U    Wed Dec 15 09:23:01 1993
  1066. ***************
  1067. *** 1,4 ****
  1068. ! ?RCS: $Id: mailfile.U,v 3.0 1993/08/18 12:09:11 ram Exp $
  1069.   ?RCS:
  1070.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1071.   ?RCS: 
  1072. --- 1,4 ----
  1073. ! ?RCS: $Id: mailfile.U,v 3.0.1.1 1993/12/15 08:22:08 ram Exp $
  1074.   ?RCS:
  1075.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1076.   ?RCS: 
  1077. ***************
  1078. *** 9,14 ****
  1079. --- 9,17 ----
  1080.   ?RCS: of the source tree for dist 3.0.
  1081.   ?RCS:
  1082.   ?RCS: $Log: mailfile.U,v $
  1083. + ?RCS: Revision 3.0.1.1  1993/12/15  08:22:08  ram
  1084. + ?RCS: patch15: now also looks under /var/mail for BSD/386
  1085. + ?RCS:
  1086.   ?RCS: Revision 3.0  1993/08/18  12:09:11  ram
  1087.   ?RCS: Baseline for dist 3.0 netwide release.
  1088.   ?RCS:
  1089. ***************
  1090. *** 29,35 ****
  1091.   : determine where mail is spooled
  1092.   case "$mailfile" in
  1093.   '')
  1094. !     dflt=`./loc . XXX /usr/spool/mail /usr/mail`
  1095.       case "$dflt" in
  1096.       XXX) dflt='%~/mailbox';;
  1097.       *) dflt="$dflt/%L";;
  1098. --- 32,38 ----
  1099.   : determine where mail is spooled
  1100.   case "$mailfile" in
  1101.   '')
  1102. !     dflt=`./loc . XXX /usr/spool/mail /usr/mail /var/mail`
  1103.       case "$dflt" in
  1104.       XXX) dflt='%~/mailbox';;
  1105.       *) dflt="$dflt/%L";;
  1106.  
  1107. Index: mcon/U/d_msync.U
  1108. *** mcon/U/d_msync.U.old    Wed Dec 15 09:22:58 1993
  1109. --- mcon/U/d_msync.U    Wed Dec 15 09:22:58 1993
  1110. ***************
  1111. *** 0 ****
  1112. --- 1,31 ----
  1113. + ?RCS: $Id: d_msync.U,v 3.0.1.1 1993/12/15 08:19:17 ram Exp $
  1114. + ?RCS:
  1115. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1116. + ?RCS: 
  1117. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  1118. + ?RCS: as specified in the README file that comes with the distribution.
  1119. + ?RCS: You may reuse parts of this distribution only within the terms of
  1120. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  1121. + ?RCS: of the source tree for dist 3.0.
  1122. + ?RCS:
  1123. + ?RCS: $Log: d_msync.U,v $
  1124. + ?RCS: Revision 3.0.1.1  1993/12/15  08:19:17  ram
  1125. + ?RCS: patch15: created
  1126. + ?RCS:
  1127. + ?MAKE:d_msync: Inlibc
  1128. + ?MAKE:    -pick add $@ %<
  1129. + ?S:d_msync:
  1130. + ?S:    This variable conditionally defines HAS_MSYNC if msync() is
  1131. + ?S:    available to synchronize a mapped file.
  1132. + ?S:.
  1133. + ?C:HAS_MSYNC:
  1134. + ?C:    This symbol, if defined, indicates that the msync system call is
  1135. + ?C:    available to synchronize a mapped file.
  1136. + ?C:.
  1137. + ?H:#$d_msync HAS_MSYNC        /**/
  1138. + ?H:.
  1139. + ?LINT:set d_msync
  1140. + : see if msync exists
  1141. + set msync d_msync
  1142. + eval $inlibc
  1143.  
  1144. Index: mcon/U/d_mmap.U
  1145. *** mcon/U/d_mmap.U.old    Wed Dec 15 09:22:57 1993
  1146. --- mcon/U/d_mmap.U    Wed Dec 15 09:22:57 1993
  1147. ***************
  1148. *** 0 ****
  1149. --- 1,31 ----
  1150. + ?RCS: $Id: d_mmap.U,v 3.0.1.1 1993/12/15 08:19:12 ram Exp $
  1151. + ?RCS:
  1152. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1153. + ?RCS: 
  1154. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  1155. + ?RCS: as specified in the README file that comes with the distribution.
  1156. + ?RCS: You may reuse parts of this distribution only within the terms of
  1157. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  1158. + ?RCS: of the source tree for dist 3.0.
  1159. + ?RCS:
  1160. + ?RCS: $Log: d_mmap.U,v $
  1161. + ?RCS: Revision 3.0.1.1  1993/12/15  08:19:12  ram
  1162. + ?RCS: patch15: created
  1163. + ?RCS:
  1164. + ?MAKE:d_mmap: Inlibc
  1165. + ?MAKE:    -pick add $@ %<
  1166. + ?S:d_mmap:
  1167. + ?S:    This variable conditionally defines HAS_MMAP if mmap() is
  1168. + ?S:    available to map a file into memory.
  1169. + ?S:.
  1170. + ?C:HAS_MMAP:
  1171. + ?C:    This symbol, if defined, indicates that the mmap system call is
  1172. + ?C:    available to map a file into memory.
  1173. + ?C:.
  1174. + ?H:#$d_mmap HAS_MMAP        /**/
  1175. + ?H:.
  1176. + ?LINT:set d_mmap
  1177. + : see if mmap exists
  1178. + set mmap d_mmap
  1179. + eval $inlibc
  1180.  
  1181. Index: mcon/U/maildir.U
  1182. Prereq: 3.0
  1183. *** mcon/U/maildir.U.old    Wed Dec 15 09:23:00 1993
  1184. --- mcon/U/maildir.U    Wed Dec 15 09:23:00 1993
  1185. ***************
  1186. *** 1,4 ****
  1187. ! ?RCS: $Id: maildir.U,v 3.0 1993/08/18 12:09:09 ram Exp $
  1188.   ?RCS:
  1189.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1190.   ?RCS: 
  1191. --- 1,4 ----
  1192. ! ?RCS: $Id: maildir.U,v 3.0.1.1 1993/12/15 08:21:56 ram Exp $
  1193.   ?RCS:
  1194.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1195.   ?RCS: 
  1196. ***************
  1197. *** 9,14 ****
  1198. --- 9,17 ----
  1199.   ?RCS: of the source tree for dist 3.0.
  1200.   ?RCS:
  1201.   ?RCS: $Log: maildir.U,v $
  1202. + ?RCS: Revision 3.0.1.1  1993/12/15  08:21:56  ram
  1203. + ?RCS: patch15: now also looks under /var/mail for BSD/386
  1204. + ?RCS:
  1205.   ?RCS: Revision 3.0  1993/08/18  12:09:09  ram
  1206.   ?RCS: Baseline for dist 3.0 netwide release.
  1207.   ?RCS:
  1208. ***************
  1209. *** 26,32 ****
  1210.   ?S:.
  1211.   : determine where mail is spooled
  1212.   case "$maildir" in
  1213. ! '') dflt=`./loc . /usr/spool/mail /usr/spool/mail /usr/mail`;;
  1214.   *) dflt="$maildir";;
  1215.   esac
  1216.   echo " "
  1217. --- 29,35 ----
  1218.   ?S:.
  1219.   : determine where mail is spooled
  1220.   case "$maildir" in
  1221. ! '') dflt=`./loc . /usr/spool/mail /usr/spool/mail /usr/mail /var/mail`;;
  1222.   *) dflt="$maildir";;
  1223.   esac
  1224.   echo " "
  1225.  
  1226. Index: Artistic
  1227. *** Artistic.old    Wed Dec 15 09:22:50 1993
  1228. --- Artistic    Wed Dec 15 09:22:50 1993
  1229. ***************
  1230. *** 105,111 ****
  1231.   Package.
  1232.   
  1233.   7. You may reuse parts of this Package in your own programs, provided that
  1234. ! you explicitly state where you got it from, in the source code (and, left
  1235.   to your courtesy, in the documentation), duplicating all the associated
  1236.   copyright notices and disclaimers. Besides your changes, if any, must be
  1237.   clearly marked as such. Parts reused that way will no longer fall under this
  1238. --- 105,111 ----
  1239.   Package.
  1240.   
  1241.   7. You may reuse parts of this Package in your own programs, provided that
  1242. ! you explicitly state where you got them from, in the source code (and, left
  1243.   to your courtesy, in the documentation), duplicating all the associated
  1244.   copyright notices and disclaimers. Besides your changes, if any, must be
  1245.   clearly marked as such. Parts reused that way will no longer fall under this
  1246.  
  1247. Index: README
  1248. *** README.old    Wed Dec 15 09:22:53 1993
  1249. --- README    Wed Dec 15 09:22:53 1993
  1250. ***************
  1251. *** 6,12 ****
  1252.   
  1253.   ------------------------------------------------------------------------
  1254.       This program is free software; you can redistribute it and/or modify
  1255. !     it under the terms of the Artistic Licence, a copy of which can be
  1256.       found with this package.
  1257.   
  1258.       This program is distributed in the hope that it will be useful,
  1259. --- 6,12 ----
  1260.   
  1261.   ------------------------------------------------------------------------
  1262.       This program is free software; you can redistribute it and/or modify
  1263. !     it under the terms of the Artistic License, a copy of which can be
  1264.       found with this package.
  1265.   
  1266.       This program is distributed in the hope that it will be useful,
  1267.  
  1268. *** End of Patch 15 ***
  1269.  
  1270. exit 0 # Just in case...
  1271.