home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume44 / dist-3.0 / patch32 next >
Encoding:
Internet Message Format  |  1994-09-05  |  45.3 KB

  1. From: ram@acri.fr (Raphael Manfredi)
  2. Newsgroups: comp.sources.misc
  3. Subject: v44i046:  dist-3.0 - Configure script generator and related tools, Patch32
  4. Date: 5 Sep 1994 11:34:11 -0500
  5. Organization: Advanced Computer Research Institute, Lyon, France
  6. Sender: kent@sparky.sterling.com
  7. Approved: kent@sparky.sterling.com
  8. Message-ID: <34fha3$254@sparky.sterling.com>
  9. X-Md4-Signature: eaa8c058fbea5b77151e390fded6d88a
  10.  
  11. Submitted-by: ram@acri.fr (Raphael Manfredi)
  12. Posting-number: Volume 44, Issue 46
  13. Archive-name: dist-3.0/patch32
  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 #35.]
  18.  
  19. System: dist version 3.0
  20. Patch #: 32
  21. Priority: LOW
  22. Subject: now sets PATH only using existing directories
  23. Subject: avoid message sending if they said no previously
  24. Subject: created
  25. Subject: now uses installation prefix
  26. Subject: propagate -posix flag from ccflags to ldflags
  27. Subject: created by ADO
  28. Subject: now properly handles htonl() and friends when macros (ADO)
  29. Subject: always define HAS_PERROR even when not used in C code
  30. Subject: now uses new Typedef unit to compute type information
  31. Subject: forgot to set proper value in the val variable
  32. Subject: set default to 'y' the first time
  33. Subject: now sets signal_t only once d_voidsig is known (WED)
  34. Subject: removed useless usage of Setvar (for now)
  35. Subject: removed spurious echo
  36. Subject: fixed typo in I_SYS_DIR symbol name
  37. Subject: don't include all threee I_* symbols in config.h
  38. Subject: (had forgotten to undo this part last time)
  39. Subject: added lexflags variable for lex flags setting
  40. Subject: now uses installation prefix to set the default
  41. Subject: added I-type symbols for nm output parsing on Linux
  42. Subject: added /lib/pa1.1 for HP-UX specially tuned PA-RISC libs (ADO)
  43. Subject: fixed information message, making it clearer (ADO)
  44. Subject: now uses installation prefix for default setting
  45. Subject: use cc variable instead of hardwired 'cc' in 1st compile
  46. Subject: don't create spitshell under the UU directory
  47. Subject: allow for cat in /bin or /usr/bin
  48. Subject: documented new Typedef.U unit for typedef lookup
  49. Subject: 41 new files
  50. Subject: fixed typo: /etc/password -> /etc/passwd (WED)
  51. Date: Mon Aug 29 18:38:45 MET DST 1994
  52. From: Raphael Manfredi <ram@acri.fr>
  53.  
  54. Description:
  55.     This patches includes many fixes and contributions made by
  56.     Andy Dougherty <doughera@lafcol.lafayette.edu> for his Configure
  57.     support (added to the perl5 sources). It also includes other
  58.     random fixes sent to the dist-users list. If you sent some and
  59.     it is not included here, then I have forgotten about it... Please
  60.     remind me for next time :-)
  61.  
  62.     Everything being mostly self-explainatory, here are some quick
  63.     descriptions of the changes.
  64.  
  65.     Now sets PATH only using existing directories to avoid PATH
  66.     overflow on some small shells.
  67.  
  68.     MailAuthor.U now avoids message sending if they said no previously
  69.     and Configure -d is used... Without it, people would get subscribed
  70.     for automatic patch mailing without their explicit asking, which
  71.     could get annoying!
  72.  
  73.     Installation prefix is now asked, and the information is used to
  74.     compute some defaults for bin, libs, man pages, etc... Useful
  75.     for saying:
  76.         Configure -D prefix=/usr/local
  77.     Note that this may be overridden for each of the installation
  78.     directories, it is not a root prefix prepended to all the paths
  79.     you give to Configure!
  80.  
  81.     Propagate -posix flag from ccflags to ldflags.
  82.  
  83.     Now properly handles htonl() and friends when macros (ADO)
  84.  
  85.     Always define HAS_PERROR even when not used in C code.
  86.  
  87.     Now uses new Typedef unit to compute type information. This
  88.     simplifies code and helps factorization...
  89.  
  90.     Forgot to set proper value in the val variable with tzname[].
  91.  
  92.     Use vfork() by default now.
  93.  
  94.     Now sets signal_t only once d_voidsig is known (WED). This
  95.     avoids spurious Woa messages.
  96.  
  97.     Removed useless usage of Setvar (for now) all over the place.
  98.  
  99.     Random cleanup in units.
  100.  
  101.     Added lexflags variable for lex flags setting. Useful mostly
  102.     with flex...
  103.  
  104.     Added I-type symbols for nm output parsing on Linux.
  105.  
  106.     Added /lib/pa1.1 for HP-UX specially tuned PA-RISC libs (ADO) to
  107.     the library lookup path.
  108.  
  109.     Use cc variable instead of hardwired 'cc' in 1st compile for
  110.     archive ordering.
  111.  
  112.     Don't create spitshell under the UU directory and allow for cat
  113.     in /bin or /usr/bin when testing for #! support.
  114.  
  115.     Documented new Typedef.U unit for typedef lookup
  116.  
  117.     41 new files
  118.  
  119.  
  120. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your dist source
  121.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  122.     If you don't have the patch program, apply the following by hand,
  123.     or get patch (version 2.0, latest patchlevel).
  124.  
  125.     After patching:
  126.         *** DO NOTHING--INSTALL ALL PATCHES UP THROUGH #35 FIRST ***
  127.  
  128.     If patch indicates that patchlevel is the wrong version, you may need
  129.     to apply one or more previous patches, or the patch may already
  130.     have been applied.  See the patchlevel.h file to find out what has or
  131.     has not been applied.  In any event, don't continue with the patch.
  132.  
  133.     If you are missing previous patches they can be obtained from me:
  134.  
  135.         Raphael Manfredi <ram@acri.fr>
  136.  
  137.     If you send a mail message of the following form it will greatly speed
  138.     processing:
  139.  
  140.         Subject: Command
  141.         @SH mailpatch PATH dist 3.0 LIST
  142.                ^ note the c
  143.  
  144.     where PATH is a return path FROM ME TO YOU either in Internet notation,
  145.     or in bang notation from some well-known host, and LIST is the number
  146.     of one or more patches you need, separated by spaces, commas, and/or
  147.     hyphens.  Saying 35- says everything from 35 to the end.
  148.  
  149.     To get some more detailed instructions, send me the following mail:
  150.  
  151.         Subject: Command
  152.         @SH mailhelp PATH
  153.  
  154.  
  155. Index: patchlevel.h
  156. Prereq: 31
  157. 4c4
  158. < #define PATCHLEVEL 31
  159. ---
  160. > #define PATCHLEVEL 32
  161.  
  162. Index: MANIFEST
  163. *** MANIFEST.old    Mon Aug 29 18:38:42 1994
  164. --- MANIFEST    Mon Aug 29 18:38:43 1994
  165. ***************
  166. *** 107,112 ****
  167. --- 107,113 ----
  168.   mcon/U/Options.U           Configure option parsing
  169.   mcon/U/Rcs.U               Some stupid redefinitions to keep RCS happy
  170.   mcon/U/Setvar.U            Set a variable with some sanity checks
  171. + mcon/U/Typedef.U           Defines a typedef lookup function
  172.   mcon/U/Warn_v7EXT.U        V7 has some ideosyncracies
  173.   mcon/U/Warn_v7ND.U         V7 has no O_NDELAY read
  174.   mcon/U/Whoa.U              Warning function
  175. ***************
  176. *** 135,153 ****
  177. --- 136,163 ----
  178.   mcon/U/d_PORTAR.U          Do we know about portable archives?
  179.   mcon/U/d_SHM_MAC.U         SHMLBA macro stuff
  180.   mcon/U/d_access.U          Do we have access()?
  181. + mcon/U/d_alarm.U           Do we have alarm()?
  182.   mcon/U/d_bcmp.U            Do we have bcmp() or memcmp()?
  183.   mcon/U/d_bcopy.U           Do we have bcopy() or memcpy()?
  184.   mcon/U/d_bsdjmp.U          Do we have BSD _setjmp() and _longjmp()?
  185.   mcon/U/d_bzero.U           Do we have bzero() or memset()?
  186. + mcon/U/d_casti32.U         Can the compiler cast large flots to 32-bit ints?
  187.   mcon/U/d_castneg.U         Can the C compiler cast negative to unsigned?
  188.   mcon/U/d_cbrt.U            Do we have cubic root cbrt()?
  189.   mcon/U/d_charsprf.U        How is sprintf() defined?
  190. + mcon/U/d_chown.U           Do we have chown()?
  191. + mcon/U/d_chroot.U          Do we have chroot()?
  192.   mcon/U/d_chsize.U          Size of a char
  193.   mcon/U/d_ckeypad.U         Do we have the curses keypad()?
  194. + mcon/U/d_closedir.U        Do we have closedir()?
  195.   mcon/U/d_const.U           Can cc grok the const keyword?
  196.   mcon/U/d_crypt.U           Does crypt() exist?
  197.   mcon/U/d_csh.U             csh path
  198.   mcon/U/d_ctermid.U         Do we have ctermid()?
  199. + mcon/U/d_cuserid.U         Do we have cuserid()?
  200. + mcon/U/d_dbl_dig.U         Is DBL_DIG defined in <limits.h> or <float.h>?
  201. + mcon/U/d_difftime.U        Do we have difftime()?
  202. + mcon/U/d_dlopen.U          Do we have dlopen()?
  203.   mcon/U/d_dosuid.U          Do they want setuid emulation?
  204.   mcon/U/d_dup2.U            Do we have dup2()?
  205.   mcon/U/d_eofpipe.U         Will EOF be seen on closed pipes?
  206. ***************
  207. *** 160,165 ****
  208. --- 170,176 ----
  209.   mcon/U/d_fgetpos.U         Do we have fgetpos()?
  210.   mcon/U/d_flexfnam.U        Long filenames?
  211.   mcon/U/d_flock.U           Do we have flock()?
  212. + mcon/U/d_fork.U            Do we have fork()?
  213.   mcon/U/d_fsetpos.U         Do we have fsetpos()?
  214.   mcon/U/d_ftime.U           Do we have ftime()?
  215.   mcon/U/d_ftrncate.U        Do we have ftruncate()?
  216. ***************
  217. *** 168,190 ****
  218. --- 179,207 ----
  219.   mcon/U/d_gethent.U         Do we have gethostent()?
  220.   mcon/U/d_gethid.U          Do we have gethostid()?
  221.   mcon/U/d_gethname.U        What is the C function to get host name?
  222. + mcon/U/d_getlogin.U        Do we have getlogin()?
  223.   mcon/U/d_getopt.U          Do we have getopt()?
  224.   mcon/U/d_getpagsz.U        Computes system's page size
  225.   mcon/U/d_getpgrp.U         Do we have getpgrp()?
  226.   mcon/U/d_getpgrp2.U        Do we have getpgrp2()? (DG/UX)
  227. + mcon/U/d_getppid.U         Do we have getppid()?
  228.   mcon/U/d_getprior.U        Do we have getpriority()?
  229.   mcon/U/d_getpwent.U        How is passwd info gotten?
  230.   mcon/U/d_getwd.U           Do we have getwd()?
  231. + mcon/U/d_group.U           Do we have group()?
  232.   mcon/U/d_havetlib.U        Where is termlib?
  233.   mcon/U/d_hidnet.U          Do hiddennet stuff?
  234.   mcon/U/d_htonl.U           Do we have htonl() and friends?
  235.   mcon/U/d_inetd.U           Should internet communication be done via inetd?
  236.   mcon/U/d_internet.U        Use internet addresses?
  237. + mcon/U/d_isascii.U         Do we have isascii()?
  238.   mcon/U/d_itimer.U          Do we have setitimer()?
  239.   mcon/U/d_keepsig.U         Will signal handlers need to be rearmed?
  240.   mcon/U/d_killpg.U          Do we have killpg()?
  241.   mcon/U/d_link.U            Do we have link()?
  242. + mcon/U/d_lockf.U           Do we have lockf()?
  243.   mcon/U/d_lstat.U           Do we have lstat()?
  244. + mcon/U/d_mblen.U           Do we have mblen()?
  245.   mcon/U/d_mbstowcs.U        Do we have mbstowcs()?
  246.   mcon/U/d_mbtowc.U          Do we have mbtowc()?
  247.   mcon/U/d_memccpy.U         Do we have memccpy()?
  248. ***************
  249. *** 194,199 ****
  250. --- 211,217 ----
  251.   mcon/U/d_memmove.U         Do we have memmove()?
  252.   mcon/U/d_memset.U          Do we have memset()?
  253.   mcon/U/d_mkdir.U           Do we have mkdir()?
  254. + mcon/U/d_mktime.U          Do we have mktime()?
  255.   mcon/U/d_mmap.U            Do we have mmap()?
  256.   mcon/U/d_msg.U             Do we have full msg(2) support?
  257.   mcon/U/d_msgctl.U          Do we have msgctl()?
  258. ***************
  259. *** 203,219 ****
  260. --- 221,242 ----
  261.   mcon/U/d_msync.U           Do we have msync()?
  262.   mcon/U/d_munmap.U          Do we have munmap()?
  263.   mcon/U/d_newsadm.U         Who is news administrator?
  264. + mcon/U/d_nice.U            Do we have nice()?
  265.   mcon/U/d_nolnbuf.U         Is stdout line buffered?
  266.   mcon/U/d_normsig.U         signal() vs sigset()
  267.   mcon/U/d_open3.U           Do we have the 3 arguments form for open()?
  268. + mcon/U/d_passwd.U          Do we have passwd()?
  269. + mcon/U/d_pause.U           Do we have pause()?
  270.   mcon/U/d_perror.U          Do we have perror()?
  271.   mcon/U/d_pidcheck.U        Is kill(pid, 0) allowed for PID checks?
  272. + mcon/U/d_pipe.U            Do we have pipe()?
  273.   mcon/U/d_popen.U           Do we have popen()?
  274.   mcon/U/d_portable.U        How portable do we want to be?
  275.   mcon/U/d_psignal.U         Do we have psignal()?
  276.   mcon/U/d_raster.U          Is this a Raster Tech machine?
  277.   mcon/U/d_rdchk.U           Is rdchk() there to check for input?
  278.   mcon/U/d_readdir.U         Do we have readdir()?
  279. + mcon/U/d_readlink.U        Do we have readlink()?
  280.   mcon/U/d_regcmp.U          Do we have regcmp()?
  281.   mcon/U/d_rename.U          Do we have rename()?
  282.   mcon/U/d_rmdir.U           Do we have rmdir()?
  283. ***************
  284. *** 231,236 ****
  285. --- 254,260 ----
  286.   mcon/U/d_semop.U           Do we have semop()?
  287.   mcon/U/d_setegid.U         Do we have setegid()?
  288.   mcon/U/d_seteuid.U         Do we have seteuid()?
  289. + mcon/U/d_setlnbuf.U        Do we have setlinebuf()?
  290.   mcon/U/d_setlocale.U       Do we have setlocale()?
  291.   mcon/U/d_setpgid.U         Do we have setpgid()?
  292.   mcon/U/d_setpgrp.U         Do we have setpgrp()?
  293. ***************
  294. *** 260,265 ****
  295. --- 284,290 ----
  296.   mcon/U/d_stdstdio.U        How standard is stdio?
  297.   mcon/U/d_strccmp.U         Do we have strcasecmp()?
  298.   mcon/U/d_strchr.U          Use strchr() or index()?
  299. + mcon/U/d_strcoll.U         Do we have strcoll()?
  300.   mcon/U/d_strcspn.U         Do we have strcspn()?
  301.   mcon/U/d_strctcpy.U        Do we do struct copies?
  302.   mcon/U/d_strdup.U          Do we have strdup()?
  303. ***************
  304. *** 268,279 ****
  305. --- 293,307 ----
  306.   mcon/U/d_strstr.U          Do we have strtr()?
  307.   mcon/U/d_strtok.U          Do we have strtok()?
  308.   mcon/U/d_strtol.U          Do we have strtol()?
  309. + mcon/U/d_strxfrm.U         Do we have strxfrm()?
  310.   mcon/U/d_su_chown.U        Do we need to be root to do a chown?
  311.   mcon/U/d_symlink.U         Does symlink() exist?
  312.   mcon/U/d_syscall.U         Do we have syscall()?
  313.   mcon/U/d_syslog.U          Do we have syslog()?
  314.   mcon/U/d_system.U          Do we have system()?
  315.   mcon/U/d_table.U           De we have table()?
  316. + mcon/U/d_tcgtpgrp.U        Do we have tcgetpgrp()?
  317. + mcon/U/d_tcstpgrp.U        Do we have tcsetpgrp()?
  318.   mcon/U/d_time.U            Do we have time()?
  319.   mcon/U/d_times.U           Do we have a times() function?
  320.   mcon/U/d_tminsys.U         Is struct tm in <sys/time.h>?
  321. ***************
  322. *** 281,286 ****
  323. --- 309,315 ----
  324.   mcon/U/d_tzmin.U           Do we use tz_minuteswest?
  325.   mcon/U/d_tzname.U          Do we have tzname[]?
  326.   mcon/U/d_ulimit.U          Do we have ulimit()?
  327. + mcon/U/d_umask.U           Do we have umask()?
  328.   mcon/U/d_usendir.U         Use our own ndir routines?
  329.   mcon/U/d_usleep.U          Do we have usleep()?
  330.   mcon/U/d_uwait.U           Is there a 'union wait' declaration around here?
  331. ***************
  332. *** 292,297 ****
  333. --- 321,327 ----
  334.   mcon/U/d_wait4.U           Do we have wait4()?
  335.   mcon/U/d_waitpid.U         Do we have waitpid() system call?
  336.   mcon/U/d_wcstombs.U        Do we have wcstombs()?
  337. + mcon/U/d_wctomb.U          Do we have wctomb()?
  338.   mcon/U/d_xdrs.U            Do we have XDR serialization routines?
  339.   mcon/U/defeditor.U         Find default editor
  340.   mcon/U/doublesize.U        What is the size of "double"?
  341. ***************
  342. *** 306,318 ****
  343. --- 336,352 ----
  344.   mcon/U/h_fcntl.U           Do we need to include fcntl.h?
  345.   mcon/U/h_sysfile.U         Do we need to include sys/file.h?
  346.   mcon/U/i_arpainet.U        Shall we include <arpa/inet.h>?
  347. + mcon/U/i_db.U              Shall we include <db.h>?
  348.   mcon/U/i_dbm.U             Shall we include <dbm.h>?
  349.   mcon/U/i_dirent.U          Shall we include <dirent.h>
  350. + mcon/U/i_dlfcn.U           Shall we include <dlfcn.h>?
  351.   mcon/U/i_fcntl.U           Shall we include <fcntl.h>?
  352. + mcon/U/i_float.U           Shall we include <float.h>?
  353.   mcon/U/i_gdbm.U            Shall we include <gdbm.h>?
  354.   mcon/U/i_grp.U             Shall we include <grp.h>?
  355.   mcon/U/i_limits.U          Shall we include <limits.h>?
  356.   mcon/U/i_malloc.U          Shall we include <malloc.h>?
  357. + mcon/U/i_math.U            Shall we include <math.h>?
  358.   mcon/U/i_memory.U          Shall we include <memory.h>?
  359.   mcon/U/i_ndbm.U            Shall we include <ndbm.h>?
  360.   mcon/U/i_neterrno.U        Shall we include <net/errno.h>?
  361. ***************
  362. *** 326,331 ****
  363. --- 360,366 ----
  364.   mcon/U/i_sysioctl.U        Include <sys/ioctl.h> or <sgtty.h>?
  365.   mcon/U/i_sysmman.U         Do we have to include <sys/mman.h>?
  366.   mcon/U/i_sysndir.U         Shall we include <sys/ndir.h>?
  367. + mcon/U/i_sysparam.U        Shall we include <sys/param.h>?
  368.   mcon/U/i_sysresrc.U        Shall we include <sys/resource.h>?
  369.   mcon/U/i_sysselct.U        Shall we include <sys/select.h>?
  370.   mcon/U/i_syssock.U         Shall we include <sys/socket.h>?
  371. ***************
  372. *** 386,391 ****
  373. --- 421,427 ----
  374.   mcon/U/patchlevel.U        Grab current patchlevel out of patchlevel.h
  375.   mcon/U/perlpath.U          The full path of perl
  376.   mcon/U/pidtype.U           What is the type of a PID?
  377. + mcon/U/prefix.U            Installation prefix setting (none, /usr/local)
  378.   mcon/U/prefshell.U         Preferred user shell
  379.   mcon/U/privlib.U           Where is the private library?
  380.   mcon/U/prototype.U         Do we support prototypes?
  381. ***************
  382. *** 401,409 ****
  383. --- 437,447 ----
  384.   mcon/U/selecttype.U        What type for select() file bitfields?
  385.   mcon/U/shm_for.U           More shared memory stuff
  386.   mcon/U/sig_name.U          Signal names
  387. + mcon/U/sizetype.U          What is the type for byte size?
  388.   mcon/U/so.U                Shared object extension
  389.   mcon/U/sockopt.U           Check for socket options
  390.   mcon/U/spitshell.U         Shell comment stripper, maybe
  391. + mcon/U/ssizetype.U         What is the signed type for byte size?
  392.   mcon/U/startperl.U         Do we start perl with #! or what?
  393.   mcon/U/startsh.U           How to guarantee sh startup
  394.   mcon/U/stdchar.U           Are chars unsigned in stdio?
  395.  
  396. Index: mcon/U/Head.U
  397. Prereq: 3.0.1.4
  398. *** mcon/U/Head.U.old    Mon Aug 29 18:34:38 1994
  399. --- mcon/U/Head.U    Mon Aug 29 18:34:38 1994
  400. ***************
  401. *** 1,4 ****
  402. ! ?RCS: $Id: Head.U,v 3.0.1.4 1994/06/20 06:54:28 ram Exp $
  403.   ?RCS:
  404.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  405.   ?RCS: 
  406. --- 1,4 ----
  407. ! ?RCS: $Id: Head.U,v 3.0.1.5 1994/08/29 16:03:44 ram Exp $
  408.   ?RCS:
  409.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  410.   ?RCS: 
  411. ***************
  412. *** 9,14 ****
  413. --- 9,17 ----
  414.   ?RCS: of the source tree for dist 3.0.
  415.   ?RCS:
  416.   ?RCS: $Log: Head.U,v $
  417. + ?RCS: Revision 3.0.1.5  1994/08/29  16:03:44  ram
  418. + ?RCS: patch32: now sets PATH only using existing directories
  419. + ?RCS:
  420.   ?RCS: Revision 3.0.1.4  1994/06/20  06:54:28  ram
  421.   ?RCS: patch30: now computes its invocation name into 'me'
  422.   ?RCS: patch30: symbol me is made visible to all units read-only
  423. ***************
  424. *** 32,38 ****
  425.   ?MAKE:Head:
  426.   ?MAKE:    -pick wipe $@ %<
  427.   ?V:PATH me
  428. ! ?T:argv Id
  429.   #! /bin/sh
  430.   #
  431.   # If these # comments don't work, trim them. Don't worry about any other
  432. --- 35,41 ----
  433.   ?MAKE:Head:
  434.   ?MAKE:    -pick wipe $@ %<
  435.   ?V:PATH me
  436. ! ?T:argv Id p paths
  437.   #! /bin/sh
  438.   #
  439.   # If these # comments don't work, trim them. Don't worry about any other
  440. ***************
  441. *** 66,72 ****
  442.   ?X: by your version, not mine: It credits your work.
  443.   ?X:
  444.   
  445. ! # $Id: Head.U,v 3.0.1.4 1994/06/20 06:54:28 ram Exp $
  446.   #
  447.   # Generated on <DATE> [metaconfig <VERSION> PL<PATCHLEVEL>]
  448.   
  449. --- 69,75 ----
  450.   ?X: by your version, not mine: It credits your work.
  451.   ?X:
  452.   
  453. ! # $Id: Head.U,v 3.0.1.5 1994/08/29 16:03:44 ram Exp $
  454.   #
  455.   # Generated on <DATE> [metaconfig <VERSION> PL<PATCHLEVEL>]
  456.   
  457. ***************
  458. *** 113,127 ****
  459.   ?X: proper environment variable set, and some directories like /etc (where
  460.   ?X: chown is located on some BSD systems) may be missing--RAM.
  461.   ?X:
  462. ! : Sanity checks
  463. ! PATH=".:$PATH:/bin:/usr/bin:/usr/local/bin:/usr/ucb:/usr/local:/usr/lbin"
  464. ! PATH=$PATH:'/usr/5bin:/etc:/usr/gnu/bin:/usr/new:/usr/new/bin:/usr/nbin'
  465. ! PATH=$PATH:'/sys5.3/bin:/sys5.3/usr/bin:/bsd4.3/bin:/bsd4.3/usr/ucb'
  466. ! PATH=$PATH:'/bsd4.3/usr/bin:/usr/bsd:/bsd43/bin:/usr/ccs/bin'
  467. ! PATH=$PATH:'/etc:/usr/lib:/usr/ucblib:/lib:/usr/ccs/lib'
  468. ! PATH=$PATH:'/sbin:/usr/sbin:/usr/libexec'
  469.   export PATH
  470.   
  471.   if test ! -t 0; then
  472.       echo "Say 'sh $me', not 'sh <$me'"
  473.       exit 1
  474. --- 116,144 ----
  475.   ?X: proper environment variable set, and some directories like /etc (where
  476.   ?X: chown is located on some BSD systems) may be missing--RAM.
  477.   ?X:
  478. ! ?X: We only add directories that are not already in the PATH of the
  479. ! ?X: user and the directories must exist also. 
  480. ! : Proper PATH setting
  481. ! paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin'
  482. ! paths=$paths:'/usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin'
  483. ! paths=$paths:'/sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb'
  484. ! paths=$paths:'/bsd4.3/usr/bin /usr/bsd /bsd43/bin /usr/ccs/bin'
  485. ! paths=$paths:'/etc /usr/lib /usr/ucblib /lib /usr/ccs/lib'
  486. ! paths=$paths:'/sbin /usr/sbin /usr/libexec'
  487. ! for p in $paths
  488. ! do
  489. !     case ":$PATH:" in
  490. !     *:$p:*) ;;
  491. !     *) test -d $p && PATH=$PATH:$p ;;
  492. !     esac
  493. ! done
  494. ! PATH=.:$PATH
  495.   export PATH
  496.   
  497. + : Sanity checks
  498.   if test ! -t 0; then
  499.       echo "Say 'sh $me', not 'sh <$me'"
  500.       exit 1
  501.  
  502. Index: mcon/U/d_closedir.U
  503. *** mcon/U/d_closedir.U.old    Mon Aug 29 18:34:45 1994
  504. --- mcon/U/d_closedir.U    Mon Aug 29 18:34:45 1994
  505. ***************
  506. *** 0 ****
  507. --- 1,99 ----
  508. + ?RCS: $Id: d_closedir.U,v 3.0.1.1 1994/08/29 16:07:21 ram Exp $
  509. + ?RCS:
  510. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  511. + ?RCS: 
  512. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  513. + ?RCS: as specified in the README file that comes with the distribution.
  514. + ?RCS: You may reuse parts of this distribution only within the terms of
  515. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  516. + ?RCS: of the source tree for dist 3.0.
  517. + ?RCS:
  518. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  519. + ?RCS:
  520. + ?RCS: $Log: d_closedir.U,v $
  521. + ?RCS: Revision 3.0.1.1  1994/08/29  16:07:21  ram
  522. + ?RCS: patch32: created by ADO
  523. + ?RCS:
  524. + ?MAKE:d_closedir d_void_closedir: Inlibc i_dirent i_sysdir i_sysndir \
  525. +     cc ccflags libs Setvar
  526. + ?MAKE:    -pick add $@ %<
  527. + ?S:d_closedir:
  528. + ?S:    This variable conditionally defines HAS_CLOSEDIR if closedir() is
  529. + ?S:    available.
  530. + ?S:.
  531. + ?C:HAS_CLOSEDIR:
  532. + ?C:    This symbol, if defined, indicates that the closedir() routine is
  533. + ?C:    available.
  534. + ?C:.
  535. + ?H:#$d_closedir HAS_CLOSEDIR        /**/
  536. + ?H:.
  537. + ?S:d_void_closedir:
  538. + ?S:    This variable conditionally defines VOID_CLOSEDIR if closedir()
  539. + ?S:    does not return a value.
  540. + ?S:.
  541. + ?C:VOID_CLOSEDIR:
  542. + ?C:    This symbol, if defined, indicates that the closedir() routine
  543. + ?C:    does not return a value.
  544. + ?C:.
  545. + ?H:#$d_void_closedir VOID_CLOSEDIR        /**/
  546. + ?H:.
  547. + ?LINT:set d_closedir d_void_closedir
  548. + : see if closedir exists
  549. + set closedir d_closedir
  550. + eval $inlibc
  551. + @if VOID_CLOSEDIR || d_void_closedir
  552. + ?X: The following contortions are designed so we can call closedir()
  553. + ?X: and check whether it returns a value.  The contortions are designed
  554. + ?X:    to portably pick up the correct directory header, for those
  555. + ?X:    systems that support various mutually incompatible directory functions.
  556. + ?X:    This is from perl5's perl.h
  557. + case "$d_closedir" in
  558. + "$define")
  559. +     echo " "
  560. +     echo "Checking whether closedir() returns a status..." >&4
  561. +     cat > closedir.c <<EOM
  562. + #$i_dirent I_DIRENT        /**/
  563. + #$i_sysdir I_SYS_DIR        /**/
  564. + #$i_sysndir I_SYS_NDIR        /**/
  565. + #if defined(I_DIRENT)
  566. + #include <dirent.h>
  567. + #if defined(NeXT) && defined(I_SYS_DIR) /* NeXT needs dirent + sys/dir.h */
  568. + #include <sys/dir.h>
  569. + #endif
  570. + #else
  571. + #ifdef I_SYS_NDIR
  572. + #include <sys/ndir.h>
  573. + #else
  574. + #ifdef I_SYS_DIR
  575. + #ifdef hp9000s500
  576. + #include <ndir.h>    /* may be wrong in the future */
  577. + #else
  578. + #include <sys/dir.h>
  579. + #endif
  580. + #endif
  581. + #endif
  582. + #endif 
  583. + int main() { return closedir(opendir(".")); }
  584. + EOM
  585. +     if $cc $ccflags -o closedir closedir.c $libs > /dev/null 2>&1; then
  586. +         if ./closedir > /dev/null 2>&1 ; then
  587. +             echo "Yes, it does."
  588. +             val="$undef"
  589. +         else
  590. +             echo "No, it doesn't."
  591. +             val="$define"
  592. +         fi
  593. +     else
  594. +         echo "(I can't seem to compile the test program--assuming it doesn't)"
  595. +         val="$define"
  596. +     fi
  597. +     ;;
  598. + *)
  599. +     val="$undef";
  600. +     ;;
  601. + esac
  602. + set d_void_closedir
  603. + eval $setvar
  604. + @end
  605.  
  606. Index: mcon/U/d_times.U
  607. Prereq: 3.0
  608. *** mcon/U/d_times.U.old    Mon Aug 29 18:35:06 1994
  609. --- mcon/U/d_times.U    Mon Aug 29 18:35:07 1994
  610. ***************
  611. *** 1,4 ****
  612. ! ?RCS: $Id: d_times.U,v 3.0 1993/08/18 12:07:46 ram Exp $
  613.   ?RCS:
  614.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  615.   ?RCS: 
  616. --- 1,4 ----
  617. ! ?RCS: $Id: d_times.U,v 3.0.1.1 1994/08/29 16:14:00 ram Exp $
  618.   ?RCS:
  619.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  620.   ?RCS: 
  621. ***************
  622. *** 9,14 ****
  623. --- 9,17 ----
  624.   ?RCS: of the source tree for dist 3.0.
  625.   ?RCS:
  626.   ?RCS: $Log: d_times.U,v $
  627. + ?RCS: Revision 3.0.1.1  1994/08/29  16:14:00  ram
  628. + ?RCS: patch32: now uses new Typedef unit to compute type information
  629. + ?RCS:
  630.   ?RCS: Revision 3.0  1993/08/18  12:07:46  ram
  631.   ?RCS: Baseline for dist 3.0 netwide release.
  632.   ?RCS:
  633. ***************
  634. *** 17,23 ****
  635.   ?X:
  636.   ?X: Force inclusion of <sys/types.h>
  637.   ?X:INC: i_systypes
  638. ! ?MAKE:d_times clocktype: contains Csym Findhdr Myread
  639.   ?MAKE:    -pick add $@ %<
  640.   ?S:d_times:
  641.   ?S:    This variable conditionally defines the HAS_TIMES symbol, which indicates
  642. --- 20,26 ----
  643.   ?X:
  644.   ?X: Force inclusion of <sys/types.h>
  645.   ?X:INC: i_systypes
  646. ! ?MAKE:d_times clocktype: Csym Myread Typedef i_systimes
  647.   ?MAKE:    -pick add $@ %<
  648.   ?S:d_times:
  649.   ?S:    This variable conditionally defines the HAS_TIMES symbol, which indicates
  650. ***************
  651. *** 42,73 ****
  652.   ?H:#$d_times HAS_TIMES        /**/
  653.   ?H:#define Clock_t $clocktype    /* Clock time */
  654.   ?H:.
  655. ! ?T:val
  656.   : see if times exists
  657.   echo " "
  658.   if set times val -f d_times; eval $csym; $val; then
  659.       echo 'times() found.' >&4
  660.       d_times="$define"
  661. !     case "$clocktype" in
  662. !     '')
  663. !         if $contains 'clock_t;' `./findhdr sys/types.h` >/dev/null 2>&1 ; then
  664. !             dflt='clock_t';
  665. ! ?X: Silicon graphics machines don't define clock_t in sys/types.h.
  666. !         elif $contains 'clock_t;' `./findhdr sys/times.h` >/dev/null 2>&1; then
  667. !             dflt='clock_t';
  668. !         else
  669. !             dflt='long';
  670. !         fi
  671. !         ;;
  672. !     *)  dflt="$clocktype"
  673. !         ;;
  674.       esac
  675.       echo " "
  676.       rp="What type is returned by times() on this sytem?"
  677.       . ./myread
  678.       clocktype="$ans"
  679.   else
  680. !     echo 'times() not found, hope that will do.' >&4
  681.       d_times="$undef"
  682.   ?X: The following is needed for typedef (won't like an empty variable)
  683.       clocktype='int'
  684. --- 45,69 ----
  685.   ?H:#$d_times HAS_TIMES        /**/
  686.   ?H:#define Clock_t $clocktype    /* Clock time */
  687.   ?H:.
  688. ! ?T:val inc
  689.   : see if times exists
  690.   echo " "
  691.   if set times val -f d_times; eval $csym; $val; then
  692.       echo 'times() found.' >&4
  693.       d_times="$define"
  694. !     inc=''
  695. !     case "$i_systimes" in
  696. !     "$define") inc='sys/times.h';;
  697.       esac
  698. +     set clock_t clocktype long stdio.h sys/types.h $inc
  699. +     eval $typedef
  700. +     dflt="$clocktype"
  701.       echo " "
  702.       rp="What type is returned by times() on this sytem?"
  703.       . ./myread
  704.       clocktype="$ans"
  705.   else
  706. !     echo 'times() NOT found, hope that will do.' >&4
  707.       d_times="$undef"
  708.   ?X: The following is needed for typedef (won't like an empty variable)
  709.       clocktype='int'
  710.  
  711. Index: mcon/U/d_htonl.U
  712. Prereq: 3.0.1.1
  713. *** mcon/U/d_htonl.U.old    Mon Aug 29 18:34:52 1994
  714. --- mcon/U/d_htonl.U    Mon Aug 29 18:34:52 1994
  715. ***************
  716. *** 1,4 ****
  717. ! ?RCS: $Id: d_htonl.U,v 3.0.1.1 1994/05/06 14:45:00 ram Exp $
  718.   ?RCS:
  719.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  720.   ?RCS: 
  721. --- 1,4 ----
  722. ! ?RCS: $Id: d_htonl.U,v 3.0.1.2 1994/08/29 16:09:25 ram Exp $
  723.   ?RCS:
  724.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  725.   ?RCS: 
  726. ***************
  727. *** 9,21 ****
  728.   ?RCS: of the source tree for dist 3.0.
  729.   ?RCS:
  730.   ?RCS: $Log: d_htonl.U,v $
  731.   ?RCS: Revision 3.0.1.1  1994/05/06  14:45:00  ram
  732.   ?RCS: patch23: now also check for htonl() macro (ADO)
  733.   ?RCS:
  734.   ?RCS: Revision 3.0  1993/08/18  12:06:22  ram
  735.   ?RCS: Baseline for dist 3.0 netwide release.
  736.   ?RCS:
  737. ! ?MAKE:d_htonl: +cc +ccflags Inlibc i_niin i_sysin cat rm
  738.   ?MAKE:    -pick add $@ %<
  739.   ?S:d_htonl:
  740.   ?S:    This variable conditionally defines HAS_HTONL if htonl() and its
  741. --- 9,25 ----
  742.   ?RCS: of the source tree for dist 3.0.
  743.   ?RCS:
  744.   ?RCS: $Log: d_htonl.U,v $
  745. + ?RCS: Revision 3.0.1.2  1994/08/29  16:09:25  ram
  746. + ?RCS: patch32: now properly handles htonl() and friends when macros (ADO)
  747. + ?RCS:
  748.   ?RCS: Revision 3.0.1.1  1994/05/06  14:45:00  ram
  749.   ?RCS: patch23: now also check for htonl() macro (ADO)
  750.   ?RCS:
  751.   ?RCS: Revision 3.0  1993/08/18  12:06:22  ram
  752.   ?RCS: Baseline for dist 3.0 netwide release.
  753.   ?RCS:
  754. ! ?MAKE:d_htonl: Inlibc Setvar i_niin i_sysin cat rm contains \
  755. !     cppstdin cppflags cppminus
  756.   ?MAKE:    -pick add $@ %<
  757.   ?S:d_htonl:
  758.   ?S:    This variable conditionally defines HAS_HTONL if htonl() and its
  759. ***************
  760. *** 48,60 ****
  761.   ?H:.
  762.   ?LINT:set d_htonl
  763.   : see if htonl --and friends-- exists
  764. ! set htonl d_htonl
  765.   eval $inlibc
  766.   
  767.   : Maybe they are macros.
  768. ! case "$d_htonl" in
  769. ! $define) ;;
  770. ! *) $cat >try.c <<EOM
  771.   #include <stdio.h>
  772.   #include <sys/types.h>
  773.   #$i_niin I_NETINET_IN
  774. --- 52,65 ----
  775.   ?H:.
  776.   ?LINT:set d_htonl
  777.   : see if htonl --and friends-- exists
  778. ! val=''
  779. ! set htonl val
  780.   eval $inlibc
  781.   
  782.   : Maybe they are macros.
  783. ! case "$val" in
  784. ! $undef)
  785. !     $cat >htonl.c <<EOM
  786.   #include <stdio.h>
  787.   #include <sys/types.h>
  788.   #$i_niin I_NETINET_IN
  789. ***************
  790. *** 65,81 ****
  791.   #ifdef I_SYS_IN
  792.   #include <sys/in.h>
  793.   #endif
  794. ! int main()
  795. ! {
  796. !     int x;
  797. !     printf("x = ", htonl(7));
  798. ! }
  799.   EOM
  800. !     if $cc $ccflags -c try.c >/dev/null 2>&1; then
  801. !         d_htonl="$define"
  802.           echo "But it seems to be defined as a macro." >&4
  803.       fi
  804. !     $rm -f try.*
  805.       ;;
  806.   esac
  807.   
  808. --- 70,87 ----
  809.   #ifdef I_SYS_IN
  810.   #include <sys/in.h>
  811.   #endif
  812. ! #ifdef htonl
  813. ! printf("Defined as a macro.");
  814. ! #endif
  815.   EOM
  816. !     $cppstdin $cppflags $cppminus < htonl.c >htonl.E 2>/dev/null
  817. !     if $contains 'Defined as a macro' htonl.E >/dev/null 2>&1; then
  818. !         val="$define"
  819.           echo "But it seems to be defined as a macro." >&4
  820.       fi
  821. !     $rm -f htonl.?
  822.       ;;
  823.   esac
  824. + set d_htonl
  825. + eval $setvar
  826.   
  827.  
  828. Index: mcon/U/ssizetype.U
  829. *** mcon/U/ssizetype.U.old    Mon Aug 29 18:38:38 1994
  830. --- mcon/U/ssizetype.U    Mon Aug 29 18:38:38 1994
  831. ***************
  832. *** 0 ****
  833. --- 1,72 ----
  834. + ?RCS: $Id: ssizetype.U,v 3.0.1.1 1994/08/29 16:33:06 ram Exp $
  835. + ?RCS:
  836. + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  837. + ?RCS: 
  838. + ?RCS: You may redistribute only under the terms of the Artistic Licence,
  839. + ?RCS: as specified in the README file that comes with the distribution.
  840. + ?RCS: You may reuse parts of this distribution only within the terms of
  841. + ?RCS: that same Artistic Licence; a copy of which may be found at the root
  842. + ?RCS: of the source tree for dist 3.0.
  843. + ?RCS:
  844. + ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
  845. + ?RCS:
  846. + ?RCS: $Log: ssizetype.U,v $
  847. + ?RCS: Revision 3.0.1.1  1994/08/29  16:33:06  ram
  848. + ?RCS: patch32: created by ADO
  849. + ?RCS:
  850. + ?MAKE:ssizetype: Myread Typedef sizetype cat rm cc ccflags libs
  851. + ?MAKE:    -pick add $@ %<
  852. + ?S:ssizetype:
  853. + ?S:    This variable defines ssizetype to be something like ssize_t, 
  854. + ?S:    long or int.  It is used by functions that return a count 
  855. + ?S:    of bytes or an error condition.  It must be a signed type.
  856. + ?S:    We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
  857. + ?S:.
  858. + ?C:SSize_t:
  859. + ?C:    This symbol holds the type used by functions that return
  860. + ?C:    a count of bytes or an error condition.  It must be a signed type.
  861. + ?C:    It is usually ssize_t, but may be long or int, etc.
  862. + ?C:    It may be necessary to include <sys/types.h> or <unistd.h>
  863. + ?C:    to get any typedef'ed information.
  864. + ?C:    We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
  865. + ?C:.
  866. + ?H:#define SSize_t $ssizetype     /* signed count of bytes */
  867. + ?H:.
  868. + : see what type is used for signed size_t
  869. + set ssize_t ssizetype int stdio.h sys/types.h
  870. + eval $typedef
  871. + dflt="$ssizetype"
  872. + ?X: Now check out whether sizeof(SSize_t) == sizeof(Size_t)
  873. + $cat > ssize.c <<EOM
  874. + #include <stdio.h>
  875. + #include <sys/types.h>
  876. + #define Size_t $sizetype
  877. + #define SSize_t $dflt
  878. + main()
  879. + {
  880. +     if (sizeof(Size_t) == sizeof(SSize_t))
  881. +         printf("$dflt\n");
  882. +     else if (sizeof(Size_t) == sizeof(int))
  883. +         printf("int\n");
  884. +     else 
  885. +         printf("long\n");
  886. + }
  887. + EOM
  888. + echo " "
  889. + if $cc $ccflags -o ssize ssize.c $libs > /dev/null 2>&1 ; then
  890. +     ssizetype=`./ssize`
  891. +     echo "I'll be using $ssizetype for functions returning a byte count." >&4
  892. + else
  893. +     echo "(I can't compile the test program--please enlighten me!)"
  894. +     $cat <<EOM
  895. + I need a type that is the same size as $sizetype, but is guaranteed to
  896. + be signed.  Common values are int and long.
  897. + EOM
  898. +     rp="What signed type is the same size as $sizetype?"
  899. +     . ./myread
  900. +     ssizetype="$ans"
  901. + fi
  902. + $rm -f ssize ssize.[co]
  903.  
  904. Index: mcon/U/gidtype.U
  905. Prereq: 3.0.1.2
  906. *** mcon/U/gidtype.U.old    Mon Aug 29 18:35:11 1994
  907. --- mcon/U/gidtype.U    Mon Aug 29 18:35:11 1994
  908. ***************
  909. *** 1,4 ****
  910. ! ?RCS: $Id: gidtype.U,v 3.0.1.2 1994/05/13 15:21:07 ram Exp $
  911.   ?RCS:
  912.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  913.   ?RCS: 
  914. --- 1,4 ----
  915. ! ?RCS: $Id: gidtype.U,v 3.0.1.3 1994/08/29 16:21:44 ram Exp $
  916.   ?RCS:
  917.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  918.   ?RCS: 
  919. ***************
  920. *** 9,14 ****
  921. --- 9,18 ----
  922.   ?RCS: of the source tree for dist 3.0.
  923.   ?RCS:
  924.   ?RCS: $Log: gidtype.U,v $
  925. + ?RCS: Revision 3.0.1.3  1994/08/29  16:21:44  ram
  926. + ?RCS: patch32: now uses new Typedef unit to compute type information
  927. + ?RCS: patch32: removed useless usage of Setvar (for now)
  928. + ?RCS:
  929.   ?RCS: Revision 3.0.1.2  1994/05/13  15:21:07  ram
  930.   ?RCS: patch27: added lint hint
  931.   ?RCS:
  932. ***************
  933. *** 19,25 ****
  934.   ?RCS: Revision 3.0  1993/08/18  12:08:11  ram
  935.   ?RCS: Baseline for dist 3.0 netwide release.
  936.   ?RCS:
  937. ! ?MAKE:gidtype: Myread Oldconfig contains Findhdr Setvar
  938.   ?MAKE:    -pick add $@ %<
  939.   ?S:gidtype:
  940.   ?S:    This variable defines Gid_t to be something like gid_t, int,
  941. --- 23,29 ----
  942.   ?RCS: Revision 3.0  1993/08/18  12:08:11  ram
  943.   ?RCS: Baseline for dist 3.0 netwide release.
  944.   ?RCS:
  945. ! ?MAKE:gidtype: Myread Typedef Findhdr
  946.   ?MAKE:    -pick add $@ %<
  947.   ?S:gidtype:
  948.   ?S:    This variable defines Gid_t to be something like gid_t, int,
  949. ***************
  950. *** 36,62 ****
  951.   ?H:#define Gid_t $gidtype        /* Type for getgid(), etc... */
  952.   ?H:.
  953.   ?T:xxx
  954. - ?LINT:set gidtype
  955.   : see what type gids are declared as in the kernel
  956.   case "$gidtype" in
  957. ! '')
  958. !     if $contains 'gid_t;' `./findhdr sys/types.h` >/dev/null 2>&1 ; then
  959. !         dflt='gid_t';
  960. !     else
  961. !         xxx=`./findhdr sys/user.h`
  962. !         set `grep 'groups\[NGROUPS\];' "$xxx" 2>/dev/null` unsigned short
  963. !         case $1 in
  964. !         unsigned) dflt="$1 $2" ;;
  965. !         *) dflt="$1" ;;
  966. !         esac
  967. !     fi
  968.       ;;
  969. ! *)  dflt="$gidtype";;
  970.   esac
  971.   echo " "
  972.   rp="What is the type for group ids returned by getgid()?"
  973.   . ./myread
  974. ! val="$ans"
  975. ! set gidtype
  976. ! eval $setvar
  977.   
  978. --- 40,61 ----
  979.   ?H:#define Gid_t $gidtype        /* Type for getgid(), etc... */
  980.   ?H:.
  981.   ?T:xxx
  982.   : see what type gids are declared as in the kernel
  983. + set gid_t gidtype xxx stdio.h sys/types.h
  984. + eval $typedef
  985.   case "$gidtype" in
  986. ! xxx)
  987. !     xxx=`./findhdr sys/user.h`
  988. !     set `grep 'groups\[NGROUPS\];' "$xxx" 2>/dev/null` unsigned short
  989. !     case $1 in
  990. !     unsigned) dflt="$1 $2" ;;
  991. !     *) dflt="$1" ;;
  992. !     esac
  993.       ;;
  994. ! *) dflt="$gidtype";;
  995.   esac
  996.   echo " "
  997.   rp="What is the type for group ids returned by getgid()?"
  998.   . ./myread
  999. ! gidtype="$ans"
  1000.   
  1001.  
  1002. Index: mcon/U/uidtype.U
  1003. Prereq: 3.0.1.2
  1004. *** mcon/U/uidtype.U.old    Mon Aug 29 18:38:38 1994
  1005. --- mcon/U/uidtype.U    Mon Aug 29 18:38:39 1994
  1006. ***************
  1007. *** 1,4 ****
  1008. ! ?RCS: $Id: uidtype.U,v 3.0.1.2 1994/06/20 07:09:36 ram Exp $
  1009.   ?RCS:
  1010.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1011.   ?RCS: 
  1012. --- 1,4 ----
  1013. ! ?RCS: $Id: uidtype.U,v 3.0.1.3 1994/08/29 16:33:25 ram Exp $
  1014.   ?RCS:
  1015.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1016.   ?RCS: 
  1017. ***************
  1018. *** 9,14 ****
  1019. --- 9,17 ----
  1020.   ?RCS: of the source tree for dist 3.0.
  1021.   ?RCS:
  1022.   ?RCS: $Log: uidtype.U,v $
  1023. + ?RCS: Revision 3.0.1.3  1994/08/29  16:33:25  ram
  1024. + ?RCS: patch32: now uses new Typedef unit to compute type information
  1025. + ?RCS:
  1026.   ?RCS: Revision 3.0.1.2  1994/06/20  07:09:36  ram
  1027.   ?RCS: patch30: comment for uidtype referred to the obsoleted symbol
  1028.   ?RCS:
  1029. ***************
  1030. *** 19,25 ****
  1031.   ?RCS: Revision 3.0  1993/08/18  12:09:56  ram
  1032.   ?RCS: Baseline for dist 3.0 netwide release.
  1033.   ?RCS:
  1034. ! ?MAKE:uidtype: Myread Oldconfig contains Findhdr Setvar
  1035.   ?MAKE:    -pick add $@ %<
  1036.   ?S:uidtype:
  1037.   ?S:    This variable defines Uid_t to be something like uid_t, int, 
  1038. --- 22,28 ----
  1039.   ?RCS: Revision 3.0  1993/08/18  12:09:56  ram
  1040.   ?RCS: Baseline for dist 3.0 netwide release.
  1041.   ?RCS:
  1042. ! ?MAKE:uidtype: Myread Typedef Findhdr
  1043.   ?MAKE:    -pick add $@ %<
  1044.   ?S:uidtype:
  1045.   ?S:    This variable defines Uid_t to be something like uid_t, int, 
  1046. ***************
  1047. *** 33,59 ****
  1048.   ?H:#define Uid_t $uidtype        /* UID type */
  1049.   ?H:.
  1050.   ?T:xxx
  1051. - ?LINT:set uidtype
  1052.   : see what type uids are declared as in the kernel
  1053.   case "$uidtype" in
  1054. ! '')
  1055. !     if $contains 'uid_t;' `./findhdr sys/types.h` >/dev/null 2>&1 ; then
  1056. !         dflt='uid_t';
  1057. !     else
  1058. !         xxx=`./findhdr sys/user.h`
  1059. !         set `grep '_ruid;' "$xxx" 2>/dev/null` unsigned short
  1060. !         case $1 in
  1061. !         unsigned) dflt="$1 $2" ;;
  1062. !         *) dflt="$1" ;;
  1063. !         esac
  1064. !     fi
  1065.       ;;
  1066. ! *)  dflt="$uidtype";;
  1067.   esac
  1068.   echo " "
  1069.   rp="What is the type for user ids returned by getuid()?"
  1070.   . ./myread
  1071. ! val="$ans"
  1072. ! set uidtype
  1073. ! eval $setvar
  1074.   
  1075. --- 36,57 ----
  1076.   ?H:#define Uid_t $uidtype        /* UID type */
  1077.   ?H:.
  1078.   ?T:xxx
  1079.   : see what type uids are declared as in the kernel
  1080. + set uid_t uidtype xxx stdio.h sys/types.h
  1081. + eval $typedef
  1082.   case "$uidtype" in
  1083. ! xxx)
  1084. !     xxx=`./findhdr sys/user.h`
  1085. !     set `grep '_ruid;' "$xxx" 2>/dev/null` unsigned short
  1086. !     case $1 in
  1087. !     unsigned) dflt="$1 $2" ;;
  1088. !     *) dflt="$1" ;;
  1089. !     esac
  1090.       ;;
  1091. ! *) dflt="$uidtype";;
  1092.   esac
  1093.   echo " "
  1094.   rp="What is the type for user ids returned by getuid()?"
  1095.   . ./myread
  1096. ! uidtype="$ans"
  1097.   
  1098.  
  1099. Index: mcon/U/manfmt.U
  1100. Prereq: 3.0.1.1
  1101. *** mcon/U/manfmt.U.old    Mon Aug 29 18:35:22 1994
  1102. --- mcon/U/manfmt.U    Mon Aug 29 18:35:22 1994
  1103. ***************
  1104. *** 1,4 ****
  1105. ! ?RCS: $Id: manfmt.U,v 3.0.1.1 1993/09/13 16:09:22 ram Exp $
  1106.   ?RCS:
  1107.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1108.   ?RCS: 
  1109. --- 1,4 ----
  1110. ! ?RCS: $Id: manfmt.U,v 3.0.1.2 1994/08/29 16:30:31 ram Exp $
  1111.   ?RCS:
  1112.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1113.   ?RCS: 
  1114. ***************
  1115. *** 9,21 ****
  1116.   ?RCS: of the source tree for dist 3.0.
  1117.   ?RCS:
  1118.   ?RCS: $Log: manfmt.U,v $
  1119.   ?RCS: Revision 3.0.1.1  1993/09/13  16:09:22  ram
  1120.   ?RCS: patch10: allows for L1 man page extension (WAD)
  1121.   ?RCS:
  1122.   ?RCS: Revision 3.0  1993/08/18  12:09:13  ram
  1123.   ?RCS: Baseline for dist 3.0 netwide release.
  1124.   ?RCS:
  1125. ! ?MAKE:manfmt manfmtexp: Getfile Loc Oldconfig cat manext package
  1126.   ?MAKE:    -pick add $@ %<
  1127.   ?S:manfmt:
  1128.   ?S:    This variable contains the name of the directory in which formatted
  1129. --- 9,24 ----
  1130.   ?RCS: of the source tree for dist 3.0.
  1131.   ?RCS:
  1132.   ?RCS: $Log: manfmt.U,v $
  1133. + ?RCS: Revision 3.0.1.2  1994/08/29  16:30:31  ram
  1134. + ?RCS: patch32: now uses installation prefix for default setting
  1135. + ?RCS:
  1136.   ?RCS: Revision 3.0.1.1  1993/09/13  16:09:22  ram
  1137.   ?RCS: patch10: allows for L1 man page extension (WAD)
  1138.   ?RCS:
  1139.   ?RCS: Revision 3.0  1993/08/18  12:09:13  ram
  1140.   ?RCS: Baseline for dist 3.0 netwide release.
  1141.   ?RCS:
  1142. ! ?MAKE:manfmt manfmtexp: Getfile Loc Oldconfig cat manext package prefix
  1143.   ?MAKE:    -pick add $@ %<
  1144.   ?S:manfmt:
  1145.   ?S:    This variable contains the name of the directory in which formatted
  1146. ***************
  1147. *** 29,34 ****
  1148. --- 32,38 ----
  1149.   ?S:    run-time.
  1150.   ?S:.
  1151.   ?LINT:change manext
  1152. + ?T:lookpath
  1153.   : determine where manual pages go
  1154.   $cat <<EOM
  1155.     
  1156. ***************
  1157. *** 38,44 ****
  1158.   EOM
  1159.   case "$manfmt" in
  1160.   '')
  1161. !     dflt=`./loc . none /usr/catman/local/man1 /usr/catman/manl /usr/catman/mann /usr/catman/u_man/man1 /usr/catman/man1`
  1162.       ;;
  1163.   *)  dflt="$manfmt"
  1164.       ;;
  1165. --- 42,54 ----
  1166.   EOM
  1167.   case "$manfmt" in
  1168.   '')
  1169. !     lookpath="$prefix/catman/man1 $prefix/man/cat1"
  1170. !     lookpath="$lookpath $prefix/catman/u_man/man1 $prefix/catman/l_man/man1"
  1171. !     lookpath="$lookpath $prefix/catman/cat1 /usr/catman/local/man1"
  1172. !     lookpath="$lookpath /usr/catman/manl /usr/man/cat1"
  1173. !     lookpath="$lookpath /usr/catman/mann /usr/catman/l_man/man1"
  1174. !     lookpath="$lookpath /usr/catman/u_man/man1 /usr/catman/man1"
  1175. !     dflt=`./loc . none $lookpath`
  1176.       ;;
  1177.   *)  dflt="$manfmt"
  1178.       ;;
  1179.  
  1180. Index: mcon/U/mansrc.U
  1181. Prereq: 3.0.1.3
  1182. *** mcon/U/mansrc.U.old    Mon Aug 29 18:35:22 1994
  1183. --- mcon/U/mansrc.U    Mon Aug 29 18:35:23 1994
  1184. ***************
  1185. *** 1,4 ****
  1186. ! ?RCS: $Id: mansrc.U,v 3.0.1.3 1994/05/06 15:11:10 ram Exp $
  1187.   ?RCS:
  1188.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1189.   ?RCS: 
  1190. --- 1,4 ----
  1191. ! ?RCS: $Id: mansrc.U,v 3.0.1.4 1994/08/29 16:30:38 ram Exp $
  1192.   ?RCS:
  1193.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1194.   ?RCS: 
  1195. ***************
  1196. *** 9,14 ****
  1197. --- 9,17 ----
  1198.   ?RCS: of the source tree for dist 3.0.
  1199.   ?RCS:
  1200.   ?RCS: $Log: mansrc.U,v $
  1201. + ?RCS: Revision 3.0.1.4  1994/08/29  16:30:38  ram
  1202. + ?RCS: patch32: now uses installation prefix for default setting
  1203. + ?RCS:
  1204.   ?RCS: Revision 3.0.1.3  1994/05/06  15:11:10  ram
  1205.   ?RCS: patch23: added lint hint, assuring that nroff is used
  1206.   ?RCS:
  1207. ***************
  1208. *** 22,28 ****
  1209.   ?RCS: Baseline for dist 3.0 netwide release.
  1210.   ?RCS:
  1211.   ?MAKE:mansrc mansrcexp manext installmansrc: afs cat nroff Loc Oldconfig \
  1212. !     sysman package test Getfile
  1213.   ?MAKE:    -pick add $@ %<
  1214.   ?S:mansrc:
  1215.   ?S:    This variable contains the name of the directory in which manual
  1216. --- 25,31 ----
  1217.   ?RCS: Baseline for dist 3.0 netwide release.
  1218.   ?RCS:
  1219.   ?MAKE:mansrc mansrcexp manext installmansrc: afs cat nroff Loc Oldconfig \
  1220. !     sysman package test Getfile prefix
  1221.   ?MAKE:    -pick add $@ %<
  1222.   ?S:mansrc:
  1223.   ?S:    This variable contains the name of the directory in which manual
  1224. ***************
  1225. *** 63,73 ****
  1226.   echo "If you don't want the manual sources installed, answer 'none'."
  1227.   case "$mansrc" in
  1228.   '')
  1229. !     lookpath='/usr/local/man/man1 /usr/local/man/man1 /usr/man/manl'
  1230.       lookpath="$lookpath /usr/man/local/man1 /usr/man/l_man/man1"
  1231.       lookpath="$lookpath /usr/local/man/u_man/man1 /usr/local/man/l_man/man1"
  1232.       lookpath="$lookpath /usr/man/man.L"
  1233. !     mansrc=`./loc . $lookpath`
  1234.       if $test -d "$mansrc"; then
  1235.           dflt="$mansrc"
  1236.       else
  1237. --- 66,77 ----
  1238.   echo "If you don't want the manual sources installed, answer 'none'."
  1239.   case "$mansrc" in
  1240.   '')
  1241. !     lookpath="$prefix/man/man1 $prefix/man/u_man/man1 $prefix/man/l_man/man1"
  1242. !     lookpath="$lookpath /usr/local/man/man1 /usr/local/man/man1 /usr/man/manl"
  1243.       lookpath="$lookpath /usr/man/local/man1 /usr/man/l_man/man1"
  1244.       lookpath="$lookpath /usr/local/man/u_man/man1 /usr/local/man/l_man/man1"
  1245.       lookpath="$lookpath /usr/man/man.L"
  1246. !     mansrc=`./loc . $prefix/man/man1 $lookpath`
  1247.       if $test -d "$mansrc"; then
  1248.           dflt="$mansrc"
  1249.       else
  1250.  
  1251. Index: mcon/U/libpth.U
  1252. Prereq: 3.0.1.3
  1253. *** mcon/U/libpth.U.old    Mon Aug 29 18:35:20 1994
  1254. --- mcon/U/libpth.U    Mon Aug 29 18:35:21 1994
  1255. ***************
  1256. *** 1,4 ****
  1257. ! ?RCS: $Id: libpth.U,v 3.0.1.3 1994/06/20 07:03:54 ram Exp $
  1258.   ?RCS:
  1259.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1260.   ?RCS: 
  1261. --- 1,4 ----
  1262. ! ?RCS: $Id: libpth.U,v 3.0.1.4 1994/08/29 16:29:15 ram Exp $
  1263.   ?RCS:
  1264.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1265.   ?RCS: 
  1266. ***************
  1267. *** 9,14 ****
  1268. --- 9,18 ----
  1269.   ?RCS: of the source tree for dist 3.0.
  1270.   ?RCS:
  1271.   ?RCS: $Log: libpth.U,v $
  1272. + ?RCS: Revision 3.0.1.4  1994/08/29  16:29:15  ram
  1273. + ?RCS: patch32: added /lib/pa1.1 for HP-UX specially tuned PA-RISC libs (ADO)
  1274. + ?RCS: patch32: fixed information message, making it clearer (ADO)
  1275. + ?RCS:
  1276.   ?RCS: Revision 3.0.1.3  1994/06/20  07:03:54  ram
  1277.   ?RCS: patch30: added /usr/shlib to glibpth for shared-only libraries
  1278.   ?RCS:
  1279. ***************
  1280. *** 40,47 ****
  1281.   ?INIT:xlibpth='/usr/lib/386 /lib/386'
  1282.   ?INIT:
  1283.   ?INIT:: general looking path for locating libraries
  1284. ! ?INIT:glibpth="/usr/lib/large /lib /usr/lib $xlibpth /lib/large"
  1285. ! ?INIT:glibpth="$glibpth /usr/lib/small /lib/small"
  1286.   ?INIT:glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib /usr/shlib"
  1287.   ?INIT:
  1288.   ?INIT:: Private path used by Configure to find libraries.  Its value
  1289. --- 44,52 ----
  1290.   ?INIT:xlibpth='/usr/lib/386 /lib/386'
  1291.   ?INIT:
  1292.   ?INIT:: general looking path for locating libraries
  1293. ! ?X: /lib/pa1.1 is for HP-UX specially tuned PA-RISC libraries.
  1294. ! ?INIT:glibpth="/lib/pa1.1 /usr/lib/large /lib /usr/lib $xlibpth"
  1295. ! ?INIT:glibpth="$glibpth /lib/large /usr/lib/small /lib/small"
  1296.   ?INIT:glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib /usr/shlib"
  1297.   ?INIT:
  1298.   ?INIT:: Private path used by Configure to find libraries.  Its value
  1299. ***************
  1300. *** 78,85 ****
  1301.   $cat <<'EOM'
  1302.   
  1303.   Some systems have incompatible or broken versions of libraries.  Among
  1304. ! the directories listed in the question below, please remove the one
  1305. ! you know not to be holding relevant libraries.  Say "none" for none.
  1306.   
  1307.   EOM
  1308.   case "$libpth" in
  1309. --- 83,91 ----
  1310.   $cat <<'EOM'
  1311.   
  1312.   Some systems have incompatible or broken versions of libraries.  Among
  1313. ! the directories listed in the question below, please remove any you
  1314. ! know not to be holding relevant libraries, and add any that are needed.
  1315. ! Say "none" for none.
  1316.   
  1317.   EOM
  1318.   case "$libpth" in
  1319.  
  1320. Index: mcon/U/lex.U
  1321. Prereq: 3.0.1.1
  1322. *** mcon/U/lex.U.old    Mon Aug 29 18:35:18 1994
  1323. --- mcon/U/lex.U    Mon Aug 29 18:35:18 1994
  1324. ***************
  1325. *** 1,4 ****
  1326. ! ?RCS: $Id: lex.U,v 3.0.1.1 1994/05/06 15:06:01 ram Exp $
  1327.   ?RCS:
  1328.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1329.   ?RCS: 
  1330. --- 1,4 ----
  1331. ! ?RCS: $Id: lex.U,v 3.0.1.2 1994/08/29 16:27:09 ram Exp $
  1332.   ?RCS:
  1333.   ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
  1334.   ?RCS: 
  1335. ***************
  1336. *** 11,28 ****
  1337.   ?RCS: Orginal Author: Graham Stoney <greyham@research.canon.oz.au>
  1338.   ?RCS:
  1339.   ?RCS: $Log: lex.U,v $
  1340.   ?RCS: Revision 3.0.1.1  1994/05/06  15:06:01  ram
  1341.   ?RCS: patch23: added trailing blank line for metalint
  1342.   ?RCS:
  1343.   ?RCS: Revision 3.0  1993/08/18  12:08:55  ram
  1344.   ?RCS: Baseline for dist 3.0 netwide release.
  1345.   ?RCS:
  1346. ! ?MAKE:lex: Guess Myread Oldconfig flex test
  1347.   ?MAKE:    -pick add $@ %<
  1348.   ?S:lex:
  1349.   ?S:    This variable holds the name of the lexical analyser generator we
  1350.   ?S:    want to use in the Makefile. It can be lex or flex.
  1351.   ?S:.
  1352.   : determine lexical analyser generator
  1353.   case "$lex" in
  1354.   '')
  1355. --- 11,35 ----
  1356.   ?RCS: Orginal Author: Graham Stoney <greyham@research.canon.oz.au>
  1357.   ?RCS:
  1358.   ?RCS: $Log: lex.U,v $
  1359. + ?RCS: Revision 3.0.1.2  1994/08/29  16:27:09  ram
  1360. + ?RCS: patch32: added lexflags variable for lex flags setting
  1361. + ?RCS:
  1362.   ?RCS: Revision 3.0.1.1  1994/05/06  15:06:01  ram
  1363.   ?RCS: patch23: added trailing blank line for metalint
  1364.   ?RCS:
  1365.   ?RCS: Revision 3.0  1993/08/18  12:08:55  ram
  1366.   ?RCS: Baseline for dist 3.0 netwide release.
  1367.   ?RCS:
  1368. ! ?MAKE:lex lexflags: Guess Myread Oldconfig flex test
  1369.   ?MAKE:    -pick add $@ %<
  1370.   ?S:lex:
  1371.   ?S:    This variable holds the name of the lexical analyser generator we
  1372.   ?S:    want to use in the Makefile. It can be lex or flex.
  1373.   ?S:.
  1374. + ?S:lexflags:
  1375. + ?S:    This variable holds any flags that should be passed to the lexical
  1376. + ?S:    analyzer.  It is up to the Makefile to use it.
  1377. + ?S:.
  1378.   : determine lexical analyser generator
  1379.   case "$lex" in
  1380.   '')
  1381. ***************
  1382. *** 39,41 ****
  1383. --- 46,62 ----
  1384.   . ./myread
  1385.   lex="$ans"
  1386.   
  1387. + @if lexflags
  1388. + : if using lex this'll normally be useless, but flex frequently takes args
  1389. + echo " "
  1390. + case "$lexflags" in
  1391. + '') dflt='none';;
  1392. + *) dflt="$lexflags";;
  1393. + esac
  1394. + rp="What flags should be given to $lex?"
  1395. + . ./myread
  1396. + case "$ans" in
  1397. + none) lexflags='';;
  1398. + *) lexflags="$ans";;
  1399. + esac
  1400. + @end
  1401.  
  1402. *** End of Patch 32 ***
  1403.  
  1404. exit 0 # Just in case...
  1405.