This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix tab/space issue that entered in 17893. AIX.
[metaconfig.git] / U / modified / d_csh.U
CommitLineData
959f3c4c
JH
1?RCS: $Id: d_csh.U,v 3.0.1.1 1997/02/28 15:32:18 ram Exp $
2?RCS:
3?RCS: Copyright (c) 1991-1993, Raphael Manfredi
4?RCS:
5?RCS: You may redistribute only under the terms of the Artistic Licence,
6?RCS: as specified in the README file that comes with the distribution.
7?RCS: You may reuse parts of this distribution only within the terms of
8?RCS: that same Artistic Licence; a copy of which may be found at the root
9?RCS: of the source tree for dist 3.0.
10?RCS:
11?RCS: $Log: d_csh.U,v $
12?RCS: Revision 3.0.1.1 1997/02/28 15:32:18 ram
13?RCS: patch61: added full_csh to preserve the full path even when portable
14?RCS:
15?RCS: Revision 3.0 1993/08/18 12:05:53 ram
16?RCS: Baseline for dist 3.0 netwide release.
17?RCS:
18?MAKE:d_csh full_csh: csh Setvar
19?MAKE: -pick add $@ %<
20?S:d_csh:
21?S: This variable conditionally defines the CSH symbol, which
22?S: indicates to the C program that the C-shell exists.
23?S:.
24?S:full_csh:
25?S: This variable contains the full pathname to 'csh', whether or
26?S: not the user has specified 'portability'. This is only used
27?S: in the compiled C program, and we assume that all systems which
28?S: can share this executable will have the same full pathname to
29?S: 'csh.'
30?S:.
31?X: Yes, I know about the C symbol PORTABLE, but I think csh
32?X: is unlikely to move, and I'm too lazy to add all the
33?X: #ifdef PORTABLE sections to the perl source.
34?X:
35?C:HAS_CSH:
36?C: This symbol, if defined, indicates that the C-shell exists.
37?C:.
38?C:CSH:
39?C: This symbol, if defined, contains the full pathname of csh.
40?C:.
41?X: Previously, I just did $d_csh CSH "$full_csh", but that caused
42?X: problems on VMS where the config.sh extraction program changes
43?X: $undef to a real cpp undef, and they then had #undef CSH ""
44?X: which the compiler didn't like. It's easy to work around this,
45?X: so I did. --AD 3/1998.
46?H:?%<:#$d_csh HAS_CSH /**/
47?H:?%<:#ifdef HAS_CSH
48?H:?%<:#define CSH "$full_csh" /**/
49?H:?%<:#endif
50?H:.
51?LINT:set d_csh
52: get csh whereabouts
53case "$csh" in
54'csh') val="$undef" ;;
55*) val="$define" ;;
56esac
57set d_csh
58eval $setvar
59: Respect a hint or command line value for full_csh.
60case "$full_csh" in
61'') full_csh=$csh ;;
62esac
63