1 ?RCS: $Id: d_sfio.U,v $
3 ?RCS: Copyright (c) 1996-1998 Andy Dougherty
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
8 ?RCS: $Log: d_sfio.U,v $
10 ?MAKE:usesfio d_sfio: i_sfio Inlibc Myread Oldconfig sed libs \
11 Setvar package useperlio
12 ?MAKE: -pick add $@ %<
14 ?S: This variable is set to true when the user agrees to use sfio.
15 ?S: It is set to false when sfio is not available or when the user
16 ?S: explicitely requests not to use sfio. It is here primarily so
17 ?S: that command-line settings can override the auto-detection of
18 ?S: d_sfio without running into a "WHOA THERE".
21 ?S: This variable conditionally defines the USE_SFIO symbol,
22 ?S: and indicates whether sfio is available (and should be used).
25 ?C: This symbol, if defined, indicates that sfio should
28 ?H:#$d_sfio USE_SFIO /**/
32 ?LINT:change useperlio
34 : see if sfio library is available
45 : Ok, but do we want to use it.
49 true|$define|[yY]*) dflt='y';;
52 echo "$package can use the sfio library, but it is experimental."
55 echo "For sfio also the PerlIO abstraction layer is needed."
56 echo "Earlier you said you wouldn't want that."
59 rp="You seem to have sfio available, do you want to try using it?"
62 y|Y) echo "Ok, turning on both sfio and PerlIO, then."
66 *) echo "Ok, avoiding sfio this time. I'll use stdio instead."
73 echo "Sorry, cannot find sfio on this machine." >&4
74 echo "Ignoring your setting of usesfio=$usesfio." >&4
81 ?X: Only set d_sfio when final value is known to avoid spurious Whoas
82 ?X: Then set usesfio accordingly to the current value, for next run
87 $define) usesfio='true';;
92 *) : Remove sfio from list of libraries to use
95 echo "Removing unneeded -lsfio from library list" >&4
96 set `echo X $libs | $sed -e 's/-lsfio / /' -e 's/-lsfio$//'`
99 echo "libs = $libs" >&4