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 / i_ndbm.U
CommitLineData
39185b0a
JH
1?RCS: $Id: i_ndbm.U,v 3.0.1.1 1995/05/12 12:16:53 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: i_ndbm.U,v $
12?RCS: Revision 3.0.1.1 1995/05/12 12:16:53 ram
13?RCS: patch54: made more robust by checking both header and lib (ADO)
14?RCS:
15?RCS: Revision 3.0 1993/08/18 12:08:23 ram
16?RCS: Baseline for dist 3.0 netwide release.
17?RCS:
18?MAKE:i_ndbm: Inhdr Inlibc Setvar test ccflags cppflags
19?MAKE: -pick add $@ %<
20?S:i_ndbm (d_ndbm):
21?S: This variable conditionally defines the I_NDBM symbol, which
22?S: indicates to the C program that <ndbm.h> exists and should
23?S: be included.
24?S:.
25?C:I_NDBM (HAS_NDBM NDBM):
26?C: This symbol, if defined, indicates that <ndbm.h> exists and should
27?C: be included.
28?C:.
29?H:#$i_ndbm I_NDBM /**/
30?H:.
31?T:t_ndbm d_dbm_open
32?LINT:set i_ndbm
33?LINT:change ccflags
34?LINT:change cppflags
35: see if ndbm.h is available
36?X: t_ndbm is a tentative check. We might just have the .h, not the lib -- ADO
37set ndbm.h t_ndbm
38eval $inhdr
39
40case "$t_ndbm" in
41$undef)
42 # Some Linux distributions such as RedHat 7.1 put the
43 # ndbm.h header in /usr/include/gdbm/ndbm.h.
44 if $test -f /usr/include/gdbm/ndbm.h; then
7945608b 45 echo '<gdbm/ndbm.h> found.'
39185b0a
JH
46 ccflags="$ccflags -I/usr/include/gdbm"
47 cppflags="$cppflags -I/usr/include/gdbm"
48 t_ndbm=$define
49 fi
50 ;;
51esac
52
53case "$t_ndbm" in
54$define)
55 : see if dbm_open exists
56 set dbm_open d_dbm_open
57 eval $inlibc
58 case "$d_dbm_open" in
59 $undef)
60 t_ndbm="$undef"
61 echo "We won't be including <ndbm.h>"
62 ;;
63 esac
64 ;;
65esac
66val="$t_ndbm"
67set i_ndbm
68eval $setvar
69