- From: Soeren Sandmann <sandmann@daimi.au.dk>
- Date: 20 Nov 1998 17:52:57 +0100
- To: www-lib@w3.org
Henrik Frystyk Nielsen writes: > As libwww already uses libtool, I think we have a solution coming > along. That is great! I have, however, made a try on a libwww-config. It is based on gtk-config.in. I do not know if it is of any use, but here it is: libwww-config.in: #!/bin/sh prefix=@prefix@ exec_prefix=@exec_prefix@ exec_prefix_set=no usage="\ Usage: libwww-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]" if test $# -eq 0; then echo "${usage}" 1>&2 exit 1 fi while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg if test $exec_prefix_set = no ; then exec_prefix=$optarg fi ;; --prefix) echo $prefix ;; --exec-prefix=*) exec_prefix=$optarg exec_prefix_set=yes ;; --exec-prefix) echo $exec_prefix ;; --version) echo @VERSION@ ;; --cflags) echo -I@includedir@/@PACKAGE@ @DEFS@ ;; --libs) echo -L@libdir@ @LIBS@ -lwww ;; *) echo "${usage}" 1>&2 exit 1 ;; esac shift done To use it, the line bin_SCRIPTS = libwww-config should be inserted into Makefile.am, and libwww-config should be inserted in the AC_OUTPUT part of configure.in It seems to work on this Sun i am using now, but I do not know about other systems. Søren Sandmann
Received on Friday, 20 November 1998 11:53:00 UTC