You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ab...@locus.apache.org on 2000/02/02 00:43:03 UTC

cvs commit: xml-xerces/c/src runConfigure

abagchi     00/02/01 15:43:03

  Modified:    c/src    runConfigure
  Log:
  AS/400 related change
  
  Revision  Changes    Path
  1.15      +68 -52    xml-xerces/c/src/runConfigure
  
  Index: runConfigure
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/runConfigure,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- runConfigure	2000/01/20 18:37:42	1.14
  +++ runConfigure	2000/02/01 23:43:03	1.15
  @@ -3,38 +3,38 @@
   
   #
   # The Apache Software License, Version 1.1
  -# 
  -# Copyright (c) 1999 The Apache Software Foundation.  All rights 
  +#
  +# Copyright (c) 1999 The Apache Software Foundation.  All rights
   # reserved.
  -# 
  +#
   # Redistribution and use in source and binary forms, with or without
   # modification, are permitted provided that the following conditions
   # are met:
  -# 
  +#
   # 1. Redistributions of source code must retain the above copyright
  -#    notice, this list of conditions and the following disclaimer. 
  -# 
  +#    notice, this list of conditions and the following disclaimer.
  +#
   # 2. Redistributions in binary form must reproduce the above copyright
   #    notice, this list of conditions and the following disclaimer in
   #    the documentation and/or other materials provided with the
   #    distribution.
  -# 
  +#
   # 3. The end-user documentation included with the redistribution,
  -#    if any, must include the following acknowledgment:  
  +#    if any, must include the following acknowledgment:
   #       "This product includes software developed by the
   #        Apache Software Foundation (http://www.apache.org/)."
   #    Alternately, this acknowledgment may appear in the software itself,
   #    if and wherever such third-party acknowledgments normally appear.
  -# 
  +#
   # 4. The names "Xerces" and "Apache Software Foundation" must
   #    not be used to endorse or promote products derived from this
  -#    software without prior written permission. For written 
  +#    software without prior written permission. For written
   #    permission, please contact apache\@apache.org.
  -# 
  +#
   # 5. Products derived from this software may not be called "Apache",
   #    nor may "Apache" appear in their name, without prior written
   #    permission of the Apache Software Foundation.
  -# 
  +#
   # THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  @@ -48,16 +48,19 @@
   # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   # SUCH DAMAGE.
   # ====================================================================
  -# 
  +#
   # This software consists of voluntary contributions made by many
   # individuals on behalf of the Apache Software Foundation, and was
   # originally based on software copyright (c) 1999, International
   # Business Machines, Inc., http://www.ibm.com .  For more information
   # on the Apache Software Foundation, please see
   # <http://www.apache.org/>.
  -# 
  +#
   #
   # $Log: runConfigure,v $
  +# Revision 1.15  2000/02/01 23:43:03  abagchi
  +# AS/400 related change
  +#
   # Revision 1.14  2000/01/20 18:37:42  aruna1
   # Added compatible thread libray for AIX
   #
  @@ -167,13 +170,13 @@
       echo "runConfigure: Helper script to run \"configure\" for one of the supported platforms"
       echo "Usage: runConfigure \"options\""
       echo "       where options may be any of the following:"
  -    echo "       -p <platform> (accepts 'aix', 'linux', 'solaris', 'hp-10', 'hp-11', 'irix', 'unixware')"
  -    echo "       -c <C compiler name> (e.g. gcc, cc, xlc)"
  -    echo "       -x <C++ compiler name> (e.g. g++, CC, xlC)"
  +    echo "       -p <platform> (accepts 'aix', 'linux', 'solaris', 'hp-10', 'hp-11', 'unixware', 'os400' )"
  +    echo "       -c <C compiler name> (e.g. gcc, cc, xlc, icc)"
  +    echo "       -x <C++ compiler name> (e.g. g++, CC, xlC, icc)"
       echo "       -d (specifies that you want to build debug version)"
  -    echo "       -m <message loader> can be 'inmem', 'icu', 'iconv'"
  +    echo "       -m <message loader> can be 'inmem', 'icu', 'MsgFile' or 'iconv'"
       echo "       -n <net accessor> can be 'fileonly', 'libwww'"
  -    echo "       -t <transcoder> can be 'icu' or 'native'"
  +    echo "       -t <transcoder> can be 'icu', 'Iconv400' or 'native'"
       echo "       -r <thread option> can be 'pthread' or 'dce' (only used on HP-11)"
       echo "       -l <extra linker options>"
       echo "       -z <extra compiler options>"
  @@ -203,7 +206,11 @@
   fi
   
   # Get the command line parameters
  +if test -e /usr/bin/getopt; then
   set -- `getopt p:c:x:dm:n:t:r:l:z:h $*`
  +else
  +set -- `getopts p:c:x:dm:n:t:r:l:z:h `$*``
  +fi
   if [ $? != 0 ]
      then
      usage
  @@ -219,42 +226,42 @@
   for i in $*
      do
      case $i in
  -   -p) 
  +   -p)
           platform=$2; shift 2;;
  -   
  -   -c) 
  +
  +   -c)
           ccompiler=$2; shift 2;;
  -   
  -   -x) 
  +
  +   -x)
           cppcompiler=$2; shift 2;;
  -   
  -   -d) 
  +
  +   -d)
           debug=on; shift;;
  -   
  -   -m) 
  +
  +   -m)
           msgloader=$2; shift 2;;
  -   
  -   -n) 
  +
  +   -n)
           netaccessor=$2; shift 2;;
  -   
  -   -t) 
  +
  +   -t)
           transcoder=$2; shift 2;;
  -   
  -   -r) 
  +
  +   -r)
           thread=$2; shift 2;;
  -   
  -   -l) 
  +
  +   -l)
           linkeroption=$2; shift 2;;
  -   
  -   -z) 
  +
  +   -z)
           compileroption=$2; shift 2;;
  -   
  -   -h) 
  +
  +   -h)
           usage
  -        exit ${ERROR_EXIT_CODE};; 
  -   
  -   --) 
  -        shift; break;; 
  +        exit ${ERROR_EXIT_CODE};;
  +
  +   --)
  +        shift; break;;
      esac
   done
   
  @@ -275,7 +282,7 @@
   #
   
   case $platform in
  -   aix | linux | solaris | hp-10 | hp-11 | irix | unixware)
  +   aix | linux | solaris | hp-10 | hp-11 | irix | unixware | os400)
          # platform has been recognized
          ;;
      *)
  @@ -308,11 +315,11 @@
       case $thread in
          pthread)
              ;;
  -    
  +
          dce)
              threadingLibs="-lcma";
              threadingDefines="-D_PTHREADS_DRAFT4 -DXML_USE_DCE" ;;
  -    
  +
          *)
              echo "I do not recognize the thread option '$thread'. Please type '${0} -h' for help."
              exit ${ERROR_EXIT_CODE};;
  @@ -343,7 +350,9 @@
          transcodingDefines="-DXML_USE_ICU_TRANSCODER -I${ICUROOT}/include";
          transcodingLibs="-L${ICUROOT}/lib";
          TRANSCODER=ICU;;
  -
  +   Iconv400)
  +       transcodingDefines="-DXML_USE_ICONV400_TRANSCODER" ;
  +       TRANSCODER=Iconv400 ;;
      native)
          ;;
   
  @@ -375,6 +384,10 @@
   
      inmem)
          ;;
  +   MsgFile)
  +       MESSAGELOADER=MSGFILE;
  +       msgloaderDefines="-DXML_USE_MSGFILE_MESSAGELOADER" ;;
  +
   
      iconv)
          MESSAGELOADER=ICONV;
  @@ -408,7 +421,7 @@
          fi
          netaccessorDefines="-DXML_USE_NETACCESSOR_LIBWWW -I${LIBWWWROOT}/include" ;
          netaccessorLibs="-L${LIBWWWROOT}/lib -lwww";
  -       USELIBWWW=1;; 
  +       USELIBWWW=1;;
   
      *)
         echo "I do not recognize the netaccessor option '$netaccessor'. Please type '${0} -h' for help."
  @@ -425,11 +438,11 @@
   #
   
   case $cppcompiler in
  -   xlC | xlc | xlC_r | xlc_r | g++ | c++ | cc | CC | aCC)
  +   xlC | xlc | xlC_r | xlc_r | g++ | c++ | cc | CC | aCC | icc | ICC)
         ;;
   
      *)
  -      echo "I do not recognize the C++ compiler '$cppcompiler'. Continuing anyway ..." 
  +      echo "I do not recognize the C++ compiler '$cppcompiler'. Continuing anyway ..."
         ;;
   esac
   
  @@ -458,8 +471,11 @@
   rm -f config.cache
   rm -f config.log
   rm -f config.status
  +if test $platform = "os400"; then
  +./configure --host AS400
  +else
   ./configure
  -
  +fi
   echo
   echo In future, you may also directly type the following commands to create the Makefiles.
   echo