Annotation of libwww/libwww-config.in, revision 1.3

1.1       frystyk     1: #!/bin/sh
                      2: # (c) COPYRIGHT MIT 1995.
                      3: # Please first read the full copyright statement in the file COPYRIGH.
1.3     ! frystyk     4: # @(#) $Id: libwww-config.in,v 1.2 1998/12/05 21:37:32 frystyk Exp $
1.1       frystyk     5: #
                      6: # Thanks to Soren Sandmann for providing first version of this script!
                      7: 
                      8: prefix=@prefix@
                      9: exec_prefix=@exec_prefix@
                     10: exec_prefix_set=no
                     11: 
                     12: usage="\
                     13: Usage: libwww-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version]
                     14: [--libs] [--cflags]"
                     15: 
                     16: if test $# -eq 0; then
                     17:       echo "${usage}" 1>&2
                     18:       exit 1
                     19: fi
                     20: 
                     21: while test $# -gt 0; do
                     22:   case "$1" in
                     23:   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
                     24:   *) optarg= ;;
                     25:   esac
                     26: 
                     27:   case $1 in
                     28:     --prefix=*)
                     29:       prefix=$optarg
                     30:       if test $exec_prefix_set = no ; then
                     31:         exec_prefix=$optarg
                     32:       fi
                     33:       ;;
                     34:     --prefix)
                     35:       echo $prefix
                     36:       ;;
                     37:     --exec-prefix=*)
                     38:       exec_prefix=$optarg
                     39:       exec_prefix_set=yes
                     40:       ;;
                     41:     --exec-prefix)
                     42:       echo $exec_prefix
                     43:       ;;
                     44:     --version)
                     45:       echo @VERSION@
                     46:       ;;
                     47:     --cflags)
                     48:       echo -I@includedir@/@PACKAGE@ @DEFS@
                     49:       ;;
                     50:     --libs)
1.3     ! frystyk    51:       echo -L@libdir@ @LIBS@ -lmd5 -lxmltok -lxmlparse -lwww
1.1       frystyk    52:       ;;
                     53:     *)
                     54:       echo "${usage}" 1>&2
                     55:       exit 1
                     56:       ;;
                     57:   esac
                     58:   shift
1.2       frystyk    59: done

Webmaster