From 8bfc5756fb68e0b13d7e7c0073ad5b9a4790d1b6 Mon Sep 17 00:00:00 2001 From: rmanfredi Date: Thu, 24 Aug 2006 12:32:52 +0000 Subject: Moving project to sourceforge. git-svn-id: https://dist.svn.sourceforge.net/svnroot/dist/trunk/dist@1 190e5f8e-a817-0410-acf6-e9863daed9af --- mcon/U/libflex.U | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 mcon/U/libflex.U (limited to 'mcon/U/libflex.U') diff --git a/mcon/U/libflex.U b/mcon/U/libflex.U new file mode 100644 index 0000000..cf2c844 --- /dev/null +++ b/mcon/U/libflex.U @@ -0,0 +1,65 @@ +?RCS: $Id$ +?RCS: +?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 4.0. +?RCS: +?RCS: $Log: libflex.U,v $ +?RCS: Revision 3.0.1.3 1997/02/28 15:57:48 ram +?RCS: patch61: replaced .a with $_a all over the place +?RCS: +?RCS: Revision 3.0.1.2 1994/05/06 15:07:02 ram +?RCS: patch23: now uses full library path instead of -l notation +?RCS: +?RCS: Revision 3.0.1.1 1994/01/24 14:13:25 ram +?RCS: patch16: un-obsoleted this unit to allow smooth lex/flex compilations +?RCS: +?RCS: Revision 3.0 1993/08/18 12:08:59 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE:libflex: Loc lex libpth _a +?MAKE: -pick add $@ %< +?S:libflex: +?S: This variable contains the argument to pass to the loader in order +?S: to get the flex/lex library routines. If there is no flex or flex +?S: library, it is null. +?S:. +?T:xxx +: see if we should include -lfl +echo " " +case "$lex" in +*flex) + xxx=`./loc libfl$_a x $libpth` + case "$xxx" in + x) + echo "No flex library found." >&4 + libflex='' + ;; + *) + echo "flex library found in $xxx." >&4 + libflex="$xxx" + ;; + esac + ;; +*lex) + xxx=`./loc libl$_a x $libpth` + case "$xxx" in + x) + echo "No lex library found." >&4 + libflex='' + ;; + *) + echo "lex library found in $xxx." >&4 + libflex="$xxx" + ;; + esac + ;; +*) +echo "You don't seem to have lex or flex, so I won't look for libraries." >&4 + ;; +esac + -- cgit v1.2.3