From ae24fcf7280adc70cdc1d3dfab9d93c13b156860 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Thu, 11 Nov 1999 17:48:28 +0000 Subject: [PATCH] New configuration system for library clients. Organization: Straylight/Edgeware From: mdw --- Makefile.am | 7 +++- configure.in | 7 +++- mLib-config.in | 105 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 116 insertions(+), 3 deletions(-) create mode 100755 mLib-config.in diff --git a/Makefile.am b/Makefile.am index 6ff03e8..21a6309 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ## -*-Makefile-*- ## -## $Id: Makefile.am,v 1.15 1999/10/22 22:40:49 mdw Exp $ +## $Id: Makefile.am,v 1.16 1999/11/11 17:48:28 mdw Exp $ ## ## Building the distribution ## @@ -29,6 +29,9 @@ ##----- Revision history ---------------------------------------------------- ## ## $Log: Makefile.am,v $ +## Revision 1.16 1999/11/11 17:48:28 mdw +## New configuration system for library clients. +## ## Revision 1.15 1999/10/22 22:40:49 mdw ## New source files. New testing system for sym and dynarray. ## @@ -87,6 +90,8 @@ AUTOMAKE_OPTIONS = foreign SUBDIRS = man +bin_SCRIPTS = mLib-config + lib_LIBRARIES = libmLib.a libexec_PROGRAMS = bres diff --git a/configure.in b/configure.in index e762c69..f3771e2 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl -*-fundamental-*- dnl -dnl $Id: configure.in,v 1.17 1999/10/04 21:48:50 mdw Exp $ +dnl $Id: configure.in,v 1.18 1999/11/11 17:48:28 mdw Exp $ dnl dnl Configuration script for mLib dnl @@ -29,6 +29,9 @@ dnl MA 02111-1307, USA. dnl ----- Revision history -------------------------------------------------- dnl dnl $Log: configure.in,v $ +dnl Revision 1.18 1999/11/11 17:48:28 mdw +dnl New configuration system for library clients. +dnl dnl Revision 1.17 1999/10/04 21:48:50 mdw dnl Find libraries for standalone name resolver server. dnl @@ -72,4 +75,4 @@ mdw_CHECK_MANYLIBS(gethostbyname, nsl resolv) mdw_OPT_mLib_DEBUG(mLib) -AC_OUTPUT(Makefile man/Makefile) +AC_OUTPUT(Makefile mLib-config man/Makefile) diff --git a/mLib-config.in b/mLib-config.in new file mode 100755 index 0000000..5ed3f51 --- /dev/null +++ b/mLib-config.in @@ -0,0 +1,105 @@ +#! /bin/sh +# +# $Id: mLib-config.in,v 1.1 1999/11/11 17:48:28 mdw Exp $ +# +# Provide configuration information for mLib clients +# +# (c) 1999 Straylight/Edgeware +# + +#----- Licensing notice ----------------------------------------------------- +# +# This file is part of mLib. +# +# mLib is free software; you can redistribute it and/or modify +# it under the terms of the GNU Library General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# mLib is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with mLib; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, +# MA 02111-1307, USA. + +#----- Revision history ----------------------------------------------------- +# +# $Log: mLib-config.in,v $ +# Revision 1.1 1999/11/11 17:48:28 mdw +# New configuration system for library clients. +# + +#----- Configuration -------------------------------------------------------- + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +VERSION=@VERSION@ + +#----- Command-line parsing and output -------------------------------------- + +ego=`echo "$0" | sed 's:.*/::'` + +if [ -z "${1+x}" ]; then + echo >&2 "Usage: $ego OPTION" + echo >&2 "Run \`$ego --help' for more information." + exit 1 +fi + +case "$1" in + --help) + cat <&2 "$ego: unrecognized option \`$1'" + exit 1 +esac + +#----- That's all, folks ---------------------------------------------------- -- [mdw]