OSSP CVS Repository

ossp - Check-in [2979]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2979
Date: 2002-Dec-18 16:38:49 (local)
2002-Dec-18 15:38:49 (UTC)
User:mlelstv
Branch:
Comment: snap

PR: Submitted by: Reviewed by: Approved by: Obtained from:

Tickets:
Inspections:
Files:
ossp-pkg/sio/sio-config.in      added-> 1.1

ossp-pkg/sio/sio-config.in -> 1.1

*** /dev/null    Sat Nov 23 02:14:41 2024
--- -    Sat Nov 23 02:14:47 2024
***************
*** 0 ****
--- 1,147 ----
+ #!/bin/sh
+ ##
+ ##  OSSP sio - Stream I/O
+ ##  Copyright (c) 2002 Ralf S. Engelschall <rse@engelschall.com>
+ ##  Copyright (c) 2002 The OSSP Project <http://www.ossp.org/>
+ ##  Copyright (c) 2002 Cable & Wireless Deutschland <http://www.cw.com/de/>
+ ##  Copyright (c) 2002 Michael van Elst <mlelstv@dev.de.cw.net>
+ ##
+ ##  This file is part of OSSP sio, an abstract data type of
+ ##  a pair of half-duplex data pipes which can be found at
+ ##  http://www.ossp.org/pkg/lib/sio/.
+ ##
+ ##  Permission to use, copy, modify, and distribute this software for
+ ##  any purpose with or without fee is hereby granted, provided that
+ ##  the above copyright notice and this permission notice appear in all
+ ##  copies.
+ ##
+ ##  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 DISCLAIMED.
+ ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ##  SUCH DAMAGE.
+ ##
+ ##  sio-config.in: SIO library build utility
+ ##
+ 
+ DIFS=' 
+ '
+ 
+ prefix="@prefix@"
+ exec_prefix="@exec_prefix@"
+ 
+ sio_prefix="$prefix"
+ sio_exec_prefix="$exec_prefix"
+ sio_bindir="@bindir@"
+ sio_libdir="@libdir@"
+ sio_includedir="@includedir@"
+ sio_mandir="@mandir@"
+ sio_datadir="@datadir@"
+ sio_acdir="@datadir@/aclocal"
+ sio_cflags="@CFLAGS@"
+ sio_ldflags="@LDFLAGS@"
+ sio_libs="@LIBS@"
+ sio_version="@AL_VERSION_STR@"
+ 
+ help=no
+ version=no
+ 
+ usage="sio-config"
+ usage="$usage [--help] [--version] [--all]"
+ usage="$usage [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir] [--acdir]"
+ usage="$usage [--cflags] [--ldflags] [--libs]"
+ if [ $# -eq 0 ]; then
+     echo "sio-config:Error: Invalid option" 1>&2
+     echo "sio-config:Usage: $usage" 1>&2
+     exit 1
+ fi
+ output=''
+ output_extra=''
+ all=no
+ prev=''
+ OIFS="$IFS" IFS="$DIFS"
+ for option
+ do
+     if [ ".$prev" != . ]; then
+         eval "$prev=\$option"
+         prev=''
+         continue
+     fi
+     case "$option" in
+         -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+            *) optarg='' ;;
+     esac
+     case "$option" in
+         --help|-h)
+             echo "Usage: $usage"
+             exit 0
+             ;;
+         --version|-v)
+             echo "OSSP sio $sio_version"
+             exit 0
+             ;;
+         --all)
+             all=yes
+             ;;
+         --prefix)
+             output="$output $sio_prefix"
+             ;;
+         --exec-prefix)
+             output="$output $sio_exec_prefix"
+             ;;
+         --bindir)
+             output="$output $sio_bindir"
+             ;;
+         --libdir)
+             output="$output $sio_libdir"
+             ;;
+         --includedir)
+             output="$output $sio_includedir"
+             ;;
+         --mandir)
+             output="$output $sio_mandir"
+             ;;
+         --datadir)
+             output="$output $sio_datadir"
+             ;;
+         --acdir)
+             output="$output $sio_acdir"
+             ;;
+         --cflags)
+             output="$output -I$sio_includedir"
+             output_extra="$output_extra $sio_cflags"
+             ;;
+         --ldflags)
+             output="$output -L$sio_libdir"
+             output_extra="$output_extra $sio_ldflags"
+             ;;
+         --libs)
+             output="$output -lsio"
+             output_extra="$output_extra $sio_libs"
+             ;;
+         * )
+             echo "sio-config:Error: Invalid option" 1>&2
+             echo "sio-config:Usage: $usage" 1>&2
+             exit 1;
+             ;;
+     esac
+ done
+ IFS="$OIFS"
+ if [ ".$prev" != . ]; then
+     echo "sio-config:Error: missing argument to --`echo $prev | sed 's/_/-/g'`" 1>&2
+     exit 1
+ fi
+ if [ ".$output" != . ]; then
+     if [ ".$all" = .yes ]; then
+         output="$output $output_extra"
+     fi
+     echo $output
+ fi
+ 

CVSTrac 2.0.1