summaryrefslogtreecommitdiff
path: root/U/dlsrc.U
blob: e67e1fdce09fef18268185c3cd22369f0ae4c9bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
?X:  These units are based on the ones supplied with dist-3.0
?X:  patchlevel 22.  They have been changed or enhanced to work with
?X:  perl5alpha.  I would appreciate hearing about any changes,
?X:  corrections, or enhancements.
?X:	Andy Dougherty			doughera@lafcol.lafayette.edu
?X:	Dept. of Physics 		
?X:	Lafayette College	
?X:	Easton, PA  18042-1782
?X:     Sat Apr  2 15:45:17 EST 1994
?RCS: $Id: dlsrc.U,v$
?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 3.0.
?RCS:
?RCS: $Log: dlsrc.U,v $
?RCS:
?MAKE:dlsrc dlobj usedl: Myread Oldconfig package \
	Guess test rm cat i_dlfcn cc ccflags Findhdr
?MAKE:	-pick add $@ %<
?S:usedl:
?S:	This variable contains indicates if the the system supports dynamic
?S:	loading of some sort.  See also dlsrc and dlobj.
?S:.
?S:dlsrc:
?S:	This variable contains the name of the dynamic loading file that 
?S:	will be used with the package.
?S:.
?S:dlobj:
?S:	This variable contains the name of the dynamic loading object
?S:	file that will be used with the package.
?S:.
?C:USE_DYNAMIC_LOADING~%<:
?C:	This symbol, if defined, indicates that dynamic loading of
?C:	some sort is available.
?C:.
?H:?%<:#$usedl USE_DYNAMIC_LOADING		/**/
?H:.
?W:%<:dlopen
?INIT: usedl=''
?X: 
?X:  Can anyone suggest a test for whether this works on a given system?
?X: 
: determine which dynamic loading, if any, to compile in
echo " "
case "$usedl" in
'')
	case "$i_dlfcn" in
	'define') dflt='y' ;;
	*)        dflt='n' ;;
	esac
	;;
'define') dflt='y' ;;
'y') dflt='y'
     usedl='define' ;;
*)  dflt='n' ;;
esac
rp="Do you wish to attempt to use dynamic loading?"
. ./myread
usedl="$ans"
case "$ans" in
y*) usedl='define'; dlsrc='dl.c'; dlobj='dl.o';;
*) usedl='undef'; dlsrc=''; dlobj='';;
esac