Commit | Line | Data |
8566f259 |
1 | --- perl5.003_06/Configure Fri Oct 4 11:08:50 1996 |
2 | +++ Configure Wed Oct 9 17:53:14 1996 |
3 | @@ -1451,7 +1451,7 @@ |
4 | *) |
5 | echo "I don't know where '$file' is, and my life depends on it." >&4 |
6 | echo "Go find a public domain implementation or fix your PATH setting!" >&4 |
7 | - exit 1 |
8 | + #exit 1 |
9 | ;; |
10 | esac |
11 | done |
12 | @@ -1460,7 +1460,9 @@ |
13 | say=offhand |
14 | for file in $trylist; do |
15 | xxx=`./loc $file $file $pth` |
16 | - eval $file=$xxx |
17 | + if test "X$file" != "X$xxx" ; then |
18 | + eval $file=$xxx |
19 | + fi |
20 | eval _$file=$xxx |
21 | case "$xxx" in |
22 | /*) |
23 | @@ -3091,7 +3093,7 @@ |
24 | exit(0); |
25 | } |
26 | EOM |
27 | -if $cc -o gccvers gccvers.c >/dev/null 2>&1; then |
28 | +if $cc -o gccvers gccvers.c $ldflags >/dev/null 2>&1; then |
29 | gccversion=`./gccvers` |
30 | case "$gccversion" in |
31 | '') echo "You are not using GNU cc." ;; |
32 | @@ -3275,6 +3277,12 @@ |
33 | *"-l$thislib "*);; |
34 | *) dflt="$dflt -l$thislib";; |
35 | esac |
36 | + elif xxx=`./loc $thislib.lib X $libpth`; $test -f "$xxx"; then |
37 | + echo "Found -l$thislib." |
38 | + case " $dflt " in |
39 | + *"-l$thislib "*);; |
40 | + *) dflt="$dflt -l$thislib";; |
41 | + esac |
42 | else |
43 | echo "No -l$thislib." |
44 | fi |
45 | @@ -3387,7 +3395,7 @@ |
46 | esac |
47 | ;; |
48 | esac |
49 | -libnames=''; |
50 | +#libnames=''; |
51 | case "$libs" in |
52 | '') ;; |
53 | *) for thislib in $libs; do |
8566f259 |
54 | @@ -3583,6 +3593,10 @@ |
55 | eval $xscan;\ |
56 | $contains '^fprintf$' libc.list >/dev/null 2>&1; then |
57 | eval $xrun |
58 | +elif com="$sed -n -e 's/^[-0-9a-f ]*_\(.*\)=.*/\1/p'";\ |
59 | + eval $xscan;\ |
60 | + $contains '^fprintf$' libc.list >/dev/null 2>&1; then |
61 | + eval $xrun |
62 | else |
63 | nm -p $* 2>/dev/null >libc.tmp |
64 | $grep fprintf libc.tmp > libc.ptf |
65 | @@ -3593,23 +3607,33 @@ |
66 | eval $xrun |
67 | else |
68 | echo " " |
69 | - echo "nm didn't seem to work right. Trying ar instead..." >&4 |
70 | + echo "nm didn't seem to work right. Trying $ar instead..." >&4 |
71 | com='' |
72 | - if ar t $libc > libc.tmp; then |
73 | - for thisname in $libnames; do |
74 | - ar t $thisname >>libc.tmp |
75 | + if test "X$osname" = "Xos2"; then ar_opt=tv ; else ar_opt=t ;fi |
76 | + if $ar $ar_opt $libc > libc.tmp; then |
77 | + echo \; > libc.tmp |
78 | + for thisname in $libnames $libc; do |
79 | + $ar $ar_opt $thisname >>libc.tmp |
80 | + if test "X$osname" = "Xos2"; then |
81 | + # Revision 50 of EMX has bug in $ar: |
82 | + emximp -o tmp.imp $thisname \ |
83 | + 2>/dev/null && \ |
84 | + $sed -e 's/^\([_a-zA-Z0-9]*\) .*$/\1/p' \ |
85 | + < tmp.imp >>libc.tmp |
86 | + $rm tmp.imp |
87 | + fi |
88 | done |
89 | - $sed -e 's/\.o$//' < libc.tmp > libc.list |
90 | + $sed -e 's/\.o$//' -e 's/^ \+//' < libc.tmp | grep -v "^IMPORT#" > libc.list |
91 | echo "Ok." >&4 |
92 | else |
93 | - echo "ar didn't seem to work right." >&4 |
94 | + echo "$ar didn't seem to work right." >&4 |
95 | echo "Maybe this is a Cray...trying bld instead..." >&4 |
96 | if bld t $libc | $sed -e 's/.*\///' -e 's/\.o:.*$//' > libc.list |
97 | then |
98 | for thisname in $libnames; do |
99 | bld t $libnames | \ |
100 | $sed -e 's/.*\///' -e 's/\.o:.*$//' >>libc.list |
101 | - ar t $thisname >>libc.tmp |
102 | + $ar t $thisname >>libc.tmp |
103 | done |
104 | echo "Ok." >&4 |
105 | else |
106 | @@ -5606,7 +5630,7 @@ |
107 | exit(0); |
108 | } |
109 | EOCP |
110 | - if $cc $ccflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then |
111 | + if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then |
112 | intsize=`./try` |
113 | echo "Your integers are $intsize bytes long." |
114 | else |
115 | @@ -5686,7 +5710,7 @@ |
116 | exit(result); |
117 | } |
118 | EOCP |
119 | -if $cc -o try $ccflags try.c >/dev/null 2>&1; then |
120 | +if $cc -o try $ccflags try.c $ldflags >/dev/null 2>&1; then |
121 | ./try |
122 | yyy=$? |
123 | else |
124 | @@ -5767,7 +5791,7 @@ |
125 | |
126 | } |
127 | EOCP |
128 | -if $cc -o try $ccflags try.c >/dev/null 2>&1; then |
129 | +if $cc -o try $ccflags try.c $ldflags >/dev/null 2>&1; then |
130 | ./try |
131 | castflags=$? |
132 | else |
133 | @@ -5806,7 +5830,7 @@ |
134 | exit((unsigned long)vsprintf(buf,"%s",args) > 10L); |
135 | } |
136 | EOF |
137 | - if $cc $ccflags vprintf.c -o vprintf >/dev/null 2>&1 && ./vprintf; then |
138 | + if $cc $ccflags vprintf.c $ldflags -o vprintf >/dev/null 2>&1 && ./vprintf; then |
139 | echo "Your vsprintf() returns (int)." >&4 |
140 | val2="$undef" |
141 | else |
8566f259 |
142 | @@ -6148,7 +6172,7 @@ |
143 | EOCP |
144 | : check sys/file.h first to get FREAD on Sun |
145 | if $test `./findhdr sys/file.h` && \ |
146 | - $cc $cppflags "-DI_SYS_FILE" open3.c -o open3 >/dev/null 2>&1 ; then |
147 | + $cc $cppflags $ldflags "-DI_SYS_FILE" open3.c -o open3 >/dev/null 2>&1 ; then |
148 | h_sysfile=true; |
149 | echo "<sys/file.h> defines the O_* constants..." >&4 |
150 | if ./open3; then |
151 | @@ -6159,7 +6183,7 @@ |
152 | val="$undef" |
153 | fi |
154 | elif $test `./findhdr fcntl.h` && \ |
155 | - $cc "-DI_FCNTL" open3.c -o open3 >/dev/null 2>&1 ; then |
156 | + $cc "-DI_FCNTL" $ldflags open3.c -o open3 >/dev/null 2>&1 ; then |
157 | h_fcntl=true; |
158 | echo "<fcntl.h> defines the O_* constants..." >&4 |
159 | if ./open3; then |
160 | @@ -6642,7 +6666,7 @@ |
161 | y*|true) |
162 | usemymalloc='y' |
163 | mallocsrc='malloc.c' |
164 | - mallocobj='malloc.o' |
165 | + mallocobj="malloc$obj_ext" |
166 | d_mymalloc="$define" |
167 | case "$libs" in |
168 | *-lmalloc*) |
8566f259 |
169 | @@ -7867,7 +7891,7 @@ |
170 | printf("%d\n", (char *)&try.bar - (char *)&try.foo); |
171 | } |
172 | EOCP |
173 | - if $cc $ccflags try.c -o try >/dev/null 2>&1; then |
174 | + if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1; then |
175 | dflt=`./try` |
176 | else |
177 | dflt='8' |
178 | @@ -7915,7 +7939,7 @@ |
179 | } |
180 | EOCP |
181 | xxx_prompt=y |
182 | - if $cc $ccflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then |
183 | + if $cc $ccflags $ldflags try.c -o try >/dev/null 2>&1 && ./try > /dev/null; then |
184 | dflt=`./try` |
185 | case "$dflt" in |
186 | [1-4][1-4][1-4][1-4]|12345678|87654321) |
187 | @@ -8337,7 +8361,7 @@ |
188 | printf("%d\n",i); |
189 | } |
190 | EOCP |
191 | - if $cc try.c -o try >/dev/null 2>&1 ; then |
192 | + if $cc $ldflags try.c -o try >/dev/null 2>&1 ; then |
193 | dflt=`try` |
194 | else |
195 | dflt='?' |
8566f259 |
196 | @@ -8447,7 +8471,7 @@ |
197 | '') $echo $n ".$c" |
198 | if $cc $ccflags \ |
199 | $i_time $i_systime $i_systimek $sysselect $s_timeval $s_timezone \ |
200 | - try.c -o try >/dev/null 2>&1 ; then |
201 | + try.c -o try $ldflags >/dev/null 2>&1 ; then |
202 | set X $i_time $i_systime $i_systimek $sysselect $s_timeval |
203 | shift |
204 | flags="$*" |
205 | @@ -8517,7 +8541,7 @@ |
206 | #endif |
207 | } |
208 | EOCP |
209 | -if $cc $ccflags -DTRYBITS fd_set.c -o fd_set >fd_set.out 2>&1 ; then |
210 | +if $cc $ccflags $ldflags -DTRYBITS fd_set.c -o fd_set >fd_set.out 2>&1 ; then |
211 | d_fds_bits="$define" |
212 | d_fd_set="$define" |
213 | echo "Well, your system knows about the normal fd_set typedef..." >&4 |
214 | @@ -8534,7 +8558,7 @@ |
215 | $cat <<'EOM' |
216 | Hmm, your compiler has some difficulty with fd_set. Checking further... |
217 | EOM |
218 | - if $cc $ccflags fd_set.c -o fd_set >fd_set.out 2>&1 ; then |
219 | + if $cc $ccflags $ldflags fd_set.c -o fd_set >fd_set.out 2>&1 ; then |
220 | d_fds_bits="$undef" |
221 | d_fd_set="$define" |
222 | echo "Well, your system has some sort of fd_set available..." >&4 |
223 | @@ -9272,7 +9296,7 @@ |
224 | else |
225 | echo "false" |
226 | fi |
227 | -$rm -f varargs.o |
228 | +$rm -f varargs$obj_ext |
229 | EOP |
230 | chmod +x varargs |
231 | |
232 | @@ -9596,7 +9620,7 @@ |
233 | echo " " |
234 | echo "Stripping down executable paths..." >&4 |
235 | for file in $loclist $trylist; do |
236 | - eval $file="\$file" |
237 | + if test X$file != Xln -o X$osname != Xos2; then eval $file="\$file"; fi |
238 | done |
239 | ;; |
240 | esac |