lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Autoconf patch for S/390


From: pg
Subject: lynx-dev Autoconf patch for S/390
Date: Sun, 25 Oct 1998 22:59:30 -0700 (MST)

Hello, Lyncei,

Well, after the whining, I've assembled a patch to the autoconf files
for S/390.  I don't know whether the patch to configure.in should
more properly go in aclocal.m4, or even in autoconf itself, since
it's platform-related rather than program specific.

Macro NOT_ASCII is used a few places in the original WWW code, but
nowhere defined, to my knowledge, prior to this.  Of course,
NOT_ASCII begs the question of what the character set may be
other than ASCII, so I also provided EBCDIC.

Thanks,
gil

diff -brc ./orig/lynxsrc/config.guess ./lynxsrc/config.guess
*** ./orig/lynxsrc/config.guess Fri Jul 31 03:34:42 1998
--- ./lynxsrc/config.guess      Sun Oct 25 20:03:50 1998
***************
*** 298,303 ****
--- 298,310 ----
      i?86:AIX:*:*)
        echo i386-ibm-aix
        exit 0 ;;
+     *:MVS:*:* | *:OS390:*:*|*:OS/390:*:*)
+ # OS/390 support after:
+ #  Linkname: Mortice Kern Systems (MKS) Inc. - OS/390 OpenEdition -- GNU 
Utilities Downloads
+ #       URL: http://www.mks.com/s390/gnu/download.htm#autoconf
+                              # uname -m gives a processor model number  /* 
S/390 -- gil -- 1389 */
+       echo s390-ibm-os390    # on R1 and R2, uname -s reports OS390
+       exit 0 ;;              # on R3, uname -s reports OS/390
      *:AIX:2:3)
        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
                sed 's/^                //' << EOF >dummy.c
diff -brc ./orig/lynxsrc/config.hin ./lynxsrc/config.hin
*** ./orig/lynxsrc/config.hin   Wed Oct 14 06:23:56 1998
--- ./lynxsrc/config.hin        Sun Oct 25 20:02:34 1998
***************
*** 3,8 ****
--- 3,10 ----
  #define LYNX_CFG_H 1
  
  #undef ALT_CHAR_SET           /* CF_ALT_CHAR_SET */
+ #undef NOT_ASCII              /* CF_NOT_ASCII */
+ #undef EBCDIC                 /* CF_EBCDIC */
  #undef ARCHIVE_ONLY           /* CF_ARG_DISABLE(dired-archive) */
  #undef CHMOD_PATH             /* CF_PATH_PROG(chmod) */
  #undef COLOR_CURSES           /* defined by CF_COLOR_CURSES */
diff -brc ./orig/lynxsrc/config.sub ./lynxsrc/config.sub
*** ./orig/lynxsrc/config.sub   Fri Jul 31 03:34:42 1998
--- ./lynxsrc/config.sub        Sun Oct 25 20:04:34 1998
***************
*** 349,354 ****
--- 349,361 ----
                basic_machine=i370-ibm
                os=-mvs
                ;;
+       s390 | s390-ibm*)
+ # OS/390 support after:
+ #  Linkname: Mortice Kern Systems (MKS) Inc. - OS/390 OpenEdition -- GNU 
Utilities Downloads
+ #       URL: http://www.mks.com/s390/gnu/download.htm#autoconf
+               basic_machine=s390-ibm  #  /* S/390 -- gil -- 1419 */
+               os=-os390
+               ;;
  # I'm not sure what "Sysv32" means.  Should this be sysv3.2?
        i[34567]86v32)
                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
***************
*** 707,713 ****
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
              | -aos* \
!             | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* 
\
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
--- 714,721 ----
              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
              | -aos* \
!             | -nindy* | -vxsim* | -vxworks* | -ebmon* \
!             | -hms* | -mvs* | -os390* \
              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* 
\
              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
***************
*** 827,832 ****
--- 835,843 ----
        sparc-* | *-sun)
                os=-sunos4.1.1
                ;;
+       s390-ibm)
+               os=-os390  #  /* S/390 -- gil -- 1451 */
+               ;;
        *-ibm)
                os=-aix
                ;;
diff -brc ./orig/lynxsrc/configure.in ./lynxsrc/configure.in
*** ./orig/lynxsrc/configure.in Wed Oct 14 06:23:56 1998
--- ./lynxsrc/configure.in      Sun Oct 25 20:44:18 1998
***************
*** 417,422 ****
--- 417,448 ----
  CF_SYS_ERRLIST
  CF_UTMP
  
+ dnl 
---------------------------------------------------------------------------
+ dnl Check whether character set is EBCDIC.
+ AC_MSG_CHECKING(if character set is EBCDIC)
+ AC_CACHE_VAL(cf_cv_ebcdic,[
+       AC_TRY_COMPILE([ ],
+ [ /* TryCompile function for CharSet.
+    Treat any failure as ASCII for compatibility with existing art.
+    Use compile-time rather than run-time tests for cross-compiler
+    tolerance.  */
+ #if '0'!=240
+ #error "Character set is not EBCDIC"
+ #endif ],
+ [ # TryCompile action if true
+ cf_cv_ebcdic=yes ],
+ [ # TryCompile action if false
+ cf_cv_ebcdic=no])
+ # end of TryCompile ])
+ # end of CacheVal CvEbcdic
+ AC_MSG_RESULT($cf_cv_ebcdic)
+ case "$cf_cv_ebcdic" in
+     yes) AC_DEFINE(EBCDIC)
+          AC_DEFINE(NOT_ASCII);;
+     *)   ;;
+ esac
+ dnl 
---------------------------------------------------------------------------
+ 
  ### These tests must be run after establishing the curses library.
  if test $cf_cv_screen != slang ; then
        CF_ALT_CHAR_SET

reply via email to

[Prev in Thread] Current Thread [Next in Thread]